/* ============================================================================
   IWC&S - EFFORTEL EMS INSPIRED DESIGN SYSTEM
   ============================================================================ */

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

/* Fargevariabler - Effortel EMS Dashboard Style */
:root {
    /* Blågrå bakgrunn (som Effortel) */
    --bg-main: #b8c5d3;
    --bg-main-darker: #aab8c8;
    --bg-main-lighter: #c5d0dc;
    
    /* Alias for bakoverkompatibilitet */
    --bg-primary: var(--bg-main);
    --bg-secondary: var(--bg-main-darker);
    --bg-tertiary: var(--bg-main-lighter);
    --bg-darkest: var(--bg-main);
    --bg-darker: var(--bg-main-darker);
    --bg-dark: var(--bg-main-lighter);
    
    /* Lyse kort på blågrå bakgrunn */
    --bg-card: #dce4ec;
    --bg-card-alt: #e4eaf0;
    --bg-card-hover: #d4dce6;
    --bg-card-inner: #e8eef4;
    --bg-card-secondary: #e4eaf0;
    
    /* Tekst (mørk på lyst) */
    --text-dark: #1a2332;
    --text-dark-secondary: #4a5568;
    --text-dark-muted: #6b7a8f;
    
    /* Alias for tekst */
    --text-on-card: var(--text-dark);
    --text-on-card-secondary: var(--text-dark-secondary);
    --text-on-card-muted: var(--text-dark-muted);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-dark-secondary);
    --text-muted: var(--text-dark-muted);
    --text-light: var(--text-dark);
    --text-light-secondary: var(--text-dark-secondary);
    --text-light-muted: var(--text-dark-muted);
    
    /* Borders */
    --border: #b8c5d3;
    --border-dark: #a8b8c8;
    --border-light: #d0dae6;
    
    /* Pastell-farger for ikoner og aksenter */
    --pastel-cyan: #7dd3fc;
    --pastel-lime: #d4f88f;
    --pastel-pink: #fca5c5;
    --pastel-purple: #c4b5fd;
    --pastel-orange: #fdba74;
    --pastel-teal: #5eead4;
    
    /* Accent - bruk pastell-lime */
    --accent: var(--pastel-lime);
    --accent-hover: #c5eb7a;
    --accent-dark: #b5db6a;
    --accent-text: #1a2332;
    
    /* Status farger (pastell) */
    --status-up: var(--pastel-lime);
    --status-down: var(--pastel-pink);
    --status-neutral: var(--pastel-cyan);
    --red: var(--pastel-pink);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Monospace font for tall */
.mono, .stat-value, .stat-value-large {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* Ambient bakgrunn - Blågrå Effortel */
.ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: var(--bg-main);
}

.ambient-bg::before,
.ambient-bg::after {
    display: none;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header - Effortel lys stil med avrundede hjørner */
header {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 1rem;
    z-index: 100;
    margin: 1rem 1.5rem;
    width: calc(100% - 3rem);
    max-width: calc(1100px - 3rem);
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.6s ease;
}

/* Header fade ved scroll */
header.faded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 480px) {
    header {
        margin: 0.5rem 1rem;
        width: calc(100% - 2rem);
        top: 0.5rem;
    }
    
    main.container {
        margin-top: 1.5rem;
    }
}

header .container {
    padding-top: 0;
    padding-bottom: 0;
}

main.container {
    margin-top: 2.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.logo-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.logo-text span {
    display: none;
}

/* Bruker-seksjon */
.user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-dark);
    flex-shrink: 0;
}

.user-details {
    display: none;
}

@media (min-width: 640px) {
    .user-details {
        display: flex;
        flex-direction: column;
    }
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.user-email {
    font-size: 0.6875rem;
    color: var(--text-dark-muted);
    line-height: 1.2;
}

.logout-btn {
    margin-left: 0.25rem;
}

/* Header left section */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hamburger menu */
.hamburger-dropdown {
    position: relative;
}

.hamburger-btn {
    padding: 0.4rem;
}

.hamburger-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 150;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hamburger-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hamburger-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.hamburger-menu-item:hover:not(.disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.hamburger-menu-item.active {
    background: var(--pastel-lime);
    color: var(--text-dark);
}

.hamburger-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hamburger-menu-item.danger {
    color: #dc2626;
}

.hamburger-menu-item.danger:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.hamburger-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Settings dropdown */
.settings-dropdown {
    position: relative;
}

.settings-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.settings-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.settings-menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.settings-menu-item.danger {
    color: #dc2626;
}

.settings-menu-item.danger:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.settings-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

.settings-weight-display {
    background: var(--bg-card-alt);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-top: 0.25rem;
}

.settings-weight-label {
    font-size: 0.6875rem;
    color: var(--text-dark-muted);
    margin-bottom: 0.25rem;
}

.settings-weight-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .settings-menu {
        min-width: 150px;
        max-width: 90vw;
    }
}

/* Knapper */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--pastel-lime);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-google {
    background: var(--bg-card-alt);
    color: var(--text-dark);
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border-light);
    font-size: 0.8125rem;
    transform: scale(0.75);
}

.btn-google:hover {
    background: var(--bg-card-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dark-secondary);
    padding: 0.5rem;
}

.btn-ghost svg {
    stroke: currentColor;
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text-dark);
}

.btn-danger {
    background: rgba(252, 165, 197, 0.3);
    color: #c0506b;
}

.btn-danger:hover {
    background: rgba(252, 165, 197, 0.5);
}

.btn-secondary {
    background: var(--bg-card-alt);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Main content */
main {
    padding: 1.5rem 0 2rem;
}

/* Card - Blågrå Effortel stil */
.card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: var(--text-on-card);
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Stat cards - Effortel EMS style */
.stat-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: var(--text-on-card);
    min-width: 0;
    overflow: hidden;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pastel-lime);
    color: var(--text-dark);
}

/* Pastell-farger for ulike ikon-typer */
.stat-icon.emerald,
.stat-icon.green {
    background: var(--pastel-lime);
    color: var(--text-dark);
}

.stat-icon.cyan {
    background: var(--pastel-cyan);
    color: var(--text-dark);
}

/* Mobil-spesifikke stiler for stat cards */
@media (max-width: 480px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stat-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

.stat-icon.blue {
    background: var(--pastel-teal);
    color: var(--text-dark);
}

.stat-icon.purple {
    background: var(--pastel-purple);
    color: var(--text-dark);
}

.stat-icon.orange {
    background: var(--pastel-orange);
    color: var(--text-dark);
}

.stat-icon.pink,
.stat-icon.red {
    background: var(--pastel-pink);
    color: var(--text-dark);
}

.stat-icon.teal {
    background: #a5f3fc;
    color: var(--text-dark);
}

.stat-value {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-value span {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    margin-left: 0.25rem;
}

/* Section header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

/* Chart section - Effortel style */
.chart-section {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.chart-section .section-title {
    color: var(--text-dark);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dark-secondary);
    letter-spacing: 0.05em;
}

.chart-container {
    height: 400px;
    position: relative;
}

.chart-container canvas {
    transition: opacity 0.3s ease;
}

@media (max-width: 767px) {
    .chart-section {
        padding: 1rem 0.5rem;
    }
    .chart-container {
        height: 300px;
    }
}

/* Entries section - Effortel style */
.entries-section {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.entries-section .section-title {
    color: var(--text-dark);
}

.entries-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.entries-empty svg {
    width: 40px;
    height: 40px;
    color: var(--text-dark-muted);
    margin-bottom: 0.75rem;
}

.entries-empty h3 {
    color: var(--text-dark-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.entries-empty p {
    color: var(--text-dark-muted);
    font-size: 0.8125rem;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.entry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    overflow: hidden;
}

@media (max-width: 480px) {
    .entry-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .entry-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .confirm-delete {
        flex-direction: column;
        gap: 0.5rem;
    }

    .confirm-delete .btn {
        width: 100%;
        max-width: none;
    }
}

.entry-item:hover {
    background: var(--bg-card-inner);
    border-color: var(--border);
}

.entry-item.confirming {
    position: relative;
}

.entry-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.entry-weight-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-dark);
}

.entry-details h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
}

.entry-details p {
    font-size: 0.75rem;
    color: var(--text-dark-muted);
}

.entry-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--text-dark-muted);
}

.delete-btn:hover {
    color: #c0506b;
}

.entry-item:hover .delete-btn {
    opacity: 1;
}

.confirm-delete {
    position: absolute;
    inset: 0;
    background: rgba(197, 208, 220, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: var(--radius-md);
}

.confirm-delete .btn {
    flex: 1;
    max-width: 120px;
}



/* Modal - Effortel style */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(197, 208, 220, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    width: 100%;
    max-width: 380px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Forms - Effortel style */
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--pastel-cyan);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
}

.form-group input::placeholder {
    color: var(--text-dark-muted);
}

.user-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card-secondary);
    border-radius: 12px;
}

.user-preview .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.user-preview .name {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.user-preview .date {
    font-size: 0.75rem;
    color: var(--text-dark-muted);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal-actions .btn {
    flex: 1;
    padding: 0.75rem;
}

/* Date picker - Effortel style */
.custom-date-picker {
    position: relative;
}

.date-display {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.date-display:hover {
    border-color: var(--border);
}

.date-display:focus {
    outline: none;
    border-color: var(--pastel-cyan);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
}

.date-display svg {
    color: var(--text-dark-muted);
    transition: color 0.15s ease;
}

.date-display:hover svg {
    color: var(--text-dark-secondary);
}

.date-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.date-picker-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.current-month {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    text-transform: capitalize;
}

.date-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-dark-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.date-nav-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-dark);
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.5rem;
}

.date-picker-weekdays span {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    padding: 0.5rem 0;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.date-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.date-picker-day:hover:not(.other-month):not(.selected) {
    background: var(--bg-card-alt);
}

.date-picker-day.other-month {
    color: var(--text-dark-muted);
    opacity: 0.4;
}

.date-picker-day.today:not(.selected) {
    border: 2px solid var(--pastel-cyan);
    color: var(--text-dark);
}

.date-picker-day.selected {
    background: var(--pastel-lime);
    color: var(--text-dark);
    font-weight: 600;
}

.date-picker-day.selected:hover {
    background: var(--accent-hover);
}

/* Footer - Effortel style */
footer {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    padding: 1.25rem 0;
    margin-top: auto;
    background: var(--bg-main);
}

footer p {
    font-size: 0.6875rem;
    color: var(--text-dark-muted);
    margin: 0;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-main);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--pastel-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-dark-secondary);
    font-weight: 500;
    margin-top: 1rem;
}

/* Login page - Effortel style */
.login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-main);
}

.login-container {
    text-align: center;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
}

.login-logo .logo-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--pastel-cyan);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo .logo-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-dark);
}

.login-logo h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.login-logo p {
    color: var(--text-dark-muted);
    font-size: 0.8125rem;
}

.login-card {
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
}

.login-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--text-dark-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.login-card .btn-google {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.login-divider span {
    color: var(--text-dark-muted);
    font-size: 0.75rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
