﻿/* ========== Eau Claire Dark Core (Master) ========== */
:root {
    --brand-bg: #0b0f19;
    --brand-bg-alt: #151c2c;
    --brand-bg-light: #20263a;
    --brand-glass: rgba(25,30,46,.72);
    --brand-glass-strong: rgba(25,30,46,.9);
    --brand-border: #2d3447;
    --brand-primary: #33e27c;
    --brand-accent: #31c5f8;
    --brand-warning: #f7c948;
    --brand-error: #f76e6e;
    --brand-text: #eaf1fa;
    --brand-text-muted: #a3b7d8;
    --brand-shadow: 0 8px 32px rgba(49,197,248,.07), 0 1.5px 6px rgba(30,41,59,.08);
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;
    --transition: all .23s cubic-bezier(.2,.8,.3,1);
    --z-header: 1000;
}

* {
    box-sizing: border-box
}

html, body {
    min-height: 100%;
    background: var(--brand-bg);
    color: var(--brand-text);
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    line-height: 1.6
}

    body.ecm-dark {
        padding-top: 80px
    }

a {
    color: var(--brand-accent);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.no-scroll {
    overflow: hidden;
    height: 100%
}

.st0 {
    fill: var(--brand-accent)
}

/* Header */
.doc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: linear-gradient(180deg,rgba(21,28,44,.92),rgba(21,28,44,.72));
    border-bottom: 1px solid var(--brand-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    transform: translateY(0);
}

    .doc-header.scrolled {
        box-shadow: 0 4px 20px rgba(0,0,0,.28)
    }

    .doc-header.scrolled-down {
        transform: translateY(-100%)
    }

    .doc-header.scrolled-up {
        transform: translateY(0)
    }

.doc-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.doc-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0
}

.doc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 0 0 auto
}

    .doc-logo .logo-icon {
        width: 32px;
        height: 32px;
        filter: drop-shadow(0 0 6px rgba(49,197,248,.25))
    }

.logo-text {
    display: flex;
    flex-direction: column
}

.logo-main {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.3px;
    background: linear-gradient(90deg,var(--brand-accent),var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.logo-sub {
    font-size: 12px;
    color: var(--brand-text-muted)
}

.doc-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px
}

.doc-nav-links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
    white-space: nowrap
}

.nav-link {
    color: var(--brand-text);
    font-weight: 700;
    font-size: 15px;
    opacity: .95;
    position: relative;
    padding: 6px 8px;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration:none!important;
    
}

    .nav-link span:after {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: -4px;
        height: 2px;
        width: 0;
        background: linear-gradient(90deg,var(--brand-accent),var(--brand-primary));
        transition: var(--transition);
        border-radius: 2px
    }

    .nav-link:hover {
        color: #fff;
        background: rgba(49,197,248,.08);
        box-shadow: 0 4px 14px rgba(49,197,248,.08)
    }

        .nav-link:hover span:after {
            width: calc(100% - 20px)
        }

.doc-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
    position: relative
}

.doc-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    transition: var(--transition)
}

    .doc-btn i {
        font-size: 14px
    }

.doc-btn-outline {
    background: transparent;
    color: var(--brand-accent);
    border: 1.5px solid var(--brand-accent)
}

    .doc-btn-outline:hover {
        background: var(--brand-accent);
        color: #0b1220;
        transform: translateY(-1px)
    }

.doc-btn-solid {
    background: linear-gradient(90deg,var(--brand-accent),var(--brand-primary));
    color: #0b1220;
    border: 1px solid #2e7
}

    .doc-btn-solid:hover {
        filter: brightness(1.06);
        transform: translateY(-1px)
    }

.doc-btn-schedule {
    padding: 10px 16px;
    text-decoration:none!important;
    
}

.doc-user-menu-container {
    position: relative;
    z-index: 3000
}

.doc-user-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(49,197,248,.12);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: 40px;
    padding: 6px 10px;
    transition: var(--transition)
}

    .doc-user-btn:hover, .doc-user-btn.active {
        background: rgba(49,197,248,.18)
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #233246;
    color: var(--brand-accent)
}

.doc-user-email {
    display: none !important;
    max-width: 0 !important
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--brand-text-muted);
    transition: var(--transition)
}

.doc-user-btn.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--brand-accent)
}

.doc-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: #1a2133;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    box-shadow: var(--brand-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 4000
}

    .doc-user-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

.doc-user-dropdown-header {
    padding: 14px;
    border-bottom: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg,#25365a,#1e2532);
    border-radius: var(--radius) var(--radius) 0 0
}

.doc-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    color: #fff;
    margin-right: 12px
}

.doc-user-info .doc-user-name {
    font-weight: 800;
    color: #fff
}

.doc-user-info .doc-user-email {
    font-size: 12px;
    color: #eaf1fa
}

.doc-user-dropdown-body {
    padding: 6px 0
}

.doc-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: var(--brand-text);
    text-decoration: none!important;
    transition: var(--transition)

}

    .doc-dropdown-item i:first-child {
        width: 20px;
        text-align: center;
        color: var(--brand-accent);
        margin-right: 10px
    }

    .doc-dropdown-item i:last-child {
        color: var(--brand-text-muted);
        font-size: 12px
    }

    .doc-dropdown-item:hover {
        background: #20263a
    }

/* Mobile */
.doc-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
    background: #1b2234;
    box-shadow: 0 2px 7px rgba(0,0,0,.2);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0
}

    .doc-mobile-menu-btn:hover {
        background: #222b41
    }

.menu-icon-bar {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-accent);
    margin: 0 auto
}

.doc-mobile-menu-btn.open .menu-icon-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.doc-mobile-menu-btn.open .menu-icon-bar:nth-child(2) {
    opacity: 0
}

.doc-mobile-menu-btn.open .menu-icon-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

.doc-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    backdrop-filter: blur(4px)
}

    .doc-mobile-overlay.open {
        opacity: 1;
        visibility: visible
    }

.doc-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #101524;
    border-left: 1px solid var(--brand-border);
    z-index: 999;
    transition: right .4s cubic-bezier(.22,.61,.36,1);
    display: flex;
    flex-direction: column
}

    .doc-mobile-nav.open {
        right: 0
    }

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    height: 100%
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid var(--brand-border);
    background: #151c2c
}

.mobile-nav-title {
    font-weight: 800
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1
}

.doc-mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    flex: 1;
    overflow: auto
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #eaf1fa;
    text-decoration: none;
    transition: var(--transition)
}

    .mobile-nav-link i:first-child {
        margin-right: 12px;
        color: var(--brand-accent);
        width: 20px;
        text-align: center
    }

    .mobile-nav-link:hover {
        background: #1b2236
    }

.doc-mobile-nav-actions {
    padding: 16px;
    border-top: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    gap: 10px
}

/* Content wrapper */
.doc-main-content {
    max-width: 100%
}

/* Footer */
.dark-footer {
    background: linear-gradient(180deg,#0f1322,#0b0f19);
    color: #eaf1fa;
    position: relative;
    padding-top: 60px
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 34px;
    position: relative
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px
}

.footer-logo {
    height: 46px
}

.footer-description {
    color: #b8c7e6
}

.social-links {
    display: flex;
    gap: 12px
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2236;
    color: #eaf1fa;
    transition: var(--transition)
}

    .social-link:hover {
        background: var(--brand-accent);
        color: #0b1220
    }

.footer-heading {
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    position: relative
}

    .footer-heading::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 48px;
        height: 3px;
        background: linear-gradient(90deg,var(--brand-accent),var(--brand-primary));
        border-radius: 3px
    }

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

    .footer-nav a {
        color: #cfe2ff
    }

        .footer-nav a:hover {
            color: #fff
        }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.contact-item {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #cfe2ff
}

    .contact-item i {
        color: var(--brand-accent)
    }

.footer-hours .hours-title {
    color: #fff;
    margin-top: 8px
}

.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    color: #d4e2ff
}

.footer-newsletter-col .newsletter-text {
    color: #cfe2ff
}

.form-group {
    position: relative;
    display: flex
}

    .form-group input {
        flex: 1;
        padding: 12px 15px;
        border-radius: 30px;
        border: 1px solid var(--brand-border);
        background: #1c2237;
        color: #fff
    }

        .form-group input::placeholder {
            color: #93a7c7
        }

    .form-group button {
        position: absolute;
        right: 5px;
        top: 5px;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: #eaf1fa;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer
    }

.form-message {
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px
}

    .form-message.success {
        color: #33e27c
    }

    .form-message.error {
        color: #f76e6e
    }

    .form-message.warning {
        color: #f7c948
    }

    .form-message.processing {
        color: #31c5f8
    }

.footer-bottom {
    background: #0d1220;
    border-top: 1px solid var(--brand-border);
    margin-top: 40px
}

    .footer-bottom .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px
    }

    .footer-bottom p {
        margin: 0;
        color: #9fb4da
    }

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px
}

    .footer-legal a {
        color: #cfe2ff
    }

        .footer-legal a:hover {
            color: #fff
        }

.back-to-top {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
    background: #1b2236;
    color: #eaf1fa;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 100
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

    .back-to-top:hover {
        background: var(--brand-accent);
        color: #0b1220
    }

/* Responsive */
@media (max-width: 992px) {
    .doc-nav {
        display: none
    }

    .doc-mobile-menu-btn {
        display: flex
    }
}

@media (min-width: 993px) {
    .doc-mobile-menu-btn {
        display: none !important
    }

    .doc-mobile-nav {
        display: none !important
    }

    .doc-mobile-overlay {
        display: none !important
    }
}

@media (max-width:576px) {
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center
    }
}

/* Utility */
.dark-glass {
    background: linear-gradient(180deg,rgba(21,28,44,.92),rgba(21,28,44,.64)) !important
}



















/* ===== Fix 1: Mobile menu button to the right ===== */
@media (max-width: 992px) {
    /* Push the hamburger to the far right even when the center nav is hidden */
    .doc-header-inner {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .doc-mobile-menu-btn {
        margin-left: auto; /* critical: move button to right */
        order: 3; /* ensure it follows the logo in flow */
    }
}

/* ===== Fix 2: Style mobile user section in drawer ===== */
.doc-mobile-user-section {
    margin: 12px 14px 10px;
    padding: 12px;
    background: #101826;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    box-shadow: var(--brand-shadow);
}

.doc-mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--brand-border);
}

    .doc-mobile-user-info .user-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #233246;
        color: var(--brand-accent);
        flex: 0 0 42px;
        box-shadow: 0 2px 10px rgba(0,0,0,.25);
    }

    .doc-mobile-user-info .user-details {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

.doc-mobile-user-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-mobile-user-email {
    color: var(--brand-text-muted);
    font-size: 13px;
    line-height: 1.2;
    word-break: break-word;
}

/* Appointment indicators (icons near user) */
.doc-mobile-appointment-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-accent);
}

#mobileApprovedAppointmentIcon {
    color: var(--brand-primary);
}

#mobilePendingAppointmentIcon {
    color: var(--brand-warning);
}

/* Links card under the user info */
.doc-mobile-user-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.doc-mobile-user-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    background: #121a2e;
    color: #eaf1fa;
    text-decoration: none;
    transition: var(--transition);
}

    .doc-mobile-user-link:hover {
        background: #1a2439;
    }

    .doc-mobile-user-link i:first-child {
        width: 20px;
        text-align: center;
        margin-right: 10px;
        color: var(--brand-accent);
    }

    .doc-mobile-user-link span {
        flex: 1 1 auto;
        min-width: 0;
        font-weight: 700;
    }

    .doc-mobile-user-link i:last-child {
        color: var(--brand-text-muted);
        font-size: 12px;
    }

/* Make the mobile drawer content breathe on very small screens */
@media (max-width: 420px) {
    .doc-mobile-user-section {
        margin: 10px 10px 8px;
        padding: 10px;
    }

    .doc-mobile-user-link {
        padding: 10px 12px;
    }
}

/* Ensure drawer always stacks above content */
.doc-mobile-nav {
    z-index: 999;
}

.doc-mobile-overlay {
    z-index: 998;
}



