/* ============================
   assets/css/style.css
   Full styling for Doctor Dashboard + Registration Form
   ============================ */


/* ---------- Global ---------- */
:root{
  --brand: #0f6bd1;
  --accent: #ff9800;
  --muted: #64748b;
  --card-bg: #ffffff;
  --bg: #e6f3fc;
}

* { box-sizing: border-box; }
html,body { height: 100%; }
html {
  font-size: 16px; /* Base font size - prevents automatic scaling */
}
body {
  margin: 0;
  background: var(--bg);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f1724;
  font-size: 16px; /* Consistent base font size */
  line-height: 1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-text-size-adjust: 100%; /* Prevent automatic text scaling on iOS */
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Common container */
.container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(16,24,40,0.04);
  margin-bottom: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width container for registration pages */
.dd-lab-reg-page .container,
.dd-patient-reg-page .container,
.dd-doctor-reg-page .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* small utility classes */
.hidden { display:none !important; }
.center { text-align:center; }
.small { font-size:13px;color:var(--muted); }

/* ============================
   LAB SEARCH PAGE STYLING
   ============================ */
.dd-lab-search {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-header {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-text h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.header-text p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.patient-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.patient-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.patient-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.patient-actions {
    display: flex;
    gap: 10px;
}

.guest-info {
    text-align: right;
}

.guest-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-filters {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.results-info {
    padding: 20px 30px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.results-info h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.labs-list {
    padding: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.lab-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    border: 1px solid #e9ecef;
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.lab-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.lab-info {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lab-header {
    margin-bottom: 15px;
}

.lab-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.lab-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.lab-type {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.home-collection {
    background: #e8f5e8;
    color: #2e7d32;
}

.lab-details {
    margin-bottom: 20px;
}

.lab-details p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lab-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.lab-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lab-actions .btn-primary {
    background: #ff6b35;
    color: white;
}

.lab-actions .btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.lab-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.lab-actions .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.lab-status {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    border-left: 1px solid #e9ecef;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
}

.status-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.rating {
    text-align: center;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.rating-text {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Design for Lab Search */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lab-card {
        flex-direction: column;
    }

    .lab-status {
        border-left: none;
        border-top: 1px solid #e9ecef;
        min-width: auto;
        padding: 20px;
    }

    .lab-actions {
        flex-direction: column;
    }

    .patient-info {
        flex-direction: column;
        text-align: center;
    }

    .patient-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 20px;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .labs-list {
        padding: 15px;
    }

    .lab-info {
        padding: 20px;
    }
}

/* ============================
   LAB REGISTRATION STYLING
   ============================ */

/* ============================
   MODAL STYLES (Lab Test Booking & Lab Profile)
   ============================ */
.dd-modal, .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.dd-modal-header h2 {
    color: #007cba;
    margin: 0;
    font-size: 24px;
}

.dd-modal-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-modal-close:hover {
    color: #007cba;
}

.dd-modal-body {
    padding: 30px;
}

.dd-modal-body .dd-form-group {
    margin-bottom: 20px;
}

.dd-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.dd-modal-body input,
.dd-modal-body select,
.dd-modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dd-modal-body input:focus,
.dd-modal-body select:focus,
.dd-modal-body textarea:focus {
    outline: none;
    border-color: #007cba;
}

.dd-modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.dd-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.dd-modal-actions .dd-btn-primary,
.dd-modal-actions .dd-btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
}

.dd-btn-primary {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dd-btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.dd-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dd-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.dd-lab-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.dd-lab-info h4 {
    color: #007cba;
    margin-bottom: 15px;
}

.dd-lab-info p {
    margin: 5px 0;
    color: #666;
}

/* ============================
   LAB PROFILE MODAL STYLES
   ============================ */
.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.close {
    background: none;
    border: none;
    font-size: 30px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
}

.lab-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.profile-avatar {
    margin-bottom: 20px;
}

.profile-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto;
}

/* Lab Avatar Styles for Lab Search Cards */
.lab-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.lab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lab-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 50%;
}

.profile-details h3 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.profile-details .lab-type {
    color: #ff6b35;
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Profile Info Styles for Lab Modal */
.profile-info h3 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.profile-info .lab-type {
    font-size: 18px;
    color: #ff6b35;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item.full-width {
    flex-direction: column;
    align-items: flex-start;
}

.info-item strong {
    color: #333;
    font-weight: 600;
    min-width: 140px;
}

.info-item span {
    color: #666;
    flex: 1;
    text-align: right;
}

.info-item.full-width span {
    text-align: left;
    margin-top: 8px;
    line-height: 1.5;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.profile-actions .btn-primary {
    background: #ff6b35;
    color: white;
}

.profile-actions .btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.profile-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.profile-actions .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Responsive Design for Lab Profile Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .profile-details h3 {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        width: 100%;
    }
}

/* Patient Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
}

.patient-search-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.patient-search-item:hover {
    background-color: #f8f9fa;
}

.patient-search-item strong {
    color: #333;
    font-size: 14px;
}

.patient-search-item small {
    color: #666;
    font-size: 12px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.patient-info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.patient-info-card p {
    margin: 5px 0;
    color: #333;
}

.patient-info-card strong {
    color: #007cba;
}

/* Test Management Styles */
.test-management-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.tab-btn:hover {
    color: #ff6b35;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tests-list {
    max-height: 400px;
    overflow-y: auto;
}

.test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.test-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.test-info {
    flex: 1;
}

.test-info h4 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.test-category {
    color: #ff6b35;
    font-weight: bold;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.test-description {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.test-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 150px;
}

.price-label {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.price-value {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.test-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #007cba;
    color: white;
}

.btn-edit:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.no-tests {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-tests p {
    font-size: 16px;
    margin: 0;
}

.dd-modal-body small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Doctor Referrals Styles */
.dd-referrals-list {
    max-height: 500px;
    overflow-y: auto;
}

.dd-referral-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.dd-referral-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dd-referral-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.dd-referral-doctor h4 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.dd-referral-doctor p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.dd-referral-status {
    text-align: right;
}

.dd-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.dd-status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.dd-status-accepted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dd-status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dd-status-completed {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.dd-referral-patient {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.dd-referral-patient p {
    margin: 5px 0;
    color: #333;
    font-size: 14px;
}

.dd-referral-details {
    margin-bottom: 15px;
}

.dd-referral-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.dd-referral-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dd-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.dd-btn-small:hover {
    transform: translateY(-1px);
}

.dd-btn-small.dd-btn-primary {
    background: #28a745;
    color: white;
}

.dd-btn-small.dd-btn-primary:hover {
    background: #218838;
}

.dd-btn-small.dd-btn-secondary {
    background: #6c757d;
    color: white;
}

.dd-btn-small.dd-btn-secondary:hover {
    background: #5a6268;
}

.dd-btn-small.dd-btn-info {
    background: #17a2b8;
    color: white;
}

.dd-btn-small.dd-btn-info:hover {
    background: #138496;
}

.dd-no-referrals {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.dd-no-referrals p {
    font-size: 16px;
    margin: 0;
}

/* Field error styling - Same as doctor registration */
.field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.dd-lab-reg-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  box-sizing: border-box !important;
}

.dd-lab-reg-page .dd-title {
  color: #fff;
  text-align: center;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0 0 30px;
  text-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #f59e0b, #d97706, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dd-step-form {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.dd-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
}

.step-indicator {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #cbd5e1, #94a3b8);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid rgba(255,255,255,0.3);
}

.step-indicator.active {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.step-indicator.completed {
  background: linear-gradient(145deg, #10b981, #059669);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.dd-step {
  display: none;
}

.dd-step.active {
  display: block;
}

.dd-step h2 {
  color: #1e293b;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
  background: rgba(255,255,255,1);
}

.form-group input[type="file"] {
  padding: 8px;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.checkbox-group label:hover {
  background: #f8fafc;
  border-color: var(--brand);
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

.dd-btn-map {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.3s ease;
}

.dd-btn-map:hover {
  background: #059669;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
}

.dd-btn-next,
.dd-btn-prev,
.dd-btn-submit {
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 15px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 10;
}

.dd-btn-next:hover,
.dd-btn-submit:hover {
  background: linear-gradient(145deg, #5a67d8, #6b46c1);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.dd-btn-prev {
  background: linear-gradient(145deg, #6b7280, #4b5563);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

.dd-btn-prev:hover {
  background: linear-gradient(145deg, #4b5563, #374151);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(107, 114, 128, 0.4);
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.login-footer p {
  margin: 10px 0;
  color: #64748b;
}

.login-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dd-lab-reg-page {
    padding: 10px;
  }
  
  .dd-step-form {
    padding: 20px;
  }
  
  .dd-progress {
    gap: 10px;
  }
  
  .step-indicator {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }
  
  .dd-step h2 {
    font-size: 20px;
  }
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative !important;
  min-height: 70vh;
  background-size: cover !important;
  background-position: center center !important;
  overflow: hidden;
  display: block;
}

/* inner black translucent container (bottom center) */
.hero-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  width: 90%;
  max-width: 920px;
  background: rgba(0,0,0,0.55);
  padding: 36px 48px;
  color: #fff;
  border-radius: 16px;
  z-index: 50;
  text-align: center;
}

/* search bar inside hero */
.hero-container .search-bar {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:16px;
}
.hero-container .search-bar input[type="text"],
.hero-container .search-bar input[readonly] {
  padding:12px 14px;
  border-radius:8px;
  border: none;
  font-size:15px;
}
.hero-container .search-bar input[readonly] { background:#eee;color:#333; }
.hero-container .search-bar button {
  padding:12px 20px;
  border-radius:8px;
  border:none;
  background: var(--accent);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

/* ============================
   Login / Register dropdown (top-right)
   ============================ */
.hero-actions {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 80;
  display:flex;
  align-items:center;
  gap:8px;
}

.dd-dropdown { position: relative; }
.dd-btn-login {
  background: linear-gradient(180deg,var(--accent),#f57c00);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(15,107,209,0.06);
}
.dd-btn-login:focus { outline: none; box-shadow: 0 0 0 4px rgba(15,107,209,0.12); }

.dd-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(2,6,23,0.12);
  padding: 8px;
  display: none;
  list-style:none;
  margin:0;
  z-index:120;
  transform-origin: top right;
  transition: transform .12s ease, opacity .12s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.dd-dropdown.open .dd-dropdown-menu {
  display:block;
  opacity:1;
  transform: translateY(0);
}

.dd-menu-item {
  width:100%;
  display:block;
  padding:10px 14px;
  text-align:left;
  background:transparent;
  border:none;
  cursor:pointer;
  font-size:14px;
  color:#111827;
  border-radius:8px;
}
.dd-menu-item:hover { background:#f1f5f9; }

/* divider */
.dd-divider { height:1px;background:#eef2f7;margin:8px 0;border-radius:2px; }

/* ---------- Submenu (register) - click to open ---------- */
.dd-has-submenu { 
  position: relative; 
}
.dd-submenu-menu {
  display:none;
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  background:#fff;
  min-width:200px;
  border-radius:8px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.08);
  padding:6px;
  list-style:none;
  margin:0;
  z-index:9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

/* Show submenu when active class is added */
.dd-has-submenu.active > .dd-submenu-menu { 
  display:block; 
  opacity: 1;
  transform: translateY(0);
}

/* Submenu items styling */
.dd-submenu-menu .dd-menu-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  border: none;
  background: none;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.dd-submenu-menu .dd-menu-item:hover {
  background: #f1f5f9;
  color: #0f6bd1;
  text-decoration: none;
}

/* Ensure links are clickable */
.dd-submenu-menu a {
  pointer-events: auto !important;
  z-index: 9999 !important;
  position: relative;
  display: block !important;
  width: 100% !important;
  cursor: pointer !important;
}

/* Make sure submenu items are clickable */
.dd-submenu-menu li {
  position: relative;
  z-index: 9999;
}

.dd-submenu-menu li a {
  position: relative;
  z-index: 10000;
}

/* ============================
   Home Button - Fixed Position (HIDDEN)
   ============================ */
.dd-home-button {
  display: none !important;
  /* Hidden as requested by user */
}

.dd-home-button:hover {
  background: #0a5bb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 107, 209, 0.4);
  color: white;
  text-decoration: none;
}

.dd-home-button::before {
  content: "🏠";
  font-size: 16px;
}

/* ============================
   Login Pages Styling
   ============================ */
.dd-login-page {
    position: relative;
    min-height: 100vh;
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.dd-login-page .dd-title {
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    font-size: 28px;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.dd-login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0f6bd1;
    box-shadow: 0 0 0 3px rgba(15, 107, 209, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    width: auto;
}

.forgot-password {
    color: #0f6bd1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.login-footer p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.login-footer a {
    color: #0f6bd1;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.dd-error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
}

.dd-success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
}

/* ============================
   Doctor Login Page Styling (Reference Image Based)
   ============================ */
/* Full Screen Layout - Override WordPress Defaults for Doctor Login */
body.dd-doctor-login-page-body,
body:has(.dd-doctor-login-page) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Remove WordPress Container Constraints */
body.dd-doctor-login-page-body .entry-content,
body.dd-doctor-login-page-body .wp-block-post-content,
body.dd-doctor-login-page-body .has-global-padding,
body.dd-doctor-login-page-body .is-layout-constrained,
body.dd-doctor-login-page-body .wp-block-group,
body.dd-doctor-login-page-body main,
body.dd-doctor-login-page-body .site-main,
body.dd-doctor-login-page-body .content-area,
body:has(.dd-doctor-login-page) .entry-content,
body:has(.dd-doctor-login-page) .wp-block-post-content,
body:has(.dd-doctor-login-page) .has-global-padding,
body:has(.dd-doctor-login-page) .is-layout-constrained,
body:has(.dd-doctor-login-page) .wp-block-group,
body:has(.dd-doctor-login-page) main,
body:has(.dd-doctor-login-page) .site-main,
body:has(.dd-doctor-login-page) .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dd-doctor-login-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background: #e3f2fd; /* Light blue background like reference */
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.doctor-login-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.doctor-login-title {
  font-size: 32px;
  font-weight: bold;
  color: #1565c0; /* Dark blue like reference */
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.doctor-illustration {
  margin-bottom: 40px;
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  background: #e3f2fd; /* Light blue circular background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #bbdefb;
}

.doctor-icon {
  font-size: 60px;
}

.doctor-login-form {
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #666;
  font-size: 18px;
  z-index: 2;
}

.doctor-login-form input[type="tel"],
.doctor-login-form input[type="email"],
.doctor-login-form input[type="password"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: #fafafa; /* Light beige background like reference */
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.doctor-login-form input[type="tel"]:focus,
.doctor-login-form input[type="email"]:focus,
.doctor-login-form input[type="password"]:focus {
  outline: none;
  border-color: #1565c0;
  background: white;
}

.doctor-login-btn {
  width: 100%;
  padding: 15px;
  background: #1565c0; /* Dark blue like reference */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.doctor-login-btn:hover {
  background: #0d47a1;
}

.forgot-password-link {
  margin-bottom: 30px;
}

.forgot-password-link a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

/* ============================
   Patient Login Page Styling (Same as Doctor Login)
   ============================ */
/* Full Screen Layout - Override WordPress Defaults for Patient Login */
body.dd-patient-login-page-body,
body:has(.dd-patient-login-page) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Remove WordPress Container Constraints */
body.dd-patient-login-page-body .entry-content,
body.dd-patient-login-page-body .wp-block-post-content,
body.dd-patient-login-page-body .has-global-padding,
body.dd-patient-login-page-body .is-layout-constrained,
body.dd-patient-login-page-body .wp-block-group,
body.dd-patient-login-page-body main,
body.dd-patient-login-page-body .site-main,
body.dd-patient-login-page-body .content-area,
body:has(.dd-patient-login-page) .entry-content,
body:has(.dd-patient-login-page) .wp-block-post-content,
body:has(.dd-patient-login-page) .has-global-padding,
body:has(.dd-patient-login-page) .is-layout-constrained,
body:has(.dd-patient-login-page) .wp-block-group,
body:has(.dd-patient-login-page) main,
body:has(.dd-patient-login-page) .site-main,
body:has(.dd-patient-login-page) .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dd-patient-login-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background: #e8f5e8; /* Light green background for patient */
  display: flex;
  align-items: center;
  justify-content: center;
}

.patient-login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.patient-login-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.patient-login-title {
  font-size: 32px;
  font-weight: bold;
  color: #2e7d32; /* Dark green like reference */
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.patient-illustration {
  margin-bottom: 40px;
}

.patient-avatar {
  width: 120px;
  height: 120px;
  background: #e8f5e8; /* Light green circular background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #c8e6c9;
}

.patient-icon {
  font-size: 60px;
}

.patient-login-form {
  margin-bottom: 20px;
}

.patient-login-form input[type="tel"],
.patient-login-form input[type="email"],
.patient-login-form input[type="password"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: #fafafa; /* Light beige background like reference */
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.patient-login-form input[type="tel"]:focus,
.patient-login-form input[type="email"]:focus,
.patient-login-form input[type="password"]:focus {
  outline: none;
  border-color: #2e7d32;
  background: white;
}

.patient-login-btn {
  width: 100%;
  padding: 15px;
  background: #2e7d32; /* Dark green like reference */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.patient-login-btn:hover {
  background: #1b5e20;
}

/* ============================
   Forgot Password Page Styling
   ============================ */
.dd-forgot-password-page {
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background: #fff3e0; /* Light orange background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-password-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.forgot-password-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.forgot-password-title {
  font-size: 32px;
  font-weight: bold;
  color: #f57c00; /* Orange like reference */
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.forgot-password-illustration {
  margin-bottom: 40px;
}

.forgot-password-avatar {
  width: 120px;
  height: 120px;
  background: #fff3e0; /* Light orange circular background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #ffcc02;
}

.forgot-password-icon {
  font-size: 60px;
}

.forgot-password-form {
  margin-bottom: 20px;
}

.forgot-password-form input[type="tel"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 18px;
  background: #fafafa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.forgot-password-form select {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: #fafafa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
}

.forgot-password-form input[type="tel"]:focus {
  outline: none;
  border-color: #f57c00;
  background: white;
}

.forgot-password-form select:focus {
  outline: none;
  border-color: #f57c00;
  background: white;
}

.forgot-password-btn {
  width: 100%;
  padding: 15px;
  background: #f57c00; /* Orange like reference */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.forgot-password-btn:hover {
  background: #e65100;
}

.forgot-password-footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.forgot-password-footer a {
  color: #f57c00;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password-footer a:hover {
  text-decoration: underline;
}

/* OTP Verification Section */
.otp-verification-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.otp-verification-section h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: bold;
}

.verify-otp-form input[type="text"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 3px;
  background: #fafafa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.verify-otp-form input[type="text"]:focus {
  outline: none;
  border-color: #2e7d32;
  background: white;
}

.verify-otp-btn {
  width: 100%;
  padding: 15px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.verify-otp-btn:hover {
  background: #1b5e20;
}

/* ============================
   Reset Password Page Styling
   ============================ */
.dd-reset-password-page {
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background: #f3e5f5; /* Light purple background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-password-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.reset-password-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.reset-password-title {
  font-size: 32px;
  font-weight: bold;
  color: #7b1fa2; /* Purple like reference */
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.reset-password-illustration {
  margin-bottom: 30px;
}

.reset-password-avatar {
  width: 120px;
  height: 120px;
  background: #f3e5f5; /* Light purple circular background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #ce93d8;
}

.reset-password-icon {
  font-size: 60px;
}

.reset-instruction {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.reset-password-form {
  margin-bottom: 20px;
}

.reset-password-form input[type="password"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: #fafafa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.reset-password-form input[type="password"]:focus {
  outline: none;
  border-color: #7b1fa2;
  background: white;
}

.reset-password-btn {
  width: 100%;
  padding: 15px;
  background: #7b1fa2; /* Purple like reference */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.reset-password-btn:hover {
  background: #6a1b9a;
}

.reset-password-footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.reset-password-footer a {
  color: #7b1fa2;
  text-decoration: none;
  font-weight: 500;
}

.reset-password-footer a:hover {
  text-decoration: underline;
}

/* ============================
   OTP Verification Page Styling
   ============================ */
.dd-verify-otp-page {
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background: #e8f5e8; /* Light green background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-otp-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.verify-otp-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.verify-otp-title {
  font-size: 32px;
  font-weight: bold;
  color: #2e7d32; /* Green like reference */
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.verify-otp-illustration {
  margin-bottom: 30px;
}

.verify-otp-avatar {
  width: 120px;
  height: 120px;
  background: #e8f5e8; /* Light green circular background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid #c8e6c9;
}

.verify-otp-icon {
  font-size: 60px;
}

.otp-instruction {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.verify-otp-form {
  margin-bottom: 20px;
}

.verify-otp-form input[type="text"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 5px;
  background: #fafafa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.verify-otp-form input[type="text"]:focus {
  outline: none;
  border-color: #2e7d32;
  background: white;
}

.verify-otp-btn {
  width: 100%;
  padding: 15px;
  background: #2e7d32; /* Green like reference */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.verify-otp-btn:hover {
  background: #1b5e20;
}

.otp-footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.otp-footer a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

.otp-footer a:hover {
  text-decoration: underline;
}

/* ============================
   Cards / Services / Specialities
   ============================ */
.service-grid, .speciality-grid, .steps-grid {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
}
.service-card, .speciality-card, .step-card {
  background: #fff;
  border-radius:12px;
  padding:20px;
  min-width:220px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.04);
}

/* Service card text styling - ensure bold text */
.service-card strong {
  font-weight: 700 !important;
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.service-card {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* speciality card image handling */
.speciality-card {
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  border-radius:12px;
  overflow:hidden;
}

/* CTA */
.cta a {
  display:inline-block;
  padding:12px 20px;
  border-radius:10px;
  background:#fff;
  color:var(--brand);
  font-weight:700;
  text-decoration:none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ============================
   Modern Doctor Registration Form
   ============================ */

/* Form container */
.dd-step-form {
  max-width: 920px;
  margin: 28px auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0f1724;
}

/* progress / top indicators */
.dd-progress {
  display:flex;
  gap:12px;
  margin-bottom:20px;
}
.step-indicator {
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  border-radius:999px;
  background: linear-gradient(180deg,#f8fafc,#eef2ff);
  color:#344155;
  font-weight:700;
  font-size:14px;
  border:1px solid rgba(15,23,42,0.04);
  transition: all .16s ease;
}
.step-indicator.active {
  background: linear-gradient(180deg,var(--accent),#f57c00);
  color:#fff;
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(255,152,0,0.14);
}

/* Step panels */
.dd-step { display:none !important; animation: fadeIn .18s ease; margin-bottom:12px; }
.dd-step.active { display:block !important; }

/* fade */
@keyframes fadeIn { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:none;} }

/* headings & labels */
.dd-step h2 { font-size:20px; margin-bottom:10px; color:#0b1220; }
.dd-step label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; color:#344155; }

/* two-column grid for inputs */
.dd-step .field-grid {
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap:14px;
  margin-bottom:12px;
}
@media (max-width:780px) { .dd-step .field-grid { grid-template-columns: 1fr; } }

/* inputs / selects / textarea */
.dd-step input[type="text"],
.dd-step input[type="email"],
.dd-step input[type="url"],
.dd-step input[type="number"],
.dd-step input[type="tel"],
.dd-step input[type="file"],
.dd-step select,
.dd-step textarea {
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e6e9ef;
  font-size:15px;
  color:#0f1724;
  background:#fff;
  transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
  outline:none;
}

/* Fix dropdown styling */
.dd-step select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.dd-step select:focus {
  border-color:#93c5fd;
  box-shadow:0 8px 26px rgba(59,130,246,0.08);
  transform: translateY(-1px);
}
.dd-step textarea { min-height:110px; resize:vertical; }
.dd-step input:focus, .dd-step textarea:focus, .dd-step select:focus {
  border-color:#93c5fd;
  box-shadow:0 8px 26px rgba(59,130,246,0.08);
  transform: translateY(-1px);
}

/* readonly map link */
#map_link[readonly] { background:#f8fafc; color:#475569; }

/* checkbox group */
.checkbox-group label { display:inline-flex; align-items:center; gap:8px; margin-right:12px; font-weight:500; color:#374151; }

/* file input styling */
.dd-step input[type="file"] { 
    padding:8px 10px; 
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}
.dd-step input[type="file"]:hover {
    border-color: #0f6bd1;
    background: #f0f9ff;
}
.dd-step input[type="file"].field-error {
    border-color: #ff6b6b !important;
    background: #fff5f5 !important;
    border-style: solid !important;
}

/* actions */
.actions {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:18px;
}
@media (max-width:540px) { .actions { flex-direction:column-reverse; } .actions button { width:100%; } }

/* buttons */
.actions button, .dd-step-form .btn {
  padding:11px 18px;
  border-radius:10px;
  font-weight:700;
  border:none;
  cursor:pointer;
  font-size:15px;
}
#nextBtn { background: linear-gradient(180deg,var(--accent),#f57c00); color:#fff; box-shadow: 0 10px 30px rgba(245,124,0,0.12); }
#prevBtn { background:#fff; color:#0f1724; border:1px solid #e6e9ef; box-shadow: 0 6px 18px rgba(2,6,23,0.04); }
#submitBtn, .btn { background: linear-gradient(180deg,#10b981,#059669); color:#fff; box-shadow: 0 10px 30px rgba(5,150,105,0.12); }

.actions button:hover { transform: translateY(-2px); }
.actions button:active { transform: translateY(0); }

/* small helper text */
.dd-hint { font-size:13px; color:var(--muted); margin-top:6px; }

/* error state helper */
.field-error { 
    border-color:#ff6b6b !important; 
    box-shadow: 0 8px 24px rgba(255,107,107,0.06) !important; 
    background-color: #fff5f5 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* map link generate button */
#generateMapLink {
  margin-top:8px;
  padding:10px 14px;
  border-radius:8px;
  border:none;
  background: #0f6bd1;
  color:#fff;
  cursor:pointer;
}
#generateMapLink:hover { opacity:0.95; transform: translateY(-1px); }

/* misc small tweaks */
.dd-step .hint-row { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-top:6px; }

/* ============================
   Remove/Force show theme parts (plugin page isolation)
   ============================ */
/* Hide theme headers/footers if needed (be careful) */
/* Removed empty ruleset - was causing linter warning */

/* Hide theme footers on the home/front page only, but allow our custom footer */
body.home .site-footer,
body.front-page .site-footer,
body.home .dd-custom-footer,
body.front-page .dd-custom-footer { display: none !important; }

/* Hide theme header on all pages (global) - but NOT our custom header */
.site-header,
.wp-site-blocks > header,
header.wp-block-template-part,
.wp-site-blocks .wp-block-template-part[aria-label="Header"],
.wp-site-blocks .wp-block-template-part:first-of-type,
.wp-site-blocks .wp-block-group[style*="position:sticky"],
.wp-block-navigation { display: none !important; }

/* Allow our custom header to show */
#dd-main-header,
header#dd-main-header { display: block !important; }

/* Remove top gaps when header is hidden */
.wp-site-blocks main,
main.wp-block-group { margin-top: 0 !important; }

/* Hide the big page title "Home" only on the home/front page */
body.home .wp-block-post-title,
body.front-page .wp-block-post-title,
body.home .entry-title,
body.front-page .entry-title,
body.home h1.wp-block-post-title,
body.front-page h1.wp-block-post-title { display: none !important; }

/* Doctor Registration page specific styles */
/* Full Screen Layout - Override WordPress Defaults for Doctor Registration */
body.dd-doctor-reg-page-body,
body:has(.dd-doctor-reg-page) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Remove WordPress Container Constraints */
body.dd-doctor-reg-page-body .entry-content,
body.dd-doctor-reg-page-body .wp-block-post-content,
body.dd-doctor-reg-page-body .has-global-padding,
body.dd-doctor-reg-page-body .is-layout-constrained,
body.dd-doctor-reg-page-body .wp-block-group,
body.dd-doctor-reg-page-body main,
body.dd-doctor-reg-page-body .site-main,
body.dd-doctor-reg-page-body .content-area,
body:has(.dd-doctor-reg-page) .entry-content,
body:has(.dd-doctor-reg-page) .wp-block-post-content,
body:has(.dd-doctor-reg-page) .has-global-padding,
body:has(.dd-doctor-reg-page) .is-layout-constrained,
body:has(.dd-doctor-reg-page) .wp-block-group,
body:has(.dd-doctor-reg-page) main,
body:has(.dd-doctor-reg-page) .site-main,
body:has(.dd-doctor-reg-page) .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page .dd-doctor-reg-page,
body .dd-doctor-reg-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background-image: url('../img/doctor registration.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  /* Break out of theme constrained wrappers to full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Add subtle overlay for readability */
.dd-doctor-reg-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.32); /* stronger overlay for contrast */
  pointer-events: none;
}

.dd-doctor-reg-page .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding-left: 16px;
  padding-right: 16px;
}

/* Hide site header on doctor registration page */
body.page-template-default .dd-doctor-reg-page ~ header,
body .dd-doctor-reg-page header,
body.page .site-header:has(+ .dd-doctor-reg-page),
body.page .wp-site-blocks > header:has(+ .dd-doctor-reg-page) { display:none !important; }

/* Stronger rules: if the doctor reg section exists anywhere, hide theme header */
.wp-site-blocks:has(.dd-doctor-reg-page) > header,
body:has(.dd-doctor-reg-page) header.site-header,
body:has(.dd-doctor-reg-page) .wp-block-template-part { display:none !important; }

/* Remove theme global padding/max-width when our section is present */
.entry-content:has(.dd-doctor-reg-page),
.wp-block-post-content:has(.dd-doctor-reg-page),
.has-global-padding:has(.dd-doctor-reg-page),
.is-layout-constrained:has(.dd-doctor-reg-page) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* Enable full-width alignment for elements inside has-global-padding containers */
.has-global-padding > .alignfull,
.has-global-padding > .alignwide {
  margin-right: calc(var(--wp-style-root-padding-right, 0) * -1) !important;
  margin-left: calc(var(--wp-style-root-padding-left, 0) * -1) !important;
  width: calc(100% + var(--wp-style-root-padding-right, 0) + var(--wp-style-root-padding-left, 0)) !important;
  max-width: calc(100% + var(--wp-style-root-padding-right, 0) + var(--wp-style-root-padding-left, 0)) !important;
}

/* Enable full-width for root constrained layouts */
:root:where(.is-layout-constrained) > * {
  max-width: none !important;
}

:root:where(.is-layout-constrained) > .alignfull {
  margin-right: calc(var(--wp-style-root-padding-right, 0) * -1) !important;
  margin-left: calc(var(--wp-style-root-padding-left, 0) * -1) !important;
  width: calc(100% + var(--wp-style-root-padding-right, 0) + var(--wp-style-root-padding-left, 0)) !important;
  max-width: calc(100% + var(--wp-style-root-padding-right, 0) + var(--wp-style-root-padding-left, 0)) !important;
}

/* Fallback: directly target common constrained wrappers even if :has is unsupported */
.entry-content.wp-block-post-content.has-global-padding,
.wp-block-group.has-global-padding.wp-block-group-is-layout-constrained,
.wp-block-post-content.is-layout-constrained {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* Also hide the theme page title when the doctor reg block exists */
.wp-site-blocks:has(.dd-doctor-reg-page) .wp-block-post-title,
.wp-site-blocks:has(.dd-doctor-reg-page) h1.wp-block-post-title { display:none !important; }

/* Remove padding/width from the group that wraps the H1 when our page exists */
.wp-site-blocks:has(.dd-doctor-reg-page) .wp-block-group.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* Remove margins/padding on the main wrapper when our section exists */
.wp-site-blocks:has(.dd-doctor-reg-page) main.wp-block-group.is-layout-flow,
body:has(.dd-doctor-reg-page) main.wp-block-group.is-layout-flow {
  margin: 0 !important;
  padding: 0 !important;
}

/* Zero padding on any template-part groups rendered after content */
.wp-site-blocks:has(.dd-doctor-reg-page) section.wp-block-template-part,
.wp-site-blocks:has(.dd-doctor-reg-page) section.wp-block-template-part .wp-block-group {
  padding: 0 !important;
  margin: 0 !important;
}

/* Decorative blobs for modern feel */
.dd-doctor-reg-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 220px at 15% 10%, rgba(15,107,209,0.20), transparent 60%),
    radial-gradient(500px 200px at 85% 0%, rgba(255,152,0,0.14), transparent 60%),
    radial-gradient(700px 260px at 50% 100%, rgba(15,107,209,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Slightly elevate the form card for prominence */
.dd-doctor-reg-page .dd-step-form {
  position: relative;
  z-index: 2;
  backdrop-filter: saturate(130%) blur(1px);
  border: 1px solid rgba(2,6,23,0.06);
}

/* Big overlay title like the reference */
.dd-title {
  color: #fff;
  text-align: center;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 22px;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* Patient Registration page shares same hero background */
/* Full Screen Layout - Override WordPress Defaults for Patient Registration */
body.dd-patient-reg-page-body,
body:has(.dd-patient-reg-page) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Remove WordPress Container Constraints */
body.dd-patient-reg-page-body .entry-content,
body.dd-patient-reg-page-body .wp-block-post-content,
body.dd-patient-reg-page-body .has-global-padding,
body.dd-patient-reg-page-body .is-layout-constrained,
body.dd-patient-reg-page-body .wp-block-group,
body.dd-patient-reg-page-body main,
body.dd-patient-reg-page-body .site-main,
body.dd-patient-reg-page-body .content-area,
body:has(.dd-patient-reg-page) .entry-content,
body:has(.dd-patient-reg-page) .wp-block-post-content,
body:has(.dd-patient-reg-page) .has-global-padding,
body:has(.dd-patient-reg-page) .is-layout-constrained,
body:has(.dd-patient-reg-page) .wp-block-group,
body:has(.dd-patient-reg-page) main,
body:has(.dd-patient-reg-page) .site-main,
body:has(.dd-patient-reg-page) .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .dd-patient-reg-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background-image: url('../img/doctor registration.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
body .dd-patient-reg-page::before { content:''; position:absolute; inset:0; background: rgba(2,6,23,0.32); }
body .dd-patient-reg-page .container { 
    position: relative; 
    z-index:1; 
    background: transparent; 
    box-shadow:none; 
    border-radius:0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}
body .dd-patient-reg-page .dd-step-form { position:relative; z-index:2; backdrop-filter:saturate(130%) blur(1px); border:1px solid rgba(2,6,23,0.06); }


/* ============================
   Responsive tweaks
   ============================ */
@media (max-width: 1024px) {
  .hero-container { bottom: 32px; padding:28px; width:94%; }
  .dd-step-form { padding:22px; margin:20px; }
}

@media (max-width: 768px) {
  .hero { min-height: 50vh; }
  .hero-container { bottom:20px; padding:18px; }
  .step-indicator { height:40px; font-size:13px; }
  .dd-step .field-grid { gap:10px; }
}

/* ============================
   Hindi + English Text Styling
   ============================ */
/* Style for bilingual labels */
.dd-step label,
.dd-patient-reg-page label {
  line-height: 1.4;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #344155;
}

/* Style for Hindi text in labels */
.dd-step label:contains("हिंदी"),
.dd-patient-reg-page label:contains("हिंदी") {
  font-family: "Noto Sans Devanagari", "Mangal", "Arial Unicode MS", sans-serif;
}

/* Style for placeholders with Hindi */
.dd-step input::placeholder,
.dd-patient-reg-page input::placeholder {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}

/* Style for success/error messages with Hindi */
.dd-patient-reg-page .success-message,
.dd-patient-reg-page .error-message {
  line-height: 1.5;
  font-size: 14px;
}

/* Style for form titles with Hindi */
.dd-title {
  line-height: 1.3;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 22px;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* Style for submit button with Hindi */
.dd-patient-reg-page .btn {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.12);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dd-patient-reg-page .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.18);
}

/* Style for gender dropdown options with Hindi */
.dd-patient-reg-page select option {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 15px;
  padding: 8px 12px;
}

/* Style for Patient Login Page with Hindi */
.patient-login-title {
  line-height: 1.3;
  font-size: 32px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.patient-login-form input[type="tel"],
.patient-login-form input[type="password"] {
  font-size: 16px;
  padding: 15px 15px 15px 50px;
}

.patient-login-form input[type="tel"]::placeholder,
.patient-login-form input[type="password"]::placeholder {
  font-size: 15px;
  color: #9ca3af;
  font-style: italic;
}

.patient-login-btn {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* ============================
   Lab Login Page Styling (Same as Doctor/Patient Login)
   ============================ */
/* Full Screen Layout - Override WordPress Defaults for Lab Login */
body.dd-lab-login-page-body,
body:has(.dd-lab-login-page) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Remove WordPress Container Constraints */
body.dd-lab-login-page-body .entry-content,
body.dd-lab-login-page-body .wp-block-post-content,
body.dd-lab-login-page-body .has-global-padding,
body.dd-lab-login-page-body .is-layout-constrained,
body.dd-lab-login-page-body .wp-block-group,
body.dd-lab-login-page-body main,
body.dd-lab-login-page-body .site-main,
body.dd-lab-login-page-body .content-area,
body:has(.dd-lab-login-page) .entry-content,
body:has(.dd-lab-login-page) .wp-block-post-content,
body:has(.dd-lab-login-page) .has-global-padding,
body:has(.dd-lab-login-page) .is-layout-constrained,
body:has(.dd-lab-login-page) .wp-block-group,
body:has(.dd-lab-login-page) main,
body:has(.dd-lab-login-page) .site-main,
body:has(.dd-lab-login-page) .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dd-lab-login-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  position: relative;
  min-height: 100vh;
  padding: 80px 0 120px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 20px;
}

.lab-login-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.lab-login-title {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b35; /* Orange color for lab */
  margin-bottom: 30px;
  line-height: 1.3;
  letter-spacing: 1px;
}

.lab-illustration {
  margin-bottom: 30px;
}

.lab-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.lab-icon {
  font-size: 60px;
}

.lab-login-form {
  margin-bottom: 20px;
}

.lab-login-form .input-group {
  position: relative;
  margin-bottom: 20px;
}

.lab-login-form .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #ff6b35;
  z-index: 2;
}

.lab-login-form input[type="tel"],
.lab-login-form input[type="email"],
.lab-login-form input[type="password"] {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}

.lab-login-form input[type="tel"]:focus,
.lab-login-form input[type="email"]:focus,
.lab-login-form input[type="password"]:focus {
  outline: none;
  border-color: #ff6b35;
  background: white;
}

.lab-login-form input[type="tel"]::placeholder,
.lab-login-form input[type="email"]::placeholder,
.lab-login-form input[type="password"]::placeholder {
  font-size: 15px;
  color: #9ca3af;
  font-style: italic;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: #ff6b35; /* Orange color for lab */
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.login-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.login-links {
  text-align: center;
  margin-top: 20px;
}

.login-links a {
  color: #ff6b35;
  text-decoration: none;
  font-size: 14px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.login-links a:hover {
  color: #e55a2b;
  text-decoration: underline;
}

.dd-loading {
  text-align: center;
  color: #ff6b35;
  font-style: italic;
  margin-top: 10px;
}

.forgot-password-link a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.login-footer p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.login-footer a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

/* Login Method Toggle Buttons */
.login-method-toggle {
  display: flex;
  margin-bottom: 25px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.toggle-btn.active {
  background: #2e7d32;
  color: white;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.toggle-btn:hover:not(.active) {
  background: #e2e8f0;
  color: #475569;
}

/* OTP Send Button */
.otp-send-btn {
  width: 100%;
  padding: 15px;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.otp-send-btn:hover {
  background: #d97706;
}

.otp-send-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* OTP Input Group */
#otpInputGroup {
  margin-bottom: 20px;
}

#otpInputGroup input {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 15px 15px 15px 50px;
}

/* OTP Verification Button */
#verifyOtpBtn {
  background: #10b981;
  margin-bottom: 20px;
}

#verifyOtpBtn:hover {
  background: #059669;
}

/* OTP Success/Error Messages */
.otp-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.otp-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.otp-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Countdown Timer */
.otp-timer {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-top: 10px;
}

.otp-timer.warning {
  color: #f59e0b;
  font-weight: bold;
}

/* ============================
   Doctor Dashboard Styling
   ============================ */
.dd-doctor-dashboard {
  min-height: 100vh;
  background: #f8fafc;
  padding: 0;
  width: 100%;
  margin: 0;
}

body.dd-doctor-dashboard-page-body .dd-doctor-dashboard {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dashboard-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

body.dd-doctor-dashboard-page-body .dashboard-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Dashboard Header */
.dashboard-header {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

body.dd-doctor-dashboard-page-body .dashboard-header {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.doctor-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e2e8f0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.profile-info h1 {
  margin: 0 0 8px 0;
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
}

.profile-info p {
  margin: 4px 0;
  color: #64748b;
  font-size: 16px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background-color: #f0f0f0;
}

.copy-btn:active {
  background-color: #e0e0e0;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

body.dd-doctor-dashboard-page-body .dashboard-actions {
  width: 100% !important;
  max-width: 100% !important;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #0f6bd1;
  color: white;
}

.btn-primary:hover {
  background: #0a5bb8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dd-doctor-dashboard-page-body .stats-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  background: #f0f9ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content h3 {
  margin: 0 0 4px 0;
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
}

.stat-content p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* Dashboard Content */
.dashboard-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dd-doctor-dashboard-page-body .dashboard-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.appointments-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dd-doctor-dashboard-page-body .appointments-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
  margin: 0;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
}

.appointment-count {
  background: #e2e8f0;
  color: #475569;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin: 0 0 8px 0;
  color: #475569;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  font-size: 16px;
}

/* Appointments List */
.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointment-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.appointment-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.appointment-time {
  text-align: center;
  min-width: 80px;
}

.appointment-time .time {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.appointment-time .date {
  display: block;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.appointment-details {
  flex: 1;
}

.appointment-details h4 {
  margin: 0 0 8px 0;
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
}

.appointment-details p {
  margin: 4px 0;
  color: #64748b;
  font-size: 14px;
}

.appointment-details .notes {
  font-style: italic;
  color: #475569;
}

.appointment-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

/* Completed Appointments Modal Styles */
.completed-appointments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.completed-appointment-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.completed-appointment-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.appointment-time {
  display: flex;
  flex-direction: column;
}

.appointment-time .time {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.appointment-time .date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 2px;
}

.appointment-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-completed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.appointment-details h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 600;
}

.appointment-details p {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.appointment-details .notes {
  font-style: italic;
  color: #4b5563;
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 10px 0;
}

.appointment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.appointment-meta .fees {
  font-weight: 600;
  color: #059669;
  font-size: 1rem;
}

.appointment-meta .appointment-id {
  font-size: 0.8rem;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
}

.appointment-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-small.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-small.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-small.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-small.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modal Header Actions */
.modal-header .modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small.btn-success {
  background: #10b981;
  color: white;
}

.btn-small.btn-success:hover {
  background: #059669;
}

.btn-small.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-small.btn-danger:hover {
  background: #dc2626;
}

.btn-small.btn-primary {
  background: #0f6bd1;
  color: white;
}

.btn-small.btn-primary:hover {
  background: #0a5bb8;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: white;
  margin: 20% auto 5% auto !important; /* Fixed: Modal ko aur neeche le jane ke liye */
  padding: 0;
  border-radius: 16px;
  width: 90% !important;
  max-width: 800px !important;
  max-height: 75vh !important;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: modalSlideIn 0.3s ease;
  position: relative !important;
  top: 0 !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Earnings Modal Header with Gradient */
#earningsModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

#earningsModal .modal-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

#earningsModal .close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

#earningsModal .close:hover {
  color: #ff6b6b;
}

/* Appointment Modal Header with Gradient */
#addAppointmentModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

#addAppointmentModal .modal-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

#addAppointmentModal .modal-subtitle {
  margin: 5px 0 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-style: italic;
}

#addAppointmentModal .close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

#addAppointmentModal .close:hover {
  color: #ff6b6b;
}

/* Set Availability Modal Header with Gradient */
#availabilityModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

#availabilityModal .modal-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

#availabilityModal .close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

#availabilityModal .close:hover {
  color: #ff6b6b;
}

/* Set Availability Modal Specific Styles */
.availability-modal .modal-content {
  max-width: 800px;
  width: 95%;
}

.availability-section {
  margin-bottom: 30px;
}

.availability-section h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.day-checkbox {
  display: flex;
  align-items: center;
  padding: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.day-checkbox:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.day-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.day-checkbox:hover .checkmark {
  background-color: #ddd;
}

.day-checkbox input:checked ~ .checkmark {
  background-color: #667eea;
  border-color: #667eea;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.day-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.day-text {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.timing-section {
  margin-bottom: 25px;
}

.timing-section h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.time-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.time-input {
  width: 120px;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  background-color: #f9f9f9;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.time-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.time-separator {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  margin-top: 20px;
}

/* Sunday card spans full width */
.day-checkbox:nth-child(7) {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 300px;
}

/* Appointment Modal Specific Styles */
.appointment-modal .modal-content {
  max-width: 500px;
  width: 90%;
  margin: 10% auto; /* Fixed: Modal ko neeche le jane ke liye */
}

/* Booking Modal Specific Styles */
.booking-modal .modal-content {
  max-width: 600px !important;
  width: 90% !important;
  margin: 20% auto 5% auto !important; /* Fixed: Modal ko aur neeche le jane ke liye */
  max-height: 75vh !important;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative !important;
  top: 0 !important;
}

.booking-modal .modal-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.booking-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.booking-modal .form-actions {
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 100;
  border-top: 1px solid #e2e8f0;
  padding: 20px 30px;
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.appointment-modal .form-group {
  margin-bottom: 20px;
}

.appointment-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.appointment-modal .form-group input,
.appointment-modal .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.appointment-modal .form-group input:focus,
.appointment-modal .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.appointment-modal .form-group small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

.appointment-modal .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.appointment-modal .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  position: sticky; /* Fixed: Buttons ko last mein stick karne ke liye */
  bottom: 0;
  background: white;
  z-index: 10;
}

.appointment-modal .btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #e9ecef;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.appointment-modal .btn-secondary:hover {
  background: #e9ecef;
  color: #343a40;
}

.appointment-modal .btn-primary {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.appointment-modal .btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.modal-header h2 {
  margin: 0;
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
}

.close {
  color: #64748b;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ef4444;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0f6bd1;
  box-shadow: 0 0 0 3px rgba(15, 107, 209, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.dashboard-actions .btn-primary,
.dashboard-actions .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dashboard-actions .btn-primary {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
}

.dashboard-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,124,186,0.3);
}

.dashboard-actions .btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.dashboard-actions .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Availability Settings */
.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.day-schedule {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.day-schedule h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-slots label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #4a5568;
}

.time-slots input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.time-slots input[type="time"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.time-slots span {
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

/* Earnings Report Modal Styles */
.earnings-modal .modal-content {
    max-width: 600px;
    width: 90%;
}

.earnings-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.earnings-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.earnings-card:last-child {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
}

.earnings-card h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.earnings-card .amount {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    margin: 0;
}

.earnings-trend {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.earnings-trend h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.chart-placeholder {
    padding: 40px 20px;
    color: #6b7280;
}

.chart-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.chart-placeholder p {
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #495057;
}

.chart-placeholder small {
    font-size: 12px;
    color: #6b7280;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-close {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #e9ecef;
    color: #343a40;
}

/* Status Toggle Section */
.status-toggle-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.status-info h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.status-dot.available {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-dot.busy {
    background-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.status-dot.unavailable {
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
}

.status-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-available,
.btn-busy,
.btn-unavailable,
.btn-loading {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-available:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-busy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex !important; /* Force display */
}

.btn-busy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-unavailable {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-unavailable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.btn-loading {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 16px;
}

.status-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    text-align: center;
    animation: slideInDown 0.3s ease;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #a7f3d0;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment Settings */
.payment-options {
    margin-bottom: 30px;
}

.payment-options h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.payment-method {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0,124,186,0.1);
}

.payment-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.payment-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.payment-toggle input:checked + .toggle-slider {
    background: #007cba;
}

.payment-toggle input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.toggle-content h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.toggle-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.payment-requirements {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e0f2fe;
    margin-bottom: 20px;
}

.payment-requirements h3 {
    color: #0f6bd1;
    margin-bottom: 15px;
}

.requirement-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.requirement-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0f2fe;
}

.requirement-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 50%;
}

.requirement-content h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 1rem;
}

.requirement-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.upi-settings {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.upi-settings h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

.upi-settings .form-group {
    margin-bottom: 15px;
}

.upi-settings .form-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.8rem;
}

.upi-settings input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* Payment Status Indicators */
.payment-status-available {
    color: #10b981;
    font-weight: 600;
}

.payment-status-unavailable {
    color: #ef4444;
    font-weight: 600;
}

.payment-status-warning {
    color: #f59e0b;
    font-weight: 600;
}

/* Patient Dashboard Full-Screen Optimization */
body.dd-patient-dashboard-page-body .entry-content,
body.dd-patient-dashboard-page-body .wp-block-post-content,
body.dd-patient-dashboard-page-body .has-global-padding,
body.dd-patient-dashboard-page-body .is-layout-constrained,
body.dd-patient-dashboard-page-body .wp-block-group,
body.dd-patient-dashboard-page-body main,
body.dd-patient-dashboard-page-body .site-main,
body.dd-patient-dashboard-page-body .content-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.dd-patient-dashboard-page-body .dd-patient-dashboard {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.dd-patient-dashboard-page-body .dashboard-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
}

/* Doctor Dashboard Full-Screen Optimization */
body.dd-doctor-dashboard-page-body .entry-content,
body.dd-doctor-dashboard-page-body .wp-block-post-content,
body.dd-doctor-dashboard-page-body .has-global-padding,
body.dd-doctor-dashboard-page-body .is-layout-constrained,
body.dd-doctor-dashboard-page-body .wp-block-group,
body.dd-doctor-dashboard-page-body main,
body.dd-doctor-dashboard-page-body .site-main,
body.dd-doctor-dashboard-page-body .content-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.dd-doctor-dashboard-page-body .dd-doctor-dashboard {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.dd-doctor-dashboard-page-body .dashboard-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
}

/* Patient Dashboard Bilingual Styles */
.dd-patient-dashboard h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 10px;
}

.dd-patient-dashboard .profile-info p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.4;
    margin-bottom: 8px;
}

.dd-patient-dashboard .dashboard-actions .btn-primary,
.dd-patient-dashboard .dashboard-actions .btn-secondary {
    font-size: clamp(0.8rem, 2vw, 1rem);
    padding: 12px 20px;
    white-space: nowrap;
    text-align: center;
}

.dd-patient-dashboard .stat-content p {
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 1.3;
    margin-top: 5px;
}

.dd-patient-dashboard .appointments-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 20px;
}

.dd-patient-dashboard .empty-state h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 10px;
}

.dd-patient-dashboard .empty-state p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.4;
}

.dd-patient-dashboard .appointment-details h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 8px;
}

.dd-patient-dashboard .appointment-details p {
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.3;
    margin-bottom: 5px;
}

.dd-patient-dashboard .status {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

/* Enhanced Patient Dashboard Styles */
.dd-patient-dashboard .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.dd-patient-dashboard .appointment-count {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dd-patient-dashboard .today-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #f59e0b;
}

.dd-patient-dashboard .upcoming-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #3b82f6;
}

.dd-patient-dashboard .today-card {
    background: white;
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.dd-patient-dashboard .upcoming-card {
    background: white;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.dd-patient-dashboard .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dd-patient-dashboard .btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dd-patient-dashboard .btn-small.btn-primary {
    background: #3b82f6;
    color: white;
}

.dd-patient-dashboard .btn-small.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.dd-patient-dashboard .btn-small.btn-secondary {
    background: #6b7280;
    color: white;
}

.dd-patient-dashboard .btn-small.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.dd-patient-dashboard .btn-small.btn-danger {
    background: #ef4444;
    color: white;
}

.dd-patient-dashboard .btn-small.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-small.btn-success {
    background: #10b981;
    color: white;
}

.btn-small.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Modal Styles for Appointment Details */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.appointment-details p {
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.appointment-details strong {
    color: #2d3748;
    font-weight: 600;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.dd-patient-dashboard .appointment-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dd-patient-dashboard .appointment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dd-patient-dashboard .appointment-card:hover::before {
    opacity: 1;
}

.dd-patient-dashboard .appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dd-patient-dashboard .empty-state button {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Status Indicators */
.dd-patient-dashboard .status.pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #f59e0b;
}

.dd-patient-dashboard .status.completed {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #10b981;
}

.dd-patient-dashboard .status.cancelled {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Enhanced Mobile Responsiveness for Patient Dashboard */
@media (max-width: 1024px) {
    .dd-patient-dashboard .dashboard-container {
        padding: 15px;
    }
    
    .dd-patient-dashboard .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .dd-patient-dashboard .patient-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .dd-patient-dashboard .profile-avatar {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .dd-patient-dashboard {
        padding: 10px;
    }
    
    .dd-patient-dashboard .dashboard-container {
        padding: 10px;
        margin: 0;
    }
    
    .dd-patient-dashboard .dashboard-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .dd-patient-dashboard .dashboard-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .dd-patient-dashboard .dashboard-actions .btn-primary,
    .dd-patient-dashboard .dashboard-actions .btn-secondary {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.9rem;
        border-radius: 10px;
        font-weight: 600;
    }
    
    .dd-patient-dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .dd-patient-dashboard .stat-card {
        padding: 20px 15px;
        text-align: center;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .dd-patient-dashboard .stat-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .dd-patient-dashboard .stat-content h3 {
        font-size: 1.8rem;
        margin: 0 0 5px 0;
    }
    
    .dd-patient-dashboard .stat-trend {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
        font-size: 0.8rem;
    }
    
    .dd-patient-dashboard .trend-indicator {
        font-size: 1rem;
    }
    
    .dd-patient-dashboard .trend-indicator.positive {
        color: #10b981;
    }
    
    .dd-patient-dashboard .trend-indicator.warning {
        color: #f59e0b;
    }
    
    .dd-patient-dashboard .trend-indicator.neutral {
        color: #6b7280;
    }
    
    .dd-patient-dashboard .trend-text {
        color: #6b7280;
        font-weight: 500;
    }
    
    .dd-patient-dashboard .stat-card {
        position: relative;
        overflow: hidden;
    }
    
    .dd-patient-dashboard .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .dd-patient-dashboard .stat-card:hover::before {
        opacity: 1;
    }
    
    .dd-patient-dashboard .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .dd-patient-dashboard .appointment-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .dd-patient-dashboard .appointment-time {
        margin-bottom: 15px;
        padding: 15px;
        background: rgba(59, 130, 246, 0.1);
        border-radius: 10px;
    }
    
    .dd-patient-dashboard .appointment-actions {
        margin-top: 15px;
        width: 100%;
    }
    
    .dd-patient-dashboard .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .dd-patient-dashboard .action-buttons {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .dd-patient-dashboard .btn-small {
        flex: 1;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .dd-patient-dashboard .today-section,
    .dd-patient-dashboard .upcoming-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .dd-patient-dashboard .appointments-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .dd-patient-dashboard {
        padding: 5px;
    }
    
    .dd-patient-dashboard .dashboard-container {
        padding: 5px;
    }
    
    .dd-patient-dashboard .dashboard-header {
        padding: 15px 10px;
    }
    
    .dd-patient-dashboard .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dd-patient-dashboard .stat-card {
        padding: 15px;
    }
    
    .dd-patient-dashboard .profile-info h1 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .dd-patient-dashboard .profile-info p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .dd-patient-dashboard .today-section,
    .dd-patient-dashboard .upcoming-section {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .dd-patient-dashboard .appointment-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .dd-patient-dashboard .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .dd-patient-dashboard .btn-small {
        width: 100%;
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .dd-patient-dashboard .section-header h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .dd-patient-dashboard .appointment-count {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Enhanced Modal Responsiveness */
@media (max-width: 768px) {
    .dd-modal {
        padding: 10px;
    }
    
    .dd-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .dd-modal-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .dd-modal-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .dd-modal-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    .dd-modal-body {
        padding: 20px 15px;
    }
    
    .dd-form-group {
        margin-bottom: 20px;
    }
    
    .dd-form-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .dd-form-group input,
    .dd-form-group select,
    .dd-form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .dd-modal-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }
    
    .dd-btn-primary,
    .dd-btn-secondary {
        width: 100%;
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* File Search and Filter Styles */
.file-search-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.file-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.file-search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.file-search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2563eb;
}

.file-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.file-filters select {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.file-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.file-icon {
    font-size: 2rem;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.file-meta span {
    white-space: nowrap;
}

.file-description {
    margin-top: 8px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.4;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.file-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-action-btn.view {
    background: #3b82f6;
    color: white;
}

.file-action-btn.view:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.file-action-btn.download {
    background: #10b981;
    color: white;
}

.file-action-btn.download:hover {
    background: #059669;
    transform: scale(1.05);
}

.file-action-btn.delete {
    background: #ef4444;
    color: white;
}

.file-action-btn.delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.loading-files, .no-files {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

.no-files {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    margin: 20px 0;
}

/* File Sharing Modal Enhancements */
@media (max-width: 768px) {
    .file-sharing-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-sharing-tabs .tab-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .file-search-section {
        padding: 10px;
    }
    
    .file-search-bar {
        flex-direction: column;
    }
    
    .file-search-bar input {
        width: 100%;
    }
    
    .file-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .file-filters select {
        width: 100%;
        min-width: auto;
    }
    
    .file-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .file-details {
        margin: 10px 0;
        text-align: center;
    }
    
    .file-meta {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .file-actions {
        justify-content: center;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .file-action-btn {
        margin: 0 5px;
        padding: 8px 12px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .dd-patient-dashboard button,
    .dd-patient-dashboard .btn-primary,
    .dd-patient-dashboard .btn-secondary,
    .dd-patient-dashboard .btn-small {
        min-height: 44px; /* iOS recommended touch target */
        touch-action: manipulation;
    }
    
    .dd-patient-dashboard input,
    .dd-patient-dashboard select,
    .dd-patient-dashboard textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Health Records Modal Styles */
.health-records-modal {
    max-width: 1000px;
    width: 95%;
}

.health-records-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.health-records-tabs .tab-btn {
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.health-records-tabs .tab-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.health-records-tabs .tab-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.health-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.health-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Health Overview Styles */
.health-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.summary-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.summary-content h3 {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 700;
}

.summary-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Recent Activity Styles */
.recent-activity {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recent-activity h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
    margin-top: 2px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    font-size: 1rem;
}

.activity-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.activity-time {
    color: #9ca3af;
    font-size: 0.8rem;
    font-style: italic;
}

.loading-activity, .no-activity, .no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Responsive Health Records */
@media (max-width: 768px) {
    .health-records-modal {
        width: 98%;
        margin: 5px auto;
    }
    
    .health-records-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .health-records-tabs .tab-btn {
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    
    .health-summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .summary-content h3 {
        font-size: 1.5rem;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .activity-icon {
        margin-top: 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .section-header .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .health-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .recent-activity {
        padding: 15px;
    }
    
    .activity-item {
        padding: 10px 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dd-patient-dashboard {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .dd-patient-dashboard .dashboard-container {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .dd-patient-dashboard .stat-card {
        background: #3a3a3a;
        color: #ffffff;
    }
    
    .dd-patient-dashboard .appointment-card {
        background: #3a3a3a;
        color: #ffffff;
    }
    
    .summary-card {
        background: #3a3a3a;
        color: #ffffff;
        border-color: #4a5568;
    }
    
    .recent-activity {
        background: #3a3a3a;
        color: #ffffff;
        border-color: #4a5568;
    }
    
    .activity-title {
        color: #ffffff;
    }
    
    .activity-description {
        color: #d1d5db;
    }
}

/* Health Analytics Modal Styles */
.health-analytics-modal {
    max-width: 1200px;
    width: 95%;
}

.analytics-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.analytics-tabs .tab-btn {
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.analytics-tabs .tab-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.analytics-tabs .tab-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.analytics-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.analytics-tab-content.active {
    display: block;
}

/* Analytics Overview Styles */
.analytics-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.analytics-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.card-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

.score-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.score-badge.excellent {
    background: #10b981;
    color: white;
}

.score-badge.good {
    background: #3b82f6;
    color: white;
}

.score-badge.fair {
    background: #f59e0b;
    color: white;
}

.score-badge.poor {
    background: #ef4444;
    color: white;
}

/* Score Breakdown */
.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-label {
    min-width: 120px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

/* Activity Chart */
.activity-chart {
    height: 200px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 20px 0;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100%;
    width: 100%;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 20px;
}

.chart-bar:hover {
    transform: scaleY(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Trends Section */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.trend-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trend-card.positive::before {
    background: linear-gradient(90deg, #10b981, #34d399);
    opacity: 1;
}

.trend-card.neutral::before {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
    opacity: 1;
}

.trend-card.negative::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
    opacity: 1;
}

.trend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.trend-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.trend-content {
    flex: 1;
}

.trend-content h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.trend-content p {
    margin: 0 0 10px 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.trend-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.trend-card.positive .trend-value {
    color: #10b981;
}

.trend-card.neutral .trend-value {
    color: #6b7280;
}

.trend-card.negative .trend-value {
    color: #ef4444;
}

/* Insights Section */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.insight-item.positive::before {
    background: #10b981;
}

.insight-item.warning::before {
    background: #f59e0b;
}

.insight-item.info::before {
    background: #3b82f6;
}

.insight-item.negative::before {
    background: #ef4444;
}

.insight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.insight-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
    margin-top: 2px;
}

.insight-content {
    flex: 1;
}

.insight-content h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.insight-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .health-analytics-modal {
        width: 98%;
        margin: 5px auto;
    }
    
    .analytics-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .analytics-tabs .tab-btn {
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    
    .analytics-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .analytics-card {
        padding: 20px;
    }
    
    .score-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .score-label {
        min-width: auto;
        text-align: center;
    }
    
    .score-value {
        text-align: center;
    }
    
    .trends-grid {
        grid-template-columns: 1fr;
    }
    
    .trend-card {
        flex-direction: column;
        text-align: center;
    }
    
    .insight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .insight-item:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .analytics-card {
        padding: 15px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .chart-bars {
        gap: 4px;
    }
    
    .bar-label {
        font-size: 0.7rem;
    }
}

/* Doctor Search Page Styles */
.dd-doctor-search {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.header-text p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.patient-avatar {
    flex-shrink: 0;
}

.patient-avatar .avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.patient-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.patient-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.patient-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.patient-actions .btn-secondary,
.patient-actions .btn-outline {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.patient-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.patient-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.patient-actions .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.patient-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.guest-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.guest-actions .btn-primary,
.guest-actions .btn-outline {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.guest-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.guest-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.guest-actions .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.guest-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.search-filters {
    background: #f8fafc;
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-form {
    max-width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.filter-actions .btn-primary,
.filter-actions .btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.results-info {
    padding: 20px 30px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.results-info h3 {
    color: #374151;
    font-size: 1.2rem;
    margin: 0;
}

.doctors-list {
    padding: 30px;
}

.doctor-card {
    display: flex;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover::before {
    opacity: 1;
}

.doctor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.doctor-avatar {
    flex-shrink: 0;
    margin-right: 20px;
}

.doctor-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.doctor-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 3px solid #e2e8f0;
}

.doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-header h3 {
    font-size: 1.4rem;
    color: #1f2937;
    margin: 0;
    font-weight: 700;
}

.doctor-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.specialty {
    background: #dbeafe;
    color: #1e40af;
}

.badge.experience {
    background: #fef3c7;
    color: #d97706;
}

.doctor-details p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.doctor-details .clinic-name {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.doctor-details .fees {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.doctor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.doctor-actions .btn-primary,
.doctor-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.doctor-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 150px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot.available {
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
}

.rating {
    text-align: right;
}

.stars {
    font-size: 1.1rem;
    margin-bottom: 2px;
    display: block;
}

.rating-text {
    font-size: 0.8rem;
    color: #6b7280;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Booking Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-info-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.doctor-info-card h3 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.doctor-info-card p {
    margin: 5px 0;
    color: #6b7280;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.time-slot:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.time-slot.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

/* Disabled time slot styles */
.time-slot.disabled {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.time-slot.disabled:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #9ca3af;
}

/* Tooltip for disabled slots */
.time-slot.disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #1f2937;
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.time-slot.disabled::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.time-slot.disabled:hover::after,
.time-slot.disabled:hover::before {
    opacity: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Responsive Design for Doctor Search */
@media (max-width: 768px) {
    .dd-doctor-search {
        padding: 10px;
    }
    
    .search-header {
        padding: 30px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
    
    .patient-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .patient-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .guest-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .guest-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Mobile Modal Styles */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .modal-header {
        padding: 15px 20px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .booking-form {
        padding-bottom: 20px;
    }
    
    .form-actions {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        padding: 15px 20px !important;
        border-top: 1px solid #e2e8f0 !important;
        margin: 0 !important;
        margin-top: auto !important;
        z-index: 100 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        flex-shrink: 0 !important;
    }
    
    .booking-modal .form-actions {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        padding: 15px 20px !important;
        border-top: 1px solid #e2e8f0 !important;
        margin: 0 !important;
        margin-top: auto !important;
        z-index: 100 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
    }
    
    .form-actions button {
        width: 100%;
        margin: 5px 0;
        padding: 15px;
        font-size: 16px;
    }
    
    /* Time Slots Mobile */
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .time-slot {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    /* Form Fields Mobile */
    .booking-form textarea {
        min-height: 80px;
        font-size: 16px;
    }
    
    .booking-form input[type="date"] {
        font-size: 16px;
        padding: 12px;
    }
    
    /* Booking Modal Specific */
    .booking-modal .modal-content {
        width: 100% !important;
        margin: 0 !important;
        max-height: 100vh !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }
    
    .booking-modal .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 100;
        padding: 15px 20px;
        flex-shrink: 0;
    }
    
    .booking-modal .modal-body {
        padding: 20px;
        padding-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
    }
    
    .booking-modal .booking-form {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .booking-modal .form-actions {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        z-index: 100 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px 20px !important;
        border-top: 1px solid #e2e8f0 !important;
        margin: 0 !important;
        margin-top: auto !important;
        flex-shrink: 0 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        width: 100% !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    .booking-modal .btn-primary,
    .booking-modal .btn-secondary {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .search-filters {
        padding: 20px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn-primary,
    .filter-actions .btn-secondary {
        width: 100%;
    }
    
    .doctors-list {
        padding: 20px;
    }
    
    .doctor-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .doctor-avatar {
        margin: 0 auto 15px auto;
    }
    
    .doctor-header {
        justify-content: center;
    }
    
    .doctor-status {
        align-items: center;
        margin-top: 15px;
    }
    
    .doctor-actions {
        justify-content: center;
        margin-top: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .doctor-card {
        padding: 15px;
    }
    
    .doctor-avatar img,
    .doctor-avatar .avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .doctor-header h3 {
        font-size: 1.2rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .time-slot {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* Notification System */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.profile-details {
    flex: 1;
}

.notification-bell {
    position: relative;
}

.notification-btn {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #005a87;
    transform: scale(1.05);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-height: 500px;
    z-index: 10000;
    overflow: hidden;
}

.notification-header {
    background: #007cba;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.notification-content {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #007cba;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.notification-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.notification-time {
    color: #999;
    font-size: 12px;
}

.notification-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
}

.notification-type.info {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-type.success {
    background: #e8f5e8;
    color: #2e7d32;
}

.notification-type.warning {
    background: #fff3e0;
    color: #f57c00;
}

.notification-type.error {
    background: #ffebee;
    color: #d32f2f;
}

.notification-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.loading-notifications {
    padding: 20px;
    text-align: center;
    color: #666;
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

/* File Sharing System */
.file-sharing-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #007cba;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #007cba;
    border-bottom-color: #007cba;
    background: #f8f9fa;
}

.file-tab-content {
    display: none;
}

.file-tab-content.active {
    display: block;
}

.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.file-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 30px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.file-description {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.file-action-btn.view {
    background: #007cba;
    color: white;
}

.file-action-btn.view:hover {
    background: #005a87;
}

.file-action-btn.download {
    background: #28a745;
    color: white;
}

.file-action-btn.download:hover {
    background: #1e7e34;
}

.file-action-btn.delete {
    background: #dc3545;
    color: white;
}

.file-action-btn.delete:hover {
    background: #c82333;
}

.loading-files {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.no-files {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-files h3 {
    margin-bottom: 10px;
    color: #666;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-upload-area.dragover {
    border-color: #007cba;
    background: #e3f2fd;
}

.file-upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.file-upload-text {
    color: #666;
    margin-bottom: 15px;
}

.file-upload-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.file-upload-btn:hover {
    background: #005a87;
}

.file-progress {
    margin-top: 15px;
    display: none;
}

.file-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.file-progress-fill {
    height: 100%;
    background: #007cba;
    width: 0%;
    transition: width 0.3s ease;
}

.file-progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Tablet Responsive Design - Comprehensive */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Dashboard Layout */
    .dashboard-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .dashboard-header {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .profile-details {
        flex: 1;
        min-width: 0;
    }
    
    .profile-details h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .profile-details p {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    /* Dashboard Actions */
    .dashboard-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .dashboard-actions button {
        padding: 12px 16px;
        font-size: 13px;
        min-height: 45px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Statistics Cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 28px;
    }
    
    .stat-card p {
        font-size: 13px;
    }
    
    /* Appointments */
    .appointments-section {
        margin-bottom: 25px;
    }
    
    .appointment-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .appointment-details h4 {
        font-size: 16px;
    }
    
    .appointment-details p {
        font-size: 13px;
    }
    
    /* Modals */
    .modal-content {
        width: 85%;
        max-width: 600px;
        margin: 5% auto;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Notification Panel */
    .notification-panel {
        width: 400px;
        right: 20px;
        top: 80px;
    }
    
    .notification-item {
        padding: 12px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    /* File Sharing */
    .file-sharing-tabs {
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .file-item {
        padding: 12px;
    }
    
    .file-name {
        font-size: 14px;
    }
    
    .file-meta {
        font-size: 11px;
    }
    
    /* Communication Settings */
    .settings-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .settings-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .setting-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .setting-info strong {
        font-size: 14px;
    }
    
    .setting-info p {
        font-size: 12px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form-group small {
        font-size: 11px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Tables */
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    /* Search and Filter */
    .search-filter-container {
        padding: 15px;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .filter-group label {
        font-size: 13px;
    }
    
    /* Earnings Report */
    .earnings-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    /* Availability Grid */
    .availability-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .day-schedule {
        padding: 15px;
    }
    
    .day-schedule h4 {
        font-size: 14px;
    }
    
    .time-slots {
        gap: 8px;
    }
    
    .time-slot {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Payment Settings */
    .payment-settings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upi-info {
        padding: 15px;
    }
    
    .upi-info h3 {
        font-size: 16px;
    }
    
    .upi-info p {
        font-size: 13px;
    }
    
    /* Profile Section */
    .profile-section {
        padding: 20px;
    }
    
    .profile-section h2 {
        font-size: 18px;
    }
    
    .profile-form {
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Large Tablet Responsive Design */
@media (min-width: 1025px) and (max-width: 1200px) {
    .dashboard-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .modal-content {
        width: 70%;
        max-width: 700px;
    }
    
    .notification-panel {
        width: 450px;
    }
}

/* Small Tablet Responsive Design */
@media (min-width: 600px) and (max-width: 768px) {
    .dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 90%;
        max-width: 500px;
    }
    
    .notification-panel {
        width: 300px;
    }
    
    .profile-details h1 {
        font-size: 20px;
    }
    
    .profile-details p {
        font-size: 13px;
    }
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .dashboard-actions {
        flex-direction: column;
    }
    
    .status-toggle-section {
        flex-direction: column;
        text-align: center;
    }
    
    .status-actions {
        justify-content: center;
    }
    
    .availability-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .earnings-card:last-child {
        grid-column: 1;
        max-width: none;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .requirement-info {
        grid-template-columns: 1fr;
    }
    
    .payment-method {
        padding: 15px;
    }
    
    .toggle-content h4 {
        font-size: 1rem;
    }
    
    .toggle-content p {
        font-size: 0.8rem;
    }
    
    /* Earnings Modal Mobile Styles */
    #earningsModal .modal-header {
        padding: 15px 20px;
    }
    
    #earningsModal .modal-header h2 {
        font-size: 20px;
    }
    
    .earnings-card {
        padding: 15px;
    }
    
    .earnings-card .amount {
        font-size: 20px;
    }
    
    .earnings-trend {
        padding: 20px;
    }
    
    .chart-placeholder {
        padding: 30px 15px;
    }
    
    /* Appointment Modal Mobile Styles */
    .appointment-modal .modal-content {
        width: 95%;
        margin: 5% auto; /* Fixed: Mobile mein bhi proper positioning */
        max-height: 90vh;
    }
    
    .appointment-modal .form-actions {
        flex-direction: column;
        gap: 10px;
        position: sticky; /* Fixed: Mobile mein bhi buttons last mein */
        bottom: 0;
        background: white;
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .appointment-modal .btn-secondary,
    .appointment-modal .btn-primary {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .appointment-modal .form-group input,
    .appointment-modal .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Availability Modal Mobile Styles */
    .availability-modal .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .days-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .day-checkbox {
        padding: 15px;
    }
    
    .day-text {
        font-size: 14px;
    }
    
    .time-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-input {
        width: 100%;
        max-width: 150px;
    }
    
    .time-separator {
        margin-top: 0;
    }
    
    .day-checkbox:nth-child(7) {
        grid-column: 1;
        max-width: none;
    }
    
    /* Payment Modal Mobile Styles */
    .payment-modal .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .payment-options-card {
        padding: 20px;
    }
    
    .payment-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 0;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .requirement-card {
        padding: 20px;
    }
    
    .requirement-icon {
        width: 40px;
        height: 40px;
    }
    
    .upi-settings {
        padding: 20px;
    }
}

/* Payment Modal Header with Gradient */
#paymentModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

#paymentModal .modal-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

#paymentModal .close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

#paymentModal .close:hover {
  color: #ff6b6b;
}

/* Payment Modal Specific Styles */
.payment-modal .modal-content {
    max-width: 800px;
    width: 95%;
}

.payment-options-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.payment-option:last-child {
    border-bottom: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-label .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-label .toggle-slider:before {
    transform: translateX(26px);
}

/* Disabled toggle switch */
.toggle-switch input:disabled + .toggle-label .toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.toggle-switch input:disabled + .toggle-label .toggle-slider:before {
    background-color: #f5f5f5;
}

.requirement-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.option-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.option-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.requirements-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.requirements-section h2 {
    margin: 0 0 25px 0;
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.requirement-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-2px);
}

.requirement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.status-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.requirement-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.requirement-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.requirement-content strong {
    color: #667eea;
    font-weight: 700;
}

.upi-settings {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.upi-settings h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.upi-settings .form-group {
    margin-bottom: 20px;
}

.upi-settings .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.upi-settings .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.upi-settings .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Payment Modal Specific Styles */
#paymentModal .modal-content {
    max-width: 900px;
    width: 95%;
}

#paymentModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Family Member Form Styles */
.family-member-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.family-member-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.family-form-header {
    margin-bottom: 25px;
    text-align: center;
}

.family-member-form h4 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.family-form-subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.family-form-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.family-member-form .form-group {
    margin-bottom: 20px;
}

.family-member-form .form-group label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.family-member-form .form-group input,
.family-member-form .form-group select {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.family-member-form .form-group input:focus,
.family-member-form .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.family-member-form .form-group input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .family-member-form {
        padding: 20px;
        margin: 15px 0;
    }
    
    .family-member-form h4 {
        font-size: 16px;
    }
    
    .family-form-subtitle {
        font-size: 13px;
    }
}

/* New Family Member Form */
.new-family-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.new-family-form h5 {
    color: #495057;
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 600;
}

/* Selected Family Member Display */
.selected-family-display {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.selected-family-display h5 {
    color: #155724;
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: 600;
}

.family-member-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-info strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.member-info span {
    color: #6c757d;
    font-size: 0.9em;
}

/* Location selection modal styles */
#locationModal {
    z-index: 10000;
}

#locationModal .modal-content {
    max-width: 800px;
    width: 95%;
}

#mapContainer {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#mapOverlay {
    cursor: crosshair;
    transition: background-color 0.2s ease;
}

#mapOverlay:hover {
    background: rgba(0, 123, 255, 0.05);
}

/* Pulse animation for markers */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(255,0,0,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

.location-marker {
    animation: pulse 1s ease-in-out;
}

.coord-display {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Map container improvements */
#gorakhpurMap {
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* Zoom controls styling */
#zoomControls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

#zoomControls button {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#zoomControls button:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: scale(1.05);
}

#zoomControls button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Map overlay hover effects */
#mapOverlay:hover {
    background: rgba(0, 123, 255, 0.05);
}

#mapOverlay:active {
    background: rgba(0, 123, 255, 0.1);
}

#paymentModal .payment-options {
    margin-bottom: 20px;
}

#paymentModal .requirement-info {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

#paymentModal .requirement-card {
    padding: 12px;
    flex-direction: column;
    text-align: center;
}

#paymentModal .requirement-icon {
    width: 35px;
    height: 35px;
    font-size: 20px;
}

/* Mobile Specific */
@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 10px;
        max-height: 85vh;
    }
    
    .payment-toggle {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .toggle-slider {
        width: 40px;
        height: 20px;
    }
    
    .toggle-slider::before {
        width: 16px;
        height: 16px;
    }
    
    .requirement-card {
        padding: 10px;
    }
    
    .requirement-content h4 {
        font-size: 0.9rem;
    }
    
    .requirement-content p {
        font-size: 0.8rem;
    }
}

/* Search & Filter Modal Styles */
.search-modal .modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.search-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
    background: #f8f9fa;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #2196F3;
}

.search-tab-content {
    display: none;
}

.search-tab-content.active {
    display: block;
}

.search-section {
    margin-bottom: 30px;
}

.search-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.search-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.search-form .form-group input,
.search-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form .form-group input:focus,
.search-form .form-group select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.search-results {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 200px;
    padding: 20px;
}

.search-results.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.search-results.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

/* Patient Search Results */
.patient-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.patient-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.patient-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.patient-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.patient-actions {
    display: flex;
    gap: 10px;
}

.patient-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-view {
    background: #2196F3;
    color: white;
}

.btn-contact {
    background: #4CAF50;
    color: white;
}

/* Payment Button Styles */
.btn-payment {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-payment:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.btn-payment:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* UPI Setup Guide Styles */
.upi-setup-guide {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.upi-setup-guide h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.step-number {
    background: #2196F3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.step-content a {
    color: #2196F3;
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

.setup-help {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.setup-help p {
    margin: 5px 0;
    color: #2c3e50;
}

.setup-help a {
    color: #2196F3;
    text-decoration: none;
}

.setup-help a:hover {
    text-decoration: underline;
}

/* Doctor Account Details Styles */
.doctor-account-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.doctor-account-details h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.setup-note {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.setup-note p {
    margin: 0;
    color: #1976d2;
    font-size: 14px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* UPI Payment Modal Styles */
.upi-payment-modal {
    max-width: 600px;
    width: 90%;
}

.payment-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

.payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #2196F3;
}

.amount-label {
    font-size: 16px;
    color: #666;
}

.amount-value {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
}

.payment-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.upi-details {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.upi-details h3 {
    margin-top: 0;
    color: #2c3e50;
}

.upi-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upi-id label,
.qr-code label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #666;
}

.upi-id-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.upi-id-display span {
    font-family: monospace;
    font-size: 16px;
    color: #2196F3;
    flex: 1;
}

.copy-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #1976D2;
}

.qr-display {
    text-align: center;
}

.qr-display img {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-display p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.payment-steps {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-steps h3 {
    margin-top: 0;
    color: #1976d2;
}

.payment-steps ol {
    margin: 0;
    padding-left: 20px;
}

.payment-steps li {
    margin-bottom: 8px;
    color: #2c3e50;
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .upi-info {
        grid-template-columns: 1fr;
    }
    
    .payment-breakdown {
        grid-template-columns: 1fr;
    }
    
    .upi-id-display {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Payment Verification Modal Styles */
.payment-verification-modal {
    max-width: 500px;
    width: 90%;
}

.verification-info {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.verification-info h3 {
    margin-top: 0;
    color: #1976d2;
}

.verification-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.verification-help {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.verification-help h4 {
    margin-top: 0;
    color: #2c3e50;
}

.verification-help ul {
    margin: 10px 0;
    padding-left: 20px;
}

.verification-help li {
    margin-bottom: 8px;
    color: #666;
}

.verification-help strong {
    color: #2196F3;
}

/* UPI App Buttons */
.upi-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.upi-app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.upi-app-btn:hover {
    border-color: #2196F3;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

.upi-app-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.upi-app-btn span {
    font-weight: 600;
    color: #2c3e50;
}

.manual-payment {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.manual-payment p {
    margin: 5px 0;
    color: #666;
}

/* Payment Status */
.payment-status {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.payment-status.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.payment-status.pending {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.payment-status.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

.payment-status.refund_initiated {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* Refund Details */
.refund-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.refund-info h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

.refund-info p {
    margin: 15px 0;
    color: #666;
}

.refund-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.refund-info li {
    margin-bottom: 8px;
    color: #2c3e50;
}

.refund-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .upi-apps {
        grid-template-columns: 1fr;
    }
}

/* Appointment Search Results */
.appointment-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.appointment-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.appointment-detail {
    font-size: 14px;
    color: #666;
}

.appointment-detail strong {
    color: #333;
}

.appointment-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Report Results */
.report-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.report-period {
    color: #666;
    font-size: 14px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Communication Settings Modal Styles */
.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007cba;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.setting-info {
    flex: 1;
}

.setting-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
  }
  
  .doctor-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .dashboard-actions {
    justify-content: center;
  }
  
  .appointment-card {
    flex-direction: column;
    text-align: center;
  }
  
  .appointment-actions {
    align-items: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* Style for password fields - make them bigger */
.dd-step input[type="password"],
.dd-patient-reg-page input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e6e9ef;
  border-radius: 12px;
  font-size: 18px;
  color: #0f1724;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
  font-weight: 500;
  letter-spacing: 1px;
}

.dd-step input[type="password"]:focus,
.dd-patient-reg-page input[type="password"]:focus {
  border-color: #0f6bd1;
  box-shadow: 0 0 0 4px rgba(15, 107, 209, 0.1);
  transform: translateY(-2px);
  background: #f8fafc;
}

/* Password field labels */
.dd-step label:has(input[type="password"]),
.dd-patient-reg-page label:has(input[type="password"]) {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
}

/* Password field placeholders */
.dd-step input[type="password"]::placeholder,
.dd-patient-reg-page input[type="password"]::placeholder {
  font-size: 16px;
  color: #94a3b8;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Real-time password validation styles */
#passwordError, #confirmPasswordError {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

#passwordHelpText {
  color: #6b7280;
  font-size: 12px;
  margin-top: 5px;
  transition: all 0.3s ease;
}

/* Password field validation states */
#passwordField[style*="border-color: #dc2626"] {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
  animation: shake 0.5s ease-in-out;
}

#passwordField[style*="border-color: #10b981"] {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

#confirmPasswordField[style*="border-color: #dc2626"] {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
  animation: shake 0.5s ease-in-out;
}

#confirmPasswordField[style*="border-color: #10b981"] {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for Hindi text */
@media (max-width: 768px) {
  .dd-title {
    font-size: 24px;
    line-height: 1.2;
  }
  
  .dd-step label,
  .dd-patient-reg-page label {
    font-size: 13px;
  }
  
  .dd-step input::placeholder,
  .dd-patient-reg-page input::placeholder {
    font-size: 12px;
  }
  
  /* Mobile adjustments for password fields */
  .dd-step input[type="password"],
  .dd-patient-reg-page input[type="password"] {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .dd-step input[type="password"]::placeholder,
  .dd-patient-reg-page input[type="password"]::placeholder {
    font-size: 14px;
  }
}

/* Lab Booking Page Styles */
.dd-lab-booking-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.lab-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lab-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.lab-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid #0f6bd1;
}

.lab-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-details h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1e293b;
}

.lab-type {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 16px;
}

.lab-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag:first-child {
    background: #dbeafe;
    color: #1e40af;
}

.tag.home-collection {
    background: #dcfce7;
    color: #166534;
}

.lab-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #374151;
}

.info-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.booking-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.booking-form-container h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    padding: 12px 24px;
    background: #0f6bd1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #0d5bb8;
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.test-price-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.price-info {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f6bd1;
}

.test-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .price-info {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .lab-header {
        flex-direction: column;
        text-align: center;
    }
    
    .lab-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Family Member Form Styles for Lab Booking */
.family-member-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.family-form-header h4 {
    color: #495057;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.family-form-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.family-form-content .form-group {
    margin-bottom: 15px;
}

.family-form-content .form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.family-form-content input,
.family-form-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.family-form-content input:focus,
.family-form-content select:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

.new-family-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.new-family-form h5 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.selected-family-display {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.selected-family-display h5 {
    color: #0c5460;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.selected-member-card {
    background: #fff;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px;
}

.selected-member-card strong {
    color: #0c5460;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.selected-member-card small {
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .family-form-content .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* final small helper to ensure forms don't overflow */
/* ---------- Dropdown core ---------- */
.hero-actions { position: absolute; top: 18px; right: 24px; z-index: 1200; }
.dd-dropdown { position: relative; display: inline-block; font-family: inherit; }
.dd-btn-login {
  background:#ff9800;color:#fff;border:none;padding:10px 16px;border-radius:8px;cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,0.12);
}

/* main menu */
.dd-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  list-style: none;
  margin: 0;
}

/* show when dropdown has 'open' class (JS toggles this) */
.dd-dropdown.open .dd-dropdown-menu,
.dd-dropdown-menu.show { 
  display: block !important; 
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* menu items */
.dd-dropdown-menu .dd-menu-item,
.dd-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: transparent;
  border: none;
  color: #222;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
.dd-dropdown-menu .dd-menu-item:hover,
.dd-dropdown-menu a:hover { background: #f7f7f7; }

/* divider */
.dd-dropdown-menu .dd-divider { height:1px;background:#eee;margin:6px 0; }

/* submenu wrapper (Register) */
.dd-has-submenu { position: relative; }

/* hidden by default */
.dd-submenu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 1200;
}

/* show the submenu when we add .open-sub to the parent (JS will toggle) */
.dd-has-submenu.open-sub > .dd-submenu { display: block; }

/* submenu items */
.dd-submenu li { list-style: none; }
.dd-submenu a { display:block;padding:10px 14px;color:#222;text-decoration:none; }
.dd-submenu a:hover { background:#f3f3f3; }

/* small responsiveness */
@media (max-width: 768px) {
  .hero-actions { right: 12px; top: 12px; }
  .dd-dropdown-menu, .dd-submenu { min-width: 160px; }
}

/* Mobile dropdown positioning - shift left to prevent screen cut-off */
@media (max-width: 480px) {
  .dd-dropdown-menu,
  #loginMenu,
  #regMenu {
    right: 0 !important;
    left: auto !important;
    transform: translateX(-10px) !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* Search Button Fixes */

/* ============================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================ */

/* Base Mobile Styles */
@media (max-width: 768px) {
    /* Global Mobile Adjustments */
    body {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Container adjustments */
    .container {
        padding: 15px;
        margin: 10px;
        border-radius: 8px;
    }
    
    /* Form adjustments */
    .dd-step-form {
        padding: 15px;
        margin: 10px;
    }
    
    .dd-step .field-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Button adjustments */
    .actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .actions button,
    .dd-step-form .btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 16px;
    }
    
    /* Modal adjustments */
    .dd-modal {
        padding: 10px;
    }
    
    .dd-modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Dashboard adjustments */
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Card adjustments */
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Table adjustments */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 12px;
    }
    
    /* Navigation adjustments */
    .dd-dropdown-menu,
    .dd-submenu {
        min-width: 160px;
        font-size: 14px;
    }
    
    /* Hero section adjustments */
    .hero {
        min-height: 40vh;
        padding: 20px 10px;
    }
    
    .hero-container {
        bottom: 20px;
        padding: 15px;
        width: 95%;
    }
    
    /* Step indicator adjustments */
    .step-indicator {
        height: 40px;
        font-size: 12px;
    }
    
    /* Search page adjustments */
    .search-header {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    /* Doctor card adjustments */
    .doctor-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .doctor-avatar img,
    .doctor-avatar .avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .doctor-info h3 {
        font-size: 1.1rem;
    }
    
    .doctor-info p {
        font-size: 0.9rem;
    }
    
    /* Lab card adjustments */
    .lab-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .lab-avatar img,
    .lab-avatar .avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    /* Patient dashboard adjustments */
    .dd-patient-dashboard {
        padding: 10px;
    }
    
    .dd-patient-dashboard .dashboard-container {
        padding: 10px;
    }
    
    .dd-patient-dashboard .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dd-patient-dashboard .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Health records adjustments */
    .health-records-modal {
        width: 98%;
        margin: 5px auto;
    }
    
    .health-summary-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recent-activity {
        padding: 10px;
    }
    
    /* Analytics adjustments */
    .health-analytics-modal {
        width: 98%;
        margin: 5px auto;
    }
    
    .analytics-card {
        padding: 15px;
    }
    
    .card-header {
        font-size: 1rem;
    }
    
    /* File sharing adjustments */
    .file-sharing-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Touch-friendly improvements */
    button,
    .btn-primary,
    .btn-secondary,
    .btn-small {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }
    
    /* Form row adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* UPI info adjustments */
    .upi-info {
        grid-template-columns: 1fr;
    }
    
    .payment-breakdown {
        padding: 15px;
    }
    
    /* UPI apps adjustments */
    .upi-apps {
        grid-template-columns: 1fr;
    }
    
    /* Price info adjustments */
    .price-info {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Lab header adjustments */
    .lab-header {
        flex-direction: column;
        text-align: center;
    }
    
    /* Family form adjustments */
    .family-form-content .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Further size reductions */
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 10px;
        margin: 5px;
    }
    
    .dd-step-form {
        padding: 10px;
        margin: 5px;
    }
    
    .hero {
        min-height: 35vh;
        padding: 15px 5px;
    }
    
    .hero-container {
        bottom: 15px;
        padding: 10px;
        width: 98%;
    }
    
    .step-indicator {
        height: 35px;
        font-size: 11px;
    }
    
    .search-header {
        padding: 15px;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .header-text p {
        font-size: 0.9rem;
    }
    
    .doctor-card,
    .lab-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .doctor-avatar img,
    .doctor-avatar .avatar-placeholder,
    .lab-avatar img,
    .lab-avatar .avatar-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .doctor-info h3,
    .lab-info h3 {
        font-size: 1rem;
    }
    
    .doctor-info p,
    .lab-info p {
        font-size: 0.8rem;
    }
    
    .dd-patient-dashboard {
        padding: 5px;
    }
    
    .dd-patient-dashboard .dashboard-container {
        padding: 5px;
    }
    
    .health-records-modal,
    .health-analytics-modal {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .analytics-card {
        padding: 10px;
    }
    
    .card-header {
        font-size: 0.9rem;
    }
    
    .dd-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    /* Navigation adjustments for very small screens */
    .dd-dropdown-menu,
    .dd-submenu {
        min-width: 140px;
        font-size: 13px;
    }
    
    /* Button text adjustments */
    .actions button,
    .dd-step-form .btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 30vh;
    }
    
    .hero-container {
        bottom: 10px;
        padding: 10px;
    }
    
    .dd-modal-content {
        max-height: 80vh;
    }
    
    .health-records-modal,
    .health-analytics-modal {
        max-height: 80vh;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .dashboard-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .dd-step-form {
        padding: 20px;
        margin: 15px;
    }
    
    .dd-step .field-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-container {
        bottom: 32px;
        padding: 28px;
        width: 94%;
    }
    
    .step-indicator {
        height: 45px;
        font-size: 14px;
    }
}

/* Large Tablet Responsive Design */
@media (min-width: 1025px) and (max-width: 1200px) {
    .dashboard-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .dd-step .field-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Small Tablet Responsive Design */
@media (min-width: 600px) and (max-width: 768px) {
    .dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .dd-step .field-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* High DPI Mobile Devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .doctor-avatar img,
    .lab-avatar img,
    .patient-avatar img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================
   Responsive Styles for All Pages
   ============================ */

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Doctor Search Page */
    .dd-doctor-search .search-container {
        padding: 15px !important;
    }
    
    .search-header {
        padding: 30px 20px !important;
    }
    
    .search-header h1 {
        font-size: 2rem !important;
    }
    
    .search-filters .filter-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .filter-group {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
    
    .doctor-card {
        padding: 15px !important;
    }
    
    .doctor-avatar {
        width: 70px !important;
        height: 70px !important;
    }
    
    .doctor-info h3 {
        font-size: 18px !important;
    }
    
    /* About Page */
    .dd-about-page .about-container {
        padding: 20px 15px !important;
    }
    
    .about-hero {
        padding: 60px 20px !important;
    }
    
    .about-hero h1 {
        font-size: 2em !important;
    }
    
    .hero-stats {
        gap: 40px !important;
        flex-wrap: wrap;
    }
    
    .stat-item h3 {
        font-size: 1.8em !important;
    }
    
    .mission-section .section-content {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Login Pages (Patient, Doctor, Lab) */
    .dd-patient-login-page,
    .dd-doctor-login-page,
    .dd-lab-login-page {
        padding: 60px 20px 100px !important;
    }
    
    .patient-login-container,
    .doctor-login-container,
    .lab-login-container {
        max-width: 450px !important;
        padding: 0 15px !important;
    }
    
    .patient-login-card,
    .doctor-login-card,
    .lab-login-card {
        padding: 40px 30px !important;
    }
    
    .patient-login-title,
    .doctor-login-title,
    .lab-login-title {
        font-size: 28px !important;
    }
    
    .patient-avatar,
    .doctor-avatar,
    .lab-avatar {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Doctor Dashboard Page - Tablet */
    body.dd-doctor-dashboard-page-body .dashboard-container {
        padding: 20px 15px !important;
    }
    
    .dd-doctor-dashboard .dashboard-header {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 25px !important;
        padding: 25px !important;
    }
    
    .dd-doctor-dashboard .doctor-profile {
        flex: 1 !important;
        flex-direction: row !important;
        min-width: 0 !important;
    }
    
    .dd-doctor-dashboard .profile-header {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .dd-doctor-dashboard .profile-details h1 {
        font-size: 24px !important;
    }
    
    .dd-doctor-dashboard .profile-details p {
        font-size: 14px !important;
    }
    
    .dd-doctor-dashboard .dashboard-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .dd-doctor-dashboard .dashboard-actions .btn-primary,
    .dd-doctor-dashboard .dashboard-actions .btn-secondary,
    .dd-doctor-dashboard .dashboard-actions a {
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .dd-doctor-dashboard .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    
    .dd-doctor-dashboard .stat-card {
        padding: 18px !important;
    }
    
    .dd-doctor-dashboard .stat-card h3 {
        font-size: 28px !important;
    }
    
    .dd-doctor-dashboard .stat-card p {
        font-size: 13px !important;
    }
    
    .dd-doctor-dashboard .appointments-section {
        padding: 25px !important;
    }
    
    .dd-doctor-dashboard .section-header {
        flex-direction: row !important;
        gap: 15px !important;
    }
    
    .dd-doctor-dashboard .section-header h2 {
        font-size: 20px !important;
    }
    
    .dd-doctor-dashboard .appointment-card {
        padding: 18px !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    
    .dd-doctor-dashboard .appointment-time {
        min-width: 70px !important;
    }
    
    .dd-doctor-dashboard .appointment-time .time {
        font-size: 18px !important;
    }
    
    .dd-doctor-dashboard .appointment-details h4 {
        font-size: 16px !important;
    }
    
    .dd-doctor-dashboard .appointment-details p {
        font-size: 13px !important;
    }
    
    .dd-doctor-dashboard .appointment-actions {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .dd-doctor-dashboard .appointment-actions button {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
    
    .dd-doctor-dashboard .status-toggle-section {
        flex-direction: row !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    
    .dd-doctor-dashboard .status-actions {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .dd-doctor-dashboard .completed-appointments-section {
        padding: 15px 0 !important;
    }
    
    .dd-doctor-dashboard .completed-appointments-section button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    /* Registration Pages */
    .dd-patient-reg-page .container,
    .dd-doctor-reg-page .container,
    .dd-lab-reg-page .container {
        padding: 20px 15px !important;
    }
    
    .dd-step-form {
        padding: 30px 25px !important;
    }
    
    .dd-step .field-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .dd-progress {
        gap: 15px !important;
    }
    
    .step-indicator {
        width: 45px !important;
        height: 45px !important;
        font-size: 13px !important;
    }
}

/* Small Mobile Responsive (max-width: 767px) */
@media (max-width: 767px) {
    /* Doctor Search Page */
    .dd-doctor-search .search-container {
        padding: 10px !important;
    }
    
    .search-header {
        padding: 20px 15px !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .search-header h1 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .search-header p {
        font-size: 0.9rem !important;
    }
    
    .search-filters .filter-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    .filter-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .filter-actions button,
    .filter-actions a {
        width: 100% !important;
    }
    
    .doctor-card {
        flex-direction: column !important;
        padding: 15px !important;
        text-align: center !important;
    }
    
    .doctor-avatar {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 15px !important;
    }
    
    .doctor-info {
        width: 100% !important;
    }
    
    .doctor-info h3 {
        font-size: 18px !important;
    }
    
    .doctor-actions {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .doctor-actions button {
        width: 100% !important;
    }
    
    /* About Page */
    .dd-about-page .about-container {
        padding: 15px 10px !important;
    }
    
    .about-hero {
        padding: 40px 15px !important;
        margin-bottom: 30px !important;
    }
    
    .about-hero h1 {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle {
        font-size: 1em !important;
        margin-bottom: 30px !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 25px !important;
        margin-top: 30px !important;
    }
    
    .stat-item h3 {
        font-size: 1.8em !important;
    }
    
    .stat-item p {
        font-size: 1em !important;
    }
    
    .mission-section .section-content {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .mission-points {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Login Pages (Patient, Doctor, Lab) */
    .dd-patient-login-page,
    .dd-doctor-login-page,
    .dd-lab-login-page {
        padding: 40px 15px 80px !important;
        min-height: 100vh !important;
    }
    
    .patient-login-container,
    .doctor-login-container,
    .lab-login-container {
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .patient-login-card,
    .doctor-login-card,
    .lab-login-card {
        padding: 30px 20px !important;
        border-radius: 15px !important;
    }
    
    .patient-login-title,
    .doctor-login-title,
    .lab-login-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .patient-avatar,
    .doctor-avatar,
    .lab-avatar {
        width: 90px !important;
        height: 90px !important;
    }
    
    .patient-icon,
    .doctor-icon,
    .lab-icon {
        font-size: 50px !important;
    }
    
    .login-method-toggle {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .toggle-btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .input-group {
        margin-bottom: 15px !important;
    }
    
    .patient-login-form input[type="tel"],
    .patient-login-form input[type="email"],
    .patient-login-form input[type="password"],
    .doctor-login-form input[type="tel"],
    .doctor-login-form input[type="email"],
    .doctor-login-form input[type="password"],
    .lab-login-form input[type="tel"],
    .lab-login-form input[type="email"],
    .lab-login-form input[type="password"] {
        padding: 12px 12px 12px 45px !important;
        font-size: 15px !important;
    }
    
    .patient-login-btn,
    .doctor-login-btn,
    .login-btn {
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    .login-footer {
        font-size: 13px !important;
    }
    
    .login-footer p {
        margin: 8px 0 !important;
    }
    
    /* Registration Pages */
    .dd-patient-reg-page,
    .dd-doctor-reg-page,
    .dd-lab-reg-page {
        padding: 40px 10px 80px !important;
    }
    
    .dd-patient-reg-page .container,
    .dd-doctor-reg-page .container,
    .dd-lab-reg-page .container {
        padding: 15px 10px !important;
    }
    
    .dd-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
    
    .dd-step-form {
        padding: 20px 15px !important;
        border-radius: 15px !important;
    }
    
    .dd-progress {
        gap: 10px !important;
        margin-bottom: 25px !important;
        flex-wrap: wrap !important;
    }
    
    .step-indicator {
        width: 40px !important;
        height: 40px !important;
        font-size: 11px !important;
    }
    
    .dd-step h2 {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
    }
    
    .dd-step .field-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .dd-step label {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    .dd-step input[type="text"],
    .dd-step input[type="email"],
    .dd-step input[type="tel"],
    .dd-step input[type="number"],
    .dd-step input[type="password"],
    .dd-step select,
    .dd-step textarea {
        padding: 12px !important;
        font-size: 15px !important;
    }
    
    .otp-btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .actions {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .actions button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    /* Patient Dashboard Page */
    body.dd-patient-dashboard-page-body .dashboard-container {
        padding: 15px !important;
    }
    
    /* Doctor Dashboard Page - Mobile */
    body.dd-doctor-dashboard-page-body .dashboard-container {
        padding: 15px 10px !important;
    }
    
    .dd-doctor-dashboard .dashboard-header {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 15px !important;
    }
    
    .dd-doctor-dashboard .doctor-profile {
        width: 100% !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .dd-doctor-dashboard .profile-avatar {
        margin: 0 auto 15px !important;
        width: 100px !important;
        height: 100px !important;
    }
    
    .dd-doctor-dashboard .profile-info {
        width: 100% !important;
    }
    
    .dd-doctor-dashboard .profile-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .dd-doctor-dashboard .profile-details {
        width: 100% !important;
        text-align: center !important;
    }
    
    .dd-doctor-dashboard .profile-details h1 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }
    
    .dd-doctor-dashboard .profile-details p {
        font-size: 13px !important;
        margin: 6px 0 !important;
    }
    
    .dd-doctor-dashboard .notification-bell {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .dd-doctor-dashboard .dashboard-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .dd-doctor-dashboard .dashboard-actions .btn-primary,
    .dd-doctor-dashboard .dashboard-actions .btn-secondary,
    .dd-doctor-dashboard .dashboard-actions a {
        width: 100% !important;
        padding: 14px !important;
        font-size: 14px !important;
        text-align: center !important;
        display: block !important;
        white-space: normal !important;
    }
    
    .dd-doctor-dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .dd-doctor-dashboard .stat-card {
        padding: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .dd-doctor-dashboard .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
        margin: 0 auto !important;
    }
    
    .dd-doctor-dashboard .stat-card h3 {
        font-size: 24px !important;
    }
    
    .dd-doctor-dashboard .stat-card p {
        font-size: 12px !important;
    }
    
    .dd-doctor-dashboard .appointments-section {
        margin-bottom: 20px !important;
        padding: 20px 15px !important;
    }
    
    .dd-doctor-dashboard .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding-bottom: 12px !important;
    }
    
    .dd-doctor-dashboard .section-header h2 {
        font-size: 18px !important;
        width: 100% !important;
    }
    
    .dd-doctor-dashboard .appointment-count {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
    
    .dd-doctor-dashboard .appointment-card {
        padding: 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .dd-doctor-dashboard .appointment-time {
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: auto !important;
    }
    
    .dd-doctor-dashboard .appointment-time .time {
        font-size: 18px !important;
    }
    
    .dd-doctor-dashboard .appointment-time .date {
        font-size: 12px !important;
    }
    
    .dd-doctor-dashboard .appointment-details {
        width: 100% !important;
    }
    
    .dd-doctor-dashboard .appointment-details h4 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .dd-doctor-dashboard .appointment-details p {
        font-size: 13px !important;
        margin: 4px 0 !important;
    }
    
    .dd-doctor-dashboard .appointment-actions {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    
    .dd-doctor-dashboard .appointment-actions button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 13px !important;
    }
    
    .dd-doctor-dashboard .status-toggle-section {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 15px !important;
        text-align: center !important;
    }
    
    .dd-doctor-dashboard .status-info {
        width: 100% !important;
    }
    
    .dd-doctor-dashboard .status-info h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .dd-doctor-dashboard .status-actions {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .dd-doctor-dashboard .status-actions button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .dd-doctor-dashboard .completed-appointments-section {
        padding: 15px 0 !important;
    }
    
    .dd-doctor-dashboard .completed-appointments-section button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 14px !important;
    }
    
    .dd-doctor-dashboard .empty-state {
        padding: 40px 15px !important;
    }
    
    .dd-doctor-dashboard .empty-icon {
        font-size: 40px !important;
    }
    
    .dd-doctor-dashboard .empty-state h3 {
        font-size: 18px !important;
    }
    
    .dd-doctor-dashboard .empty-state p {
        font-size: 14px !important;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Doctor Dashboard Page - Extra Small Mobile */
    body.dd-doctor-dashboard-page-body .dashboard-container {
        padding: 10px 8px !important;
    }
    
    .dd-doctor-dashboard .dashboard-header {
        padding: 15px 12px !important;
    }
    
    .dd-doctor-dashboard .profile-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .dd-doctor-dashboard .profile-details h1 {
        font-size: 20px !important;
    }
    
    .dd-doctor-dashboard .profile-details p {
        font-size: 12px !important;
    }
    
    .dd-doctor-dashboard .dashboard-actions .btn-primary,
    .dd-doctor-dashboard .dashboard-actions .btn-secondary,
    .dd-doctor-dashboard .dashboard-actions a {
        padding: 12px !important;
        font-size: 13px !important;
    }
    
    .dd-doctor-dashboard .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .dd-doctor-dashboard .stat-card {
        padding: 12px !important;
    }
    
    .dd-doctor-dashboard .stat-card h3 {
        font-size: 20px !important;
    }
    
    .dd-doctor-dashboard .stat-card p {
        font-size: 11px !important;
    }
    
    .dd-doctor-dashboard .appointments-section {
        padding: 15px 12px !important;
    }
    
    .dd-doctor-dashboard .section-header h2 {
        font-size: 16px !important;
    }
    
    .dd-doctor-dashboard .appointment-card {
        padding: 12px !important;
    }
    
    .dd-doctor-dashboard .appointment-time .time {
        font-size: 16px !important;
    }
    
    .dd-doctor-dashboard .appointment-details h4 {
        font-size: 15px !important;
    }
    
    .dd-doctor-dashboard .appointment-details p {
        font-size: 12px !important;
    }
    
    .dd-doctor-dashboard .appointment-actions button {
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    .dd-patient-dashboard .dashboard-header {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
    
    .dd-patient-dashboard .patient-profile {
        width: 100% !important;
    }
    
    .dd-patient-dashboard .profile-avatar {
        margin: 0 auto 15px !important;
    }
    
    .dd-patient-dashboard .dashboard-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .dd-patient-dashboard .dashboard-actions .btn-primary,
    .dd-patient-dashboard .dashboard-actions .btn-secondary {
        width: 100% !important;
        padding: 14px !important;
        font-size: 14px !important;
    }
    
    .dd-patient-dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .dd-patient-dashboard .stat-card {
        padding: 15px !important;
    }
    
    .dd-patient-dashboard .stat-card h3 {
        font-size: 24px !important;
    }
    
    .dd-patient-dashboard .stat-card p {
        font-size: 12px !important;
    }
    
    .dd-patient-dashboard .appointments-section {
        margin-bottom: 20px !important;
    }
    
    .dd-patient-dashboard .appointment-card {
        padding: 15px !important;
    }
    
    .dd-patient-dashboard .action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .dd-patient-dashboard .btn-small {
        width: 100% !important;
        padding: 10px !important;
    }
    
    /* Patient Profile Modal (Doctor Dashboard) */
    #patientProfileModal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 2.5% auto !important;
        max-height: 95vh !important;
    }
    
    .patient-profile-tabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .profile-tab-btn {
        padding: 10px 15px !important;
        font-size: 12px !important;
    }
    
    .profile-item-card {
        padding: 12px !important;
    }
    
    .profile-item-card h4 {
        font-size: 14px !important;
    }
    
    .profile-item-card p {
        font-size: 12px !important;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Doctor Search */
    .search-header h1 {
        font-size: 1.3rem !important;
    }
    
    .doctor-card {
        padding: 12px !important;
    }
    
    .doctor-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* About Page */
    .about-hero h1 {
        font-size: 1.5em !important;
    }
    
    .stat-item h3 {
        font-size: 1.5em !important;
    }
    
    /* Login Pages */
    .patient-login-card,
    .doctor-login-card,
    .lab-login-card {
        padding: 25px 15px !important;
    }
    
    .patient-login-title,
    .doctor-login-title,
    .lab-login-title {
        font-size: 20px !important;
    }
    
    .patient-avatar,
    .doctor-avatar,
    .lab-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Registration Pages */
    .dd-title {
        font-size: 1.5rem !important;
    }
    
    .dd-step-form {
        padding: 15px 10px !important;
    }
    
    .step-indicator {
        width: 35px !important;
        height: 35px !important;
        font-size: 10px !important;
    }
    
    .dd-step h2 {
        font-size: 1.2rem !important;
    }
}

/* Accessibility Improvements for Mobile */
@media (max-width: 768px) {
    /* Focus indicators */
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid #0f6bd1;
        outline-offset: 2px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .card {
            border: 2px solid #000;
        }
        
        button {
            border: 2px solid #000;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}
#search-patients-btn, #clear-filters-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
    user-select: none;
}

#search-patients-btn:hover, #clear-filters-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#search-patients-btn:active, #clear-filters-btn:active {
    transform: translateY(0);
}

/* Ensure form elements are accessible */
#patient-search, #patient-age-range, #patient-gender, #patient-appointment-status {
    pointer-events: auto !important;
    cursor: text !important;
    user-select: text;
}

/* Debug styles for search modal */
.search-modal .form-actions {
    position: relative;
    z-index: 10;
}

.search-modal .form-actions button {
    position: relative;
    z-index: 11;
}

/* Appointment Search Results Styling */
.appointment-list {
    margin: 15px 0;
}

.appointment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.appointment-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.appointment-item strong {
    color: #2c3e50;
    font-size: 16px;
}

.appointment-item small {
    color: #6c757d;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results h5 {
    color: #6c757d;
    margin-bottom: 15px;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    margin: 15px 0;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}