/* ==========================================================================
   Worthy Acosta - Custom UI Dashboard & Auth Stylesheet
   Brand Colors:
   - Deep Navy:    #102A4E
   - Primary Blue: #075998
   - Wave Cyan:    #51B8E5
   - Mist Blue:    #E9F5FC
   - White:        #FFFFFF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-deep-navy: #102A4E;
    --color-primary-blue: #075998;
    --color-wave-cyan: #51B8E5;
    --color-mist-blue: #E9F5FC;
    --color-white: #FFFFFF;
    
    --sidebar-bg: #102A4E;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: #075998;
    --sidebar-text: #D1E4F5;
    --sidebar-text-muted: #8EAAC6;
    
    --body-bg: #F4F8FC;
    --card-bg: #FFFFFF;
    --card-border: #E2EEF8;
    
    --text-main: #0E2038;
    --text-muted: #5C728A;
    --text-light: #8CA0B4;
    
    --sidebar-width: 270px;
    --header-height: 72px;
    
    --shadow-sm: 0 2px 8px rgba(16, 42, 78, 0.04);
    --shadow-md: 0 6px 20px rgba(16, 42, 78, 0.06);
    --shadow-lg: 0 12px 32px rgba(16, 42, 78, 0.10);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
}

/* ==========================================================================
   Dashboard Layout Architecture
   ========================================================================== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* --- Sidebar --- */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
    box-shadow: 4px 0 24px rgba(10, 26, 48, 0.15);
}

.sidebar-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2EEF8;
    position: relative;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.brand-logo-img {
    height: 62px;
    max-width: 210px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #F1F5F9;
    border: none;
    color: var(--color-deep-navy);
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-text-muted);
    font-weight: 700;
    padding: 12px 14px 6px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: var(--sidebar-text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--color-white);
}

.nav-link:hover svg {
    opacity: 1;
}

/* Active State matching user specification */
.nav-link.active {
    background-color: var(--sidebar-active);
    color: var(--color-white);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(7, 89, 152, 0.4);
}

.nav-link.active svg {
    opacity: 1;
    color: var(--color-wave-cyan);
}

.sidebar-footer {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-wave-cyan));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.72rem;
    color: var(--color-wave-cyan);
    font-weight: 500;
}

/* --- Main Content Area --- */
.app-main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--body-bg);
    transition: margin-left var(--transition-normal);
}

/* Collapsible Sidebar States */
.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
}

.sidebar-collapsed .app-main {
    margin-left: 0;
}

/* --- Topbar Header --- */
.app-header {
    height: var(--header-height);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hoverable Sidebar Toggle Button */
.sidebar-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1.5px solid #D8E7F5;
    background-color: #F8FBFE;
    color: var(--color-deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(16, 42, 78, 0.04);
}

.sidebar-toggle-btn:hover {
    background-color: var(--color-mist-blue);
    border-color: var(--color-wave-cyan);
    color: var(--color-primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 89, 152, 0.15);
}

.sidebar-toggle-btn:active {
    transform: translateY(0);
}

.sidebar-toggle-btn svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}



.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Role Badge Switcher for Demo / Quick Toggle */
.role-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-badge-admin {
    background: #EAF4FD;
    color: var(--color-primary-blue);
    border: 1px solid #C9E2F8;
}

.role-badge-assistant {
    background: #E6FAF8;
    color: #0E7490;
    border: 1px solid #BAF0ED;
}

.header-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E2EEF8;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.header-btn-icon:hover {
    background: var(--color-mist-blue);
    color: var(--color-primary-blue);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #EF4444;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

/* --- Dashboard Container --- */
.dashboard-container {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 32px;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-deep-navy);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-deep-navy);
    margin: 4px 0;
    letter-spacing: -0.02em;
}

.stat-trend {
    font-size: 0.78rem;
    font-weight: 600;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-mist-blue);
    color: var(--color-primary-blue);
}

.stat-icon-wrap svg {
    width: 26px;
    height: 26px;
}

/* Main Dashboard UI Grid Placeholder */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #F0F5FA;
    padding-bottom: 14px;
}

.card-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-deep-navy);
}

.card-action-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary-blue);
    background: transparent;
    border: none;
    cursor: pointer;
}

.card-action-btn:hover {
    text-decoration: underline;
}

/* Empty / Clean Placeholder States */
.empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: #FAFDFE;
    border: 1.5px dashed #D6E7F5;
    border-radius: var(--radius-md);
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--color-wave-cyan);
    margin-bottom: 12px;
    opacity: 0.9;
}

.empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-deep-navy);
}

.empty-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-top: 4px;
}

/* ==========================================================================
   Login Page Styling
   ========================================================================== */

/* ==========================================================================
   Split-Screen Login Page Styling (Custom Brand Palette)
   ========================================================================== */

.split-auth-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
}

.split-auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Brand Banner */
.split-auth-banner {
    width: 38%;
    background: linear-gradient(155deg, #09192E 0%, #102A4E 50%, #075998 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    color: #FFFFFF;
    overflow: hidden;
}

/* Subtle Geometric Pattern Overlay */
.split-auth-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(81, 184, 229, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(7, 89, 152, 0.25) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}

.banner-top {
    position: relative;
    z-index: 2;
}

.banner-logo-badge {
    width: 72px;
    height: 72px;
    background: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    padding: 8px;
}

.banner-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.banner-middle {
    position: relative;
    z-index: 2;
    margin: 40px 0;
}

.banner-brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.banner-brand-subtitle {
    font-size: 0.85rem;
    color: var(--color-mist-blue);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.banner-footer {
    position: relative;
    z-index: 2;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-separator {
    opacity: 0.4;
}

.banner-privacy-link {
    color: var(--color-wave-cyan);
    text-decoration: underline;
    font-weight: 500;
}

.banner-privacy-link:hover {
    color: #FFFFFF;
}

/* Right Form Panel */
.split-auth-form-panel {
    flex: 1;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.split-auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-deep-navy);
    letter-spacing: -0.02em;
}

.auth-heading .highlight-brand {
    color: var(--color-primary-blue);
}

.auth-role-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Role Selector */
.auth-role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-mist-blue);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    gap: 4px;
    border: 1px solid #D6E8F7;
}

.role-tab-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.role-tab-btn.active {
    background: var(--color-white);
    color: var(--color-primary-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-form-body {
    display: flex;
    flex-direction: column;
}

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

.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-deep-navy);
    margin-bottom: 7px;
}

.form-input-bordered {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1.5px solid #075998;
    background: #FFFFFF;
    font-size: 0.92rem;
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input-bordered:focus {
    border-color: var(--color-deep-navy);
    box-shadow: 0 0 0 3px rgba(7, 89, 152, 0.18);
}

.btn-signin {
    width: 100%;
    padding: 13px;
    border-radius: 6px;
    background-color: var(--color-deep-navy);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 42, 78, 0.25);
    transition: all var(--transition-fast);
    margin-top: 4px;
}

.btn-signin:hover {
    background-color: var(--color-primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(7, 89, 152, 0.35);
}

.btn-signin:active {
    transform: translateY(0);
}

.auth-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 22px;
}

.auth-sublink {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-deep-navy);
    text-decoration: none;
}

.auth-sublink:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

.auth-secondary-action {
    margin-bottom: 24px;
    text-align: center;
}

.btn-public-link {
    display: inline-block;
    width: 100%;
    padding: 11px 16px;
    background-color: #075998;
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(7, 89, 152, 0.2);
}

.btn-public-link:hover {
    background-color: #05416F;
    box-shadow: 0 4px 12px rgba(7, 89, 152, 0.3);
}

.auth-footer-contact {
    text-align: center;
    border-top: 1px solid #EBF2F7;
    padding-top: 18px;
}

.social-handles {
    margin-bottom: 6px;
}

.social-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-deep-navy);
}

.website-link {
    font-size: 0.82rem;
    color: var(--color-primary-blue);
    text-decoration: underline;
}

.website-link:hover {
    color: var(--color-deep-navy);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
    .split-auth-container {
        flex-direction: column;
    }
    
    .split-auth-banner {
        width: 100%;
        padding: 32px 24px;
    }
    
    .banner-middle {
        margin: 20px 0;
    }
    
    .banner-brand-title {
        font-size: 1.75rem;
    }
    
    .split-auth-form-panel {
        padding: 36px 20px;
    }
    
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    .app-main {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .app-header {
        padding: 0 16px;
    }
    
    .dashboard-container {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   Role Badges & Alerts
   ========================================================================== */
.role-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.role-badge-admin {
    background: #EBF3FB;
    color: #075998;
    border: 1px solid #C4DEF3;
}

.role-badge-assistant {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.auth-alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.auth-alert-success {
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.auth-alert-info {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .form-input-bordered {
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.btn-toggle-password:hover {
    color: var(--color-deep-navy);
}

.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 20px;
}

.remember-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.remember-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary-blue);
    cursor: pointer;
}

.demo-credentials-box {
    margin-top: 24px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.demo-credentials-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.demo-chip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.demo-chip:hover {
    border-color: #075998;
    background: #F0F7FF;
}

.demo-chip-role {
    font-size: 0.74rem;
    font-weight: 700;
    color: #075998;
}

.demo-chip-email {
    font-size: 0.78rem;
    color: #334155;
    word-break: break-all;
}

.demo-chip-pass {
    font-size: 0.72rem;
    color: #64748B;
}

/* ==========================================================================
   Bottom-Right Floating Toast Notification (App & Auth)
   ========================================================================== */
.bottom-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.bottom-toast {
    pointer-events: auto;
    background: #102A4E;
    color: #FFFFFF;
    padding: 13px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--color-wave-cyan);
    animation: toastSlideUp 0.3s ease-out forwards;
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-width: 420px;
}

.bottom-toast.toast-error {
    background: #102A4E;
    border: 1.5px solid #EF4444;
}

.bottom-toast.toast-success {
    background: #102A4E;
    border: 1.5px solid #10B981;
}

.bottom-toast.toast-info {
    background: #102A4E;
    border: 1.5px solid var(--color-wave-cyan);
}

.bottom-toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottom-toast .toast-text {
    flex: 1;
    line-height: 1.4;
    color: #F1F5F9;
}

.bottom-toast .toast-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.bottom-toast .toast-close-btn:hover {
    color: #FFFFFF;
}

.bottom-toast.hide {
    opacity: 0;
    transform: translateY(16px);
}

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

/* ==========================================================================
   Header Profile Button & Global Profile & Password Modal
   ========================================================================== */
.header-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: var(--color-deep-navy);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-profile-btn:hover {
    background: #E2E8F0;
    color: var(--color-primary-blue);
    border-color: #94A3B8;
}

.user-badge-edit-icon {
    opacity: 0.6;
    color: #FFFFFF;
    transition: all var(--transition-fast);
}

.user-profile-badge:hover .user-badge-edit-icon {
    opacity: 1;
    transform: scale(1.15);
    color: var(--color-wave-cyan);
}

.user-profile-badge {
    transition: background 0.2s ease;
    border-radius: 8px;
    padding: 4px;
}

.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Global Profile Modal Backdrop */
.global-profile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.global-profile-dialog {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

.global-profile-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-deep-navy), var(--color-primary-blue));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.global-profile-user-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.global-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06B6D4, #38BDF8);
    color: #092C4C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.global-profile-user-summary h3 {
    margin: 0 0 2px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
}

.global-profile-user-summary p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

.global-profile-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.global-profile-close:hover {
    background: rgba(220, 38, 38, 0.9);
}

/* Tabs */
.global-profile-tabs {
    display: flex;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 16px;
    gap: 8px;
}

.global-profile-tab {
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 12px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.global-profile-tab:hover {
    color: var(--color-primary-blue);
}

.global-profile-tab.active {
    color: var(--color-primary-blue);
    border-bottom-color: var(--color-primary-blue);
    background: #FFFFFF;
}

.global-profile-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.global-profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.global-profile-field label {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--color-deep-navy);
}

.global-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.global-profile-input {
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.86rem;
    color: var(--color-deep-navy);
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.global-profile-input:focus {
    border-color: var(--color-primary-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(7, 89, 152, 0.12);
}

.global-eye-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.global-eye-btn:hover {
    color: var(--color-primary-blue);
}

.global-profile-footer {
    padding: 16px 24px;
    border-top: 1px solid #E2E8F0;
    background: #FAFBFD;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-profile-modal-cancel {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-profile-modal-cancel:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.btn-profile-modal-save {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-deep-navy));
    border: none;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(7, 89, 152, 0.25);
    transition: all var(--transition-fast);
}

.btn-profile-modal-save:hover {
    box-shadow: 0 4px 12px rgba(7, 89, 152, 0.35);
    transform: translateY(-1px);
}

.btn-profile-modal-save:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}



