:root {
    --primary: #e31e24; /* Naxatra News Red */
    --secondary: #000000;
    --accent: #f5f5f5;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--accent);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(227, 30, 36, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 40%);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
nav {
    background: var(--white);
    color: var(--secondary);
    padding: 5px 0; /* Reduced padding to keep navbar slim */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius);
}

.nav-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #c2191f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #222;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
}


.error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
    font-weight: 600;
}

.form-group.has-error .error-msg {
    display: block;
}

.form-group.has-error input {
    border-color: #ff4d4d;
}

/* Profile Card Specific */
.profile-view {
    max-width: 600px;
    width: 95%;
    margin: 40px auto;
}

/* New ID Card Styling */
.id-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.id-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.id-card-header {
    background: var(--secondary);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.id-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.id-card-header .logo {
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.id-card-header .id-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 700;
}

.id-card-body {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f9f9f9 100%);
    position: relative;
}

.id-photo-container {
    width: 160px;
    height: 160px;
    margin: -110px auto 20px;
    position: relative;
    z-index: 10;
}

.id-photo {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 6px solid var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    object-fit: cover;
    background: #eee;
}

.id-status-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.id-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.id-designation {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 4px;
}

.id-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
    margin-bottom: 25px;
    padding: 0 10px;
}

.id-detail-item {
    display: flex;
    flex-direction: column;
}

.id-detail-label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.id-detail-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
}

.id-barcode {
    margin-top: 10px;
}

.id-footer {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
}

.id-auth-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    padding: 0 10px;
}

.id-signature {
    text-align: center;
}

.id-signature-line {
    width: 100px;
    height: 1px;
    background: #ccc;
    margin-bottom: 5px;
}

.id-signature-text {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 600;
}

@media print {
    body * {
        visibility: hidden;
    }
    #profile-container, #profile-container * {
        visibility: visible;
    }
    #profile-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .btn {
        display: none !important;
    }
    nav, footer, .bg-mesh {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(227, 30, 36, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    color: var(--text-light);
    max-width: 850px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

/* Scanner Card */
.scanner-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    border-top: 6px solid var(--secondary);
    position: relative;
}

.live-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.scanner-container {
    background: #000;
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: inset 0 0 50px rgba(227, 30, 36, 0.2);
}

.success-alert {
    padding: 20px;
    border-radius: var(--radius);
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #b2f5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.scanner-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Manual Verification Section */
.manual-verify-section {
    margin: 60px 0;
    text-align: center;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.manual-verify-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.manual-input {
    padding-left: 45px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius);
}

#reader {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px dashed var(--primary);
}

/* Admin Dashboard */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.admin-grid.form-hidden {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.admin-grid.form-hidden #form-container {
    display: none;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.profile-item:hover {
    border-color: var(--primary);
    background: rgba(227, 30, 36, 0.02);
}

.profile-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-item-info {
    flex-grow: 1;
}

.profile-item-info h4 {
    margin: 0;
    font-size: 1rem;
}

.profile-item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.profile-item-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: white;
}

.view-btn {
    background: #e1f5fe;
    color: #0288d1;
}

.edit-btn {
    background: #fff8e1;
    color: #ffa000;
}

.delete-btn {
    background: #ffebee;
    color: #d32f2f;
}
.renew-btn {
    background: #e8f5e9;
    color: #2e7d32;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.action-btn.view-btn:hover { background: #0288d1; color: white; }
.action-btn.download-btn:hover { background: #2e7d32; color: white; }
.action-btn.edit-btn:hover { background: #ffa000; color: white; }
.action-btn.delete-btn:hover { background: #d32f2f; color: white; }
.action-btn.renew-btn:hover { background: #2e7d32; color: white; }

.action-btn:active {
    transform: translateY(0);
}

.action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: auto; /* Keep auto so title/tooltip works, but click handled in JS */
}

.action-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.logout-btn {
    background: rgba(227, 30, 36, 0.1);
    color: var(--primary);
    border: 1px solid rgba(227, 30, 36, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.2);
}

/* Responsive Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        color: var(--white);
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    .admin-grid {
        grid-template-columns: 1fr !important;
    }

    .id-details {
        grid-template-columns: 1fr !important;
    }

    .admin-header {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 20px;
    }

    .admin-header div {
        width: 100%;
    }

    .admin-header .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

/* Form Responsiveness */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 1.5rem;
    }

    .manual-verify-box {
        flex-direction: column;
    }
    
    .manual-verify-box button {
        width: 100%;
    }
}

/* Barcode */
.barcode-container {
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
}

.status-indicator.active {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.status-indicator.inactive {
    background: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}
/* Professional Profile Styles */
.professional-profile {
    max-width: 950px;
    width: 95%;
    margin: 40px auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-header {
    position: relative;
}

.profile-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 35%, var(--secondary) 65%, var(--primary) 100%);
    position: relative;
}

.profile-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(227, 30, 36, 0.15) 0%, transparent 40%);
}

.profile-header-content {
    display: flex;
    align-items: flex-end;
    padding: 0 40px 30px;
    margin-top: -50px; /* Slightly less negative to move content down on desktop */
    gap: 30px;
    position: relative;
    z-index: 10;
}

.profile-photo-wrapper {
    position: relative;
}

.profile-photo-large {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    border: 6px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: cover;
    background: #f0f0f0;
}

.status-badge-floating {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-active {
    background: #28a745;
}

.status-inactive {
    background: #dc3545;
}

.profile-main-info {
    padding-top: 65px; /* Increased to move details further down on desktop/tablet */
}

.profile-main-info h1 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.profile-designation-text {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.profile-tags {
    display: flex;
    gap: 12px;
}

.tag {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 40px;
    background: #fafafa;
}

.profile-info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.profile-info-card h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.info-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.info-value.status-active {
    color: #28a745;
    background: none;
}

.info-value.status-inactive {
    color: #dc3545;
    background: none;
}

.profile-actions {
    padding: 30px 40px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.profile-footer-branding {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.profile-footer-branding p {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .profile-body-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .profile-actions {
        flex-direction: column;
        padding: 20px;
    }
    
    .profile-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile-specific adjustments for Profile Header */
@media (max-width: 600px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 30px;
        margin-top: -90px; /* Pull higher over cover on mobile */
        gap: 10px; /* Reduced gap for mobile */
    }

    .profile-main-info {
        padding-top: 10px; /* Reduced padding for mobile */
    }

    .profile-tags {
        justify-content: center; /* Center tags on mobile */
    }
}

/* Print Optimization for Professional Profile */
@media print {
    .professional-profile {
        box-shadow: none;
        border: none;
        margin: 0;
    }
    .profile-actions, .bg-mesh, nav {
        display: none !important;
    }
}


/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-btn {
    background: #f8f9fa;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-left: 10px;
}

.profile-btn:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 1002;
    border: 1px solid #eee;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content.show {
    display: block;
}

.dropdown-content button {
    color: var(--secondary) !important;
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none !important;
}

.dropdown-content button:hover {
    background: #f9f9f9 !important;
    color: var(--primary) !important;
    padding-left: 25px;
}

.dropdown-content button i {
    width: 20px;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 35px;
    border-radius: 24px;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlide {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ccc;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .profile-dropdown {
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .profile-btn {
        width: 100%;
        height: 50px;
        border-radius: var(--radius);
        justify-content: center;
        gap: 12px;
        background: rgba(255,255,255,0.05);
        color: white;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .profile-btn:hover {
        background: rgba(255,255,255,0.1);
        border-color: var(--primary);
    }
    .profile-btn::after {
        content: 'Admin Account Settings';
        font-weight: 600;
        font-size: 0.95rem;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0,0,0,0.3);
        margin-top: 10px;
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: var(--radius);
        padding: 5px;
    }
    .dropdown-content.show {
        display: block;
    }
    .dropdown-content button {
        color: white !important;
        padding: 15px 20px;
        border-radius: 8px;
    }
    .dropdown-content button:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--primary) !important;
        padding-left: 20px;
    }
    .dropdown-content div {
        background: rgba(255,255,255,0.05) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        border-radius: 8px 8px 0 0;
        color: white !important; /* Forces username to be visible */
    }
    .dropdown-content div p {
        color: rgba(255,255,255,0.6) !important; /* "Logged in as" label */
    }
    #dropdown-username {
        color: white !important;
    }
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}
