/* Healthcare Portal - Custom Styles */
/* Primary Color: rgb(9, 179, 173) - Teal */

:root {
    --primary-color: rgb(9, 179, 173);
    --primary-dark: rgb(7, 143, 138);
    --primary-light: rgb(200, 240, 238);
    --text-dark: #333;
    --text-muted: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --bg-secondary: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --card-bg: rgb(55 163 163 / 28%);
    --input-bg: #fff;
    --input-border: #ddd;
    --primary-hover: background: linear-gradient(135deg, #0e776e, #29c4b2);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: rgb(20, 200, 194);
    --primary-dark: rgb(15, 170, 165);
    --primary-light: rgba(20, 200, 194, 0.15);
    --text-dark: #e8e8e8;
    --text-muted: #b0b0b0;
    --text-light: #888;
    --border-color: #3a3f47;
    --bg-light: #1a1d21;
    --bg-white: #22262d;
    --bg-secondary: #2a2f38;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --card-bg: #2a2f38;
    --input-bg: #1a1d21;
    --input-border: #3a3f47;
    --primary-hover: background: linear-gradient(135deg, #0e776e, #29c4b2);
}

/* System preference detection (fallback) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: rgb(20, 200, 194);
        --primary-dark: rgb(15, 170, 165);
        --primary-light: rgba(20, 200, 194, 0.15);
        --text-dark: #e8e8e8;
        --text-muted: #b0b0b0;
        --text-light: #888;
        --border-color: #3a3f47;
        --bg-light: #1a1d21;
        --bg-white: #22262d;
        --bg-secondary: #2a2f38;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --card-bg: #2a2f38;
        --input-bg: #1a1d21;
        --input-border: #3a3f47;
    }
}

/* Dark Theme Element Overrides */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-light) !important;
    opacity: 1;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-dark);
}

[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .lang-btn,
[data-theme="dark"] .header-mobile-btn {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .login-container,
[data-theme="dark"] .login-form-section,
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

[data-theme="dark"] .login-benefits-section {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] label {
    color: var(--text-dark);
}

[data-theme="dark"] .country-code {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
}

[data-theme="dark"] select option {
    background-color: var(--input-bg);
    color: var(--text-dark);
}

/* Cloudflare Turnstile dark theme */
[data-theme="dark"] .cf-turnstile,
[data-theme="dark"] .turnstile-container {
    filter: invert(0.9) hue-rotate(180deg);
}

/* Dashboard and Page Elements Dark Theme */
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .widget-card,
[data-theme="dark"] .content-card {
    background-color: var(--card-bg) !important;
    color: var(--text-dark);
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .sidebar-nav {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .sidebar-nav a {
    color: var(--text-dark);
}

[data-theme="dark"] .sidebar-nav a:hover,
[data-theme="dark"] .sidebar-nav a.active {
    background-color: var(--primary-light);
}

[data-theme="dark"] .main-content,
[data-theme="dark"] .dashboard-container,
[data-theme="dark"] .page-content {
    background-color: var(--bg-light);
}

[data-theme="dark"] .card-body,
[data-theme="dark"] .card-content {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

[data-theme="dark"] .item-card,
[data-theme="dark"] .result-item,
[data-theme="dark"] .list-item,
[data-theme="dark"] .main-header {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-dark) !important;
}

[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .lang-dropdown {
    background-color: var(--bg-secondary) !important;
    color: var(--text-dark) !important;
}

/* PersonalInfo Form Dark Mode */
[data-theme="dark"] .info-form {
    background-color: var(--card-bg);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control-static {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .phone-input,
[data-theme="dark"] .phone-prefix {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-dark) !important;
}

[data-theme="dark"] .tabs {
    background-color: var(--card-bg);
}

[data-theme="dark"] .tab-btn {
    color: var(--text-dark);
    border: 1px solid var(--primary-light);
}

[data-theme="dark"] .tab-btn.active {
    color: var(--primary-color);
    background: var(--primary-light);
   
}

/* User Dropdown - Header has gradient so use contrast colors */
[data-theme="dark"] .user-btn {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .user-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}


[data-theme="dark"] .nav-link {
    color: var(--text-dark);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-dark);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .secondary-text {
    color: var(--text-muted) !important;
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   MAIN HEADER NAVIGATION
   ============================================ */

.main-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    gap: 15px;
}

/* Mobile menu button inside header */
.header-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Header right section */
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-switcher {
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-img.mobile-logo {
    height: 40px;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgb(55 163 163 / 28%);
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-item.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.theme-toggle-icon {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgb(55 163 163 / 95%);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu Button */
.header-mobile-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.header-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 2000;
    transition: left 0.3s;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .mobile-menu {
    background: var(--bg-secondary);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--primary-color);
}

.mobile-menu-header .header-logo {
    transform: scale(0.85);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .header-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Keep language switcher and theme toggle visible on mobile */
    .header-right,
    .header-controls,
    .language-switcher {
        display: flex !important;
    }
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Ensure controls stay together on all screen sizes */
@media (max-width: 992px) {
    .header-controls {
        gap: 4px;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .sidebar-footer {
        width: calc(100% - 10%) !important;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-md);
    color: black;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-btn i:last-child {
    font-size: 0.65rem;
    margin-left: 2px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    min-width: 140px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.lang-dropdown a:hover {
    background: var(--bg-secondary);
}

/* Dark theme dropdown override */
[data-theme="dark"] .lang-dropdown {
    background: rgb(55 163 163 / 95%);
    border-color: rgb(55 163 163 / 45%);
}

[data-theme="dark"] .lang-dropdown a {
    color: var(--text-dark);
}

[data-theme="dark"] .lang-dropdown a:hover {
    background: rgb(143 226 226 / 35%)
}
[data-theme="light"] .user-btn {
    background: rgb(51 51 51);
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="light"] .user-btn:hover {
    background: rgb(51 51 51);
    border-color: rgba(6, 247, 247, 0.841);
}

/* ============================================
   USER ACCOUNT DROPDOWN STYLES
   ============================================ */

.user-account-dropdown {
    position: relative;
    margin-left: 10px;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    /* background: rgba(255, 255, 255, 0.15); */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
}

.user-badge.child-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.user-chevron {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s;
}

.user-account-dropdown.open .user-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-account-dropdown.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.1));
}

.dropdown-header i {
    color: #0d9488;
    font-size: 1rem;
}

.dropdown-header span {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #0d9488;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #888;
    transition: color 0.2s;
}

.dropdown-item:hover i {
    color: #0d9488;
}

.dropdown-item.return-parent {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
}

.dropdown-item.return-parent i {
    color: #d97706;
}

.dropdown-item.return-parent:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.dropdown-item.logout-item:hover i {
    color: #dc2626;
}

/* Dark mode for user dropdown */
[data-theme="dark"] .user-dropdown {
    background: #2a2f38;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-header span {
    color: #fff;
}

[data-theme="dark"] .dropdown-divider {
    background: #3a3f47;
}

[data-theme="dark"] .dropdown-item {
    color: #ccc;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #3a3f47;
    color: #14b8a6;
}

[data-theme="dark"] .dropdown-item i {
    color: #888;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-info {
        display: none;
    }

    .user-btn {
        padding: 6px;
    }

    .user-chevron {
        display: none;
    }

    .user-dropdown {
        right: -10px;
    }
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-header {
    /* background: linear-gradient(135deg, rgba(9, 179, 173, 0.9), rgba(7, 143, 138, 0.95)), center/cover;
    background-color: var(--primary-color); */
    color: var(--primary-color);
    padding: 5px 40px;
    text-align: center;
}

.login-logo {
    margin-bottom: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-circle i {
    font-size: 1.6rem;
    color: white;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.login-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 10px auto 110px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.login-form-section {
    flex: 1;
    min-width: 320px;
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

.login-benefits-section {
    flex: 0 0 320px;
    padding: 40px;
    background: var(--bg-white);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 179, 173, 0.15);
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--bg-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 179, 173, 0.15);
}

.date-row {
    display: flex;
    gap: 10px;
}

.date-row .form-select {
    flex: 1;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check-input {
    width: 25px;
    height: 25px;
    margin-top: -7px;
    accent-color: var(--text-dark);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Cloudflare Turnstile */
.turnstile-container {
    margin: 20px 0;
}

.turnstile-container .cf-turnstile {
    display: flex;
    justify-content: center;
}

.turnstile-container .field-error {
    display: block;
    text-align: center;
    margin-top: 8px;
}

/* Login Type Toggle */
.login-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.toggle-btn:first-child {
    border-right: 1px solid var(--border-color);
}

.toggle-btn:hover {
    background: var(--bg-light);
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.toggle-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.toggle-btn.disabled:hover {
    background: inherit;
}

.toggle-btn i {
    font-size: 1.1rem;
}

.coming-soon-badge-small {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Required field indicator */
.required {
    color: #e53935;
}

.field-error {
    display: block;
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 18px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Benefits Section */
.benefits-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 30px 0;
    text-align: center;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.benefit-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.benefit-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.coming-soon-badge i {
    font-size: 0.7rem;
}

/* ============================================
   SMS MODAL STYLES
   ============================================ */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 30px 0;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.otp-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.otp-input.active {
    border-color: var(--primary-color);
}

.otp-timer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    min-width: 120px;
}

/* ============================================
   PROFILE LAYOUT STYLES
   ============================================ */

.profile-layout {
    display: flex;
    min-height: 100vh;
}

.profile-sidebar {
    width: 230px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    top: 60px;
    /* Account for header height */
    left: 0;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-logo {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0 25px 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: var(--bg-light);
}

.sidebar-nav a.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-right: 3px solid var(--primary-color);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-divider {
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

.profile-main {
    flex: 1;
    margin-left: 220px;
    margin-top: 0;
    /* Account for header */
    padding: 30px 40px;
    background: var(--bg-light);
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 30px 0;
    color: var(--text-dark);
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dashboard-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.card-title i {
    font-size: 1.1rem;
}

.card-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

.card-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.card-empty i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Appointment/Visit Items */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-row:last-child {
    border-bottom: none;
}

.item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-avatar i {
    font-size: 1.25rem;
    color: var(--text-light);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.item-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.item-meta {
    text-align: right;
    flex-shrink: 0;
}

.item-date {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.item-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-protocol {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-download {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download:hover {
    background: var(--bg-light);
}

/* ============================================
   PERSONAL INFO PAGE
   ============================================ */

.tabs {
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    border: 1px solid var(--primary-color);
    transition: all 0.2s;
}

.tab-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.tab-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--primary-light);
}

.info-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(1fr, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-control-static {
    padding: 12px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    min-width: 100px;
}

.phone-prefix img {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

/* ============================================
   RESULTS TABLE
   ============================================ */

.results-table-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table thead {
    background: var(--primary-color);
    color: white;
}

.results-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
}

.results-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.results-table tbody tr:hover {
    background: var(--bg-light);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.result-action {
    display: flex;
    gap: 8px;
}

.result-action button {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-action button:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--bg-light);
}

.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .disabled {
    color: var(--text-light);
    pointer-events: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
    .login-container {
        margin: 20px;
    }

    .login-benefits-section {
        flex: 1;
        min-width: 280px;
        border-top: 1px solid var(--border-color);
    }

    .login-form-section {
        border-right: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: fixed;
        left: 0;
        top: 60px;
        width: 280px;
        height: calc(100vh - 60px);
        background-color: var(--bg-white);
        border-right: 1px solid var(--border-color);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    /* Dark theme mobile sidebar */
    [data-theme="dark"] .profile-sidebar {
        background-color: var(--bg-secondary) !important;
    }

    .profile-sidebar.open {
        transform: translateX(0);
    }

    /* Ensure sidebar nav items are visible in dark mode */
    .profile-sidebar .sidebar-nav a {
        color: var(--text-dark);
    }

    .profile-sidebar .sidebar-nav a:hover {
        background-color: var(--bg-light);
    }

    .profile-sidebar .sidebar-nav a.active {
        color: var(--primary-color);
        background-color: var(--primary-light);
    }

    .profile-main {
        margin-left: 0;
        margin-top: 0;
        padding: 20px;
        padding-bottom: 80px;
        /* Extra space for buttons */
        min-height: auto;
        overflow-y: auto;
    }

    /* Show hamburger menu in header */
    .header-menu-btn {
        display: flex !important;
    }

    /* Hide navigation on mobile */
    .header-nav {
        display: none;
    }

    /* Keep controls visible */
    .header-controls {
        display: flex;
    }
}

@media (max-width: 768px) {
    .login-header {
        padding: 30px;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-form-section,
    .login-benefits-section {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .date-row {
        flex-direction: column;
    }

    .otp-input {
        width: 38px;
        height: 48px;
        font-size: 1.25rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: var(--radius-sm) !important;
        margin-bottom: 5px;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 20px;
    }

    .login-header h1 {
        font-size: 1.25rem;
    }

    .login-form-section,
    .login-benefits-section {
        padding: 20px;
    }

    .benefit-item {
        flex-direction: row;
        text-align: left;
    }

    .item-row {
        flex-direction: column;
        text-align: center;
    }

    .item-meta {
        text-align: center;
    }

    .benefits-title {
        color: var(--primary-color);
        font-size: 1.25rem;
        font-weight: 500;
        margin: 0 0 30px 0;
        text-align: left;
    }
}

/* Mobile Menu Button (hidden by default) */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 70px;
    /* Below header */
    left: 15px;
    z-index: 101;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   BOOKING PAGE STYLES
   ============================================ */

.booking-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 60px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    transition: all 0.3s;
}

[data-theme="dark"] .step-number {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.step.completed .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Mobile responsive for booking steps */
@media (max-width: 768px) {
    .booking-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .booking-steps::before {
        display: none;
    }

    .step {
        flex: 0 0 auto;
        min-width: 50px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.selection-grid.departments {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.selection-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.selection-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.selection-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.selection-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.selection-card.small {
    padding: 15px;
}

.selection-card.small i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.selection-card h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.selection-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Doctor List */
.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.doctor-card:hover {
    border-color: var(--primary-color);
}

.doctor-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-avatar i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.doctor-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.doctor-info p {
    margin: 0 0 6px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.doctor-rating i {
    font-size: 0.8rem;
    color: #ffc107;
}

.doctor-rating span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 5px;
}

/* Date Time Picker */
.datetime-picker {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.date-section label,
.time-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-slot.disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Confirmation Card */
.confirmation-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 25px;
}

.confirmation-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-row .label {
    flex: 0 0 150px;
    font-weight: 500;
    color: var(--text-muted);
}

.confirmation-row .label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.confirmation-row .value {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

/* Booking Navigation */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.booking-nav .btn {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.booking-nav .btn-primary {
    width: auto;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

/* Language Switcher - Inherited from header styles */
/* Position handled by .header-controls flexbox */

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.language-btn:hover {
    border-color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: none;
    min-width: 150px;
    overflow: hidden;
}

.language-dropdown.open {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* RTL Support for Arabic */
html[dir="rtl"] .sidebar-nav a {
    border-right: none;
    border-left: 3px solid transparent;
}

html[dir="rtl"] .sidebar-nav a.active {
    border-left-color: var(--primary-color);
}

html[dir="rtl"] .profile-sidebar {
    right: 0;
    left: auto;
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .profile-main {
    margin-left: 0;
    margin-right: 220px;
}

html[dir="rtl"] .item-meta {
    text-align: left;
}

html[dir="rtl"] .language-switcher {
    right: auto;
    left: 15px;
    margin-right: 30px;
}

html[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

/* Booking Page Responsive */
@media (max-width: 768px) {
    .booking-steps {
        flex-wrap: wrap;
        gap: 15px;
    }

    .booking-steps::before {
        display: none;
    }

    .step {
        flex: 0 0 calc(33.33% - 10px);
    }

    .datetime-picker {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        flex-direction: column;
        text-align: center;
    }

    .confirmation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .confirmation-row .label {
        flex: none;
    }
}

/* ============================================
   PAYMENT PAGES
   ============================================ */

.payment-section {
    margin-bottom: 40px;
}

.payment-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.payment-section .section-title i {
    color: var(--primary-color);
}

.payment-section .badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s;
}

.invoice-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.invoice-card.pending {
    border-left: 4px solid #ffc107;
}

.invoice-card.paid {
    border-left: 4px solid #28a745;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.invoice-no {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.invoice-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.invoice-date i {
    margin-right: 5px;
}

.invoice-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.invoice-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.invoice-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.invoice-info p i {
    margin-right: 5px;
    color: var(--primary-color);
}

.invoice-amount {
    text-align: right;
}

.invoice-amount .amount {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.invoice-amount .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.invoice-amount .status.pending {
    background: #fff3cd;
    color: #856404;
}

.invoice-amount .status.paid {
    background: #d4edda;
    color: #155724;
}

.invoice-actions {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Payment Form Page */
.payment-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.payment-page .back-link:hover {
    color: var(--primary-color);
}

.payment-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.order-summary {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-summary h3 i {
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
    padding-top: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-form-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 30px;
}

.payment-form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 25px 0;
}

.payment-form-section h3 i {
    color: var(--primary-color);
}

.card-input-wrapper {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    color: #ccc;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.expiry-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cvv-input {
    max-width: 100px;
    text-align: center;
    letter-spacing: 5px;
}

.secure-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: var(--radius-md);
    margin: 25px 0;
    font-size: 0.85rem;
    color: #2e7d32;
}

.secure-notice i {
    font-size: 1.2rem;
}

.btn-pay-now {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Success Modal */
.modal-backdrop.active {
    display: flex;
}

.success-modal {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 40px;
    color: #4caf50;
}

.success-modal h2 {
    color: #2e7d32;
    margin: 0 0 10px 0;
}

.success-modal p {
    color: var(--text-muted);
    margin: 0 0 25px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .invoice-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-amount {
        text-align: left;
        margin-top: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cvv-input {
        max-width: none;
    }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   CONTACT MODAL
   ============================================ */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.contact-modal {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-modal h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.contact-modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-btn.whatsapp {
    background: #25d366;
    color: white;
}

.contact-btn.phone {
    background: var(--primary-color);
    color: white;
}

.contact-btn i {
    font-size: 1.2rem;
}

.contact-close {
    background: var(--bg-light);
    border: none;
    padding: 10px 30px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.contact-close:hover {
    background: var(--border-color);
}

/* ============================================
   GLOBAL FIX: Gradient/Teal Background Cards
   White text and icons for dashboard-style cards
   ============================================ */

/* Dashboard card with gradient header */
.dashboard-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d9488 100%) !important;
    border-bottom: none !important;
    padding: 16px 20px !important;
}

.dashboard-card .card-header .card-title,
.dashboard-card .card-header .card-title i,
.dashboard-card .card-header h3,
.dashboard-card .card-header span {
    color: #ffffff !important;
}

.dashboard-card .card-header .card-link,
.dashboard-card .card-header .card-link i,
.dashboard-card .card-header a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dashboard-card .card-header .card-link:hover,
.dashboard-card .card-header a:hover {
    color: #ffffff !important;
}

/* Badge styling for dashboard */
.dashboard-card .badge-coming-soon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Status badges */
.result-badge.lab,
.status-badge.lab {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}

.result-badge.rad,
.status-badge.rad {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #ffffff !important;
}

/* Modern button for dashboard */
.dashboard-card .btn-book,
.dashboard-card a.btn-book,
a.btn-book {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(135deg, var(--primary-color), #0d9488) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(9, 179, 173, 0.3) !important;
    cursor: pointer !important;
}

.dashboard-card .btn-book i,
a.btn-book i {
    color: #ffffff !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

.dashboard-card .btn-book:hover,
a.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 179, 173, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Small button styling */
.btn-small-modern {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-small-modern:hover {
    background: #0d9488 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Visit/Appointment Avatar - Doctor icon circle */
.visit-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary-color), #0d9488) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.visit-avatar i {
    color: #ffffff !important;
    font-size: 1.1rem !important;
}

.visit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Flexbox ile yan yana dizme */
.appointments-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.appointments-grid .appointments-section {
    flex: 1;
    margin-top: 0 !important;
}

/* Responsive tasarım - Mobilde alt alta */
@media (max-width: 992px) {
    .appointments-grid {
        flex-direction: column;
    }
}



.sidebar-footer {
    padding: 5px 20px;
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 0;
    z-index: 10;
    width: calc(100% - 40px);
    /* border-radius: 16px 16px 0 0; */
    margin-left: 20px;
}

[data-theme="dark"] .sidebar-footer {
    background: var(--bg-secondary, #2a2f38);
    border-color: var(--border-color, #3a3f47);
}

.sidebar-footer-info {
    display: flex;
    gap: 5px;
}

.code-icon {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    padding: 5px 5px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
    transition: transform 0.3s ease;
    width: 45px;
    height: 30px;
}

.code-icon:hover {
    transform: scale(1.05) rotate(-5deg);
}

.code-bracket {
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    display: block;
    line-height: 1;
}

.footer-text {
 display: block;
    flex-direction: column;
    gap: 4px;
    margin: 5px 0px 0px 5px;
}

.footer-dept {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color, #0d9488);
    letter-spacing: 0.5px;
}


[data-theme="dark"] .code-icon {
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.5);
}

/* Tablet için */
@media (max-width: 768px) {
    .appointments-grid {
        gap: 1rem;
    }

    .sidebar-footer {
        padding: 16px 20px;
        border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: fixed;
        bottom: 0;
        z-index: 10;
        width: calc(100% - 40px);
        border-radius: 16px 16px 0 0;
        margin-left: 0 !important;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
        margin-bottom: 70px;
    }
}

[data-theme="light"] .sidebar-footer {
    background: var(--bg-white);
    border-color: var(--bg-white, #3a3f47);
}

[data-theme="light"] .modal-content {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .lang-btn,
[data-theme="light"] .header-mobile-btn {
    background-color: var(--text-dark) !important;
    /* border-color: var(--bg-light) !important; */
    color: var(--bg-white) !important;
}


[data-theme="light"] .header-menu-btn {
    background-color: var(--text-dark) !important;
    /* border-color: var(--bg-light) !important; */
    color: var(--bg-white) !important;
}

[data-theme="light"] .dropdown-menu {
    background-color: var(--bg-white) !important;
    /* border-color: var(--bg-light) !important; */
    color: var(--text-dark) !important;
}

[data-theme="light"] .dropdown-menu li a {
    background-color: var(--bg-white) !important;
    /* border-color: var(--bg-light) !important; */
    color: var(--text-dark) !important;
}

[data-theme="light"] .dropdown-menu li a:hover {
    background-color: var(--bg-light) !important;
    /* border-color: var(--bg-light) !important; */
    color: var(--text-dark) !important;
}
[data-theme="light"] .login-header p {
    color: var(--primary-color) !important;
}

span.doctor-name {
    font-weight: 500;
    color: turquoise;

}

a.doctor-name {
    text-decoration: none;
    color: var(--text-dark);
}

span.doctor-name:hover {
    text-decoration: underline;
}

a.badge-request {
    text-decoration: none;
}

.time-actions {
    display: block;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Saat */
.time-chip {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Takvim Chip */
.calendar-chip {
    background: #f0f6ff;
    border: 1px solid #cfe1ff;
    color: #1e6fe3;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .2s ease;
}

.calendar-chip:hover {
    background: #1e6fe3;
    color: #fff;
    border-color: #1e6fe3;
}

.calendar-chip i {
    font-size: 14px;
}

.calendar-chip:hover .btn-text {
    content: 'Takvimde Aç';
}



a.doctor-name:hover {
    text-decoration: underline;
}

.banka-button {
    background: linear-gradient(135deg, rgba(9, 179, 173, 0.9), rgba(7, 143, 138, 0.95)), center/cover;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s;
}

.banka-button:hover {
    transform: translateY(-2px);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.modal-overlay.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 95vh;
    overflow-y: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, rgba(9, 179, 173, 0.9), rgba(7, 143, 138, 0.95)), center/cover;
    color: white;
    padding: 1px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 21px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qr-section {
    padding: 10px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  
}

.qr-code {
    width: 220px;
    height: 220px;
    background: white;
    margin: 0 auto 10px;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, #ddd 2px, transparent 2px),
        linear-gradient(180deg, #ddd 2px, transparent 2px);
    background-size: 10px 10px;
    border: 3px solid #667eea;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 14px;
}

.qr-text {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.tabs,
.bank-tabs {
    display: flex;
    background: #f8f9fa;
    padding: 0;
    border-bottom: 2px solid #e9ecef;
    overflow: hidden;
    margin: 0 10px 0 15px;
}

.tab,
.bank-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
    position: relative;
}

.tab:hover,
.bank-tab:hover {
    background: rgba(102, 126, 234, 0.05);
}

.tab.active,
.bank-tab.active {
    color: #667eea;
    background: white;
}

.tab.active::after,
.bank-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

.tab:hover {
    background: rgba(102, 126, 234, 0.05);
}

.tab.active {
    color: #667eea;
    background: white;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

.tab-content {
    display: none;
    padding: 10px;
    animation: fadeInContent 0.3s;
}

.tab-content.active {
    display: block;
}

.bank-tab-content {
    display: none;
    padding: 5px 24px 0;
    animation: fadeInContent 0.3s;
}

.bank-tab-content.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 5px;
}

.bank-alert {
    background: #fff8e5;
    border: 1px solid #ffe29d;
    border-radius: 12px;
    padding: 0 5px;
    margin: 5px 0 5px;
    color: #785500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.bank-alert i {
    color: #c08401;
}

.info-row {
    display: grid;
    grid-template-columns: minmax(140px, 140px) minmax(0, 1fr) minmax(34px, auto);
    align-items: center;
    padding: 8px 0;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

.info-value {
    color: #212529;
    font-weight: 500;
    font-size: 12px;
    display: block;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-value .copy-btn {
    flex-shrink: 0;
}

.info-row > .copy-btn {
    grid-column: 3;
    justify-self: end;
    align-self: center;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #5568d3;
}

.copy-btn.copied {
    background: #28a745;
}

.currency-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.icon-tl {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.icon-usd {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.icon-eur {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #856404;
}

@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .qr-code {
        width: 180px;
        height: 180px;
    }

    .tab {
        padding: 12px 10px;
        font-size: 14px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


a.bank-account-info {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}
button.btn.btn-outline-danger.btn-sm {
    color: white;
    background: rgb(239, 68, 68);
}
/* ============================================
   RESPONSIVE STYLES
   ============================================ */