/* Global base – resets & typography (reusable site-wide) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #f8f9fa !important;   /* ← ADD THIS LINE */
    color: #333333 !important;       /* ← ADD THIS LINE */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login-specific wrapper – fixed width, no stretch */
.login-page-wrapper {
    width: 100%;
    max-width: 400px; /* Fixed to prevent logo stretch */
    padding: 50px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), /* Subtle neumorphic depth */
                inset 0 1px 0 rgba(255,255,255,0.8); /* Inner highlight */
    text-align: center;
}

/* Logo – auto-fit, not dominant */
.login-logo {
    max-width: 200px; /* Smaller, balanced */
    height: auto;
    margin-bottom: 30px;
}

/* Login title & subtitle */
.login-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.login-subtitle {
    color: #6c757d;
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 400;
}

/* Microsoft login button – specific, hover-ready */
.login-btn--microsoft {
    display: inline-block;
    padding: 14px 36px;
    background: #0067b8; /* MS blue */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.login-btn--microsoft:hover {
    background: #005a9e;
}

/* Disclaimer – small, non-intrusive */
.login-disclaimer {
    margin-top: 40px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* Dark mode variables - TEMPORARILY DISABLED until we style it properly */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg:         #1a1a1a;
        --color-surface:    #2a2a2a;
        --color-text:       #e0e0e0;
        --color-muted:      #b0b0b0;
        --color-border:     #444;
    }
}
*/

/* ────────────────────────────── DASHBOARD LAYOUT & SIDEBAR (FINAL) ────────────────────────────── */
.dash-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

/* Fixed full-height sidebar – glued to left edge */
.dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: white;
    border-right: 1px solid var(--color-border);
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    transition: width 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Collapsed state */
.dash-sidebar--collapsed {
    width: 65px;
}
.dash-sidebar--collapsed .dash-sidebar__label,
.dash-sidebar--collapsed .dash-user__name,
.dash-sidebar--collapsed .dash-sidebar__logout .dash-sidebar__label {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
}

/* Logo */
.dash-sidebar__logo {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.dash-sidebar__logo img {
    max-height: 48px;
    transition: max-height 0.3s ease;
}
.dash-sidebar--collapsed .dash-sidebar__logo img {
    max-height: 36px;
}

/* Navigation */
.dash-nav {
    flex: 1;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}
.dash-nav__item {
    margin-bottom: 0.25rem;
}
.dash-nav__link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333333;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.dash-nav__link:hover,
.dash-nav__link--active {
    background: rgba(0, 103, 184, 0.12);
    color: var(--color-primary);
    font-weight: 500;
}
.dash-nav__icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.4rem;
}

/* User at bottom */
.dash-user {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    background: white;
}
.dash-user__name {
    font-weight: 500;
    margin-left: 0.75rem;
    color: #333333;
    transition: opacity 0.2s ease;
}

/* Logout section */
.dash-sidebar__logout {
    border-top: 1px solid var(--color-border);
}
.dash-sidebar__logout .dash-nav__link:hover {
    background: #dc3545;
    color: white !important;
}

/* Collapse toggle */
.dash-sidebar__toggle {
    position: absolute;
    top: 1.5rem;
    right: -12px;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    font-size: 1.1rem;
}
.dash-sidebar__toggle:hover { background: #f5f5f5; }

/* Main content – pushed right of sidebar */
.dash-main {
    margin-left: 260px;
    padding: 3rem 2rem;
    flex: 1;
    min-height: 100vh;
    background: var(--color-bg);
    transition: margin-left 0.3s ease;
}
.dash-sidebar--collapsed ~ .dash-main {
    margin-left: 65px;
}

/* Center welcome text */
.dash-main > h1 {
    text-align: center;
    font-size: 2.4rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}
.dash-main > p:first-of-type {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Arrow toggle – clean & flips direction */
.dash-sidebar__toggle-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: block;
}

/* Make user row look like other links when hovered */
.dash-user a.dash-nav__link:hover {
    background: rgba(0, 103, 184, 0.12);
    color: var(--color-primary);
}

/* Perfect alignment for user/profile row */
.dash-nav__item--user .dash-nav__link {
    font-weight: 500;
    color: #333;
}
.dash-nav__item--user .dash-nav__link:hover {
    background: rgba(0, 103, 184, 0.12);
    color: var(--color-primary);
}