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

:root {
    --bg-primary: #f5f2eb;
    --bg-secondary: #e8e1d5;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(139, 119, 95, 0.2);
    --text-primary: #2c2417;
    --text-secondary: #5c4d3d;
    --accent-blue: #2b6cb0;
    --accent-green: #2f855a;
    --accent-yellow: #c05621;
    --accent-red: #c53030;
    --accent-purple: #6b46c1;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 50%, rgba(194, 178, 128, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(210, 180, 140, 0.15) 0%, transparent 50%),
        var(--bg-primary);
}

/* Header */
.dashboard-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.live-dot {
    color: var(--accent-green);
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
}

/* Glass Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(44, 36, 23, 0.05);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(44, 36, 23, 0.1);
    border-color: rgba(139, 119, 95, 0.3);
}

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

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header i {
    color: var(--accent-blue);
}

/* Video Container */
.video-container {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

#videoFeed {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.pose-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 170, 0.2);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-green);
}

/* Logs Container */
.logs-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.logs-container::-webkit-scrollbar {
    width: 6px;
}

.logs-container::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 3px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.log-entry {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-time {
    color: var(--text-secondary);
    font-family: 'Monaco', monospace;
    min-width: 70px;
}

.log-activity {
    color: var(--text-primary);
}

/* Charts */
.chart-card {
    grid-column: span 1;
}

#activityTimelineChart,
#activityPieChart {
    height: 400px;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-control {
    padding: 0.25rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-control:hover,
.btn-control.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem !important;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.stat-icon.sitting {
    background: rgba(74, 158, 255, 0.2);
    color: var(--accent-blue);
}

.stat-icon.standing {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent-green);
}

.stat-icon.walking {
    background: rgba(255, 184, 0, 0.2);
    color: var(--accent-yellow);
}

.stat-icon.fall {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.stat-percent {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Health Score */
.health-score-container {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: conic-gradient(var(--accent-green) 0deg 270deg,
            var(--glass-bg) 270deg 360deg);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 600;
    z-index: 1;
}

.score-label {
    font-size: 0.875rem;
    color: var(--accent-green);
    z-index: 1;
}

.health-metrics {
    space-y: 1rem;
}

.metric {
    margin-bottom: 1rem;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-bar.risk .progress-fill {
    background: var(--accent-red);
}

/* Events List */
.events-list {
    max-height: 200px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.875rem;
}

.event-item i {
    color: var(--accent-blue);
}

/* Buttons */
.btn-export {
    padding: 0.5rem 1rem;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: #3a8eef;
    transform: translateY(-1px);
}

/* Fall Alert Modal */
.fall-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.alert-content {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--accent-red);
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.alert-content i {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.alert-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.alert-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-emergency,
.btn-dismiss {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-emergency {
    background: var(--accent-red);
    color: white;
}

.btn-dismiss {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }

    .right-column {
        grid-column: span 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reset Button */
.btn-reset {
    padding: 0.5rem 1rem;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    border-radius: 8px;
    color: #ff4757;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

/* Countdown Circle */
.countdown-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: conic-gradient(#ff4757 0deg 360deg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.countdown-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff4757;
    z-index: 1;
}

/* Fall log entry */
.log-entry.fall-log {
    background: rgba(255, 71, 87, 0.1);
    border-left: 3px solid #ff4757;
}

/* Alert active state */
.stat-card.alert-active {
    animation: alertFlash 1s infinite;
}

@keyframes alertFlash {

    0%,
    100% {
        background: rgba(255, 71, 87, 0.1);
    }

    50% {
        background: rgba(255, 71, 87, 0.2);
    }
}

/* Persistent fall alert banner */
.fall-alert-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1500;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-color: var(--accent-green);
    background: rgba(0, 212, 170, 0.1);
}

.notification.success i {
    color: var(--accent-green);
}

.notification.error {
    border-color: var(--accent-red);
    background: rgba(255, 71, 87, 0.1);
}

.notification.error i {
    color: var(--accent-red);
}

/* Logo styling */
.logo-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Reset button icon only */
.btn-reset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset-icon:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: rotate(180deg);
}

/* Alert bubble */
.alert-bubble {
    padding: 0.5rem 1rem;
    background: rgba(255, 71, 87, 0.9);
    border: 2px solid #ff4757;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: alertPulse 1s infinite;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.5);
}

.alert-bubble i {
    font-size: 1rem;
    animation: alertBounce 0.5s infinite alternate;
}

@keyframes alertBounce {
    from {
        transform: translateY(-2px);
    }

    to {
        transform: translateY(2px);
    }
}

/* Log controls */
.log-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.log-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Enhanced logs container */
.logs-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Fall log entry styling */
.log-entry.fall-log {
    background: rgba(255, 71, 87, 0.15);
    border-left: 3px solid #ff4757;
    color: #ff6b6b;
}

.log-entry.fall-log .log-time {
    color: #ff4757;
    font-weight: 600;
}

.log-entry.fall-log .log-activity {
    color: #ff6b6b;
}

/* Remove time display */
#currentTime {
    display: none;
}

/* Countdown overlay */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.countdown-content {
    text-align: center;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseRed 1s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.countdown-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.countdown-content p {
    color: #b0b0c0;
    font-size: 1.2rem;
}

/* Alert active animation */
.stat-card.alert-active {
    animation: alertFlash 1s infinite;
}

/* Remove reset stats button text */
.btn-reset {
    display: none;
}

/* Countdown overlay - centered and prominent */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(20px);
}

.countdown-content {
    text-align: center;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulseRed 1s infinite;
    box-shadow: 0 0 50px rgba(255, 71, 87, 0.5);
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 40px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.countdown-number {
    font-size: 6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.countdown-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-content p {
    color: #ff6b6b;
    font-size: 1.5rem;
    font-weight: 500;
}

/* Dynamic score circle gradient */
.score-circle {
    transition: background 0.5s ease;
}

/* Extra pulse for countdown */
.countdown-circle.pulse-extra {
    animation: pulseExtra 0.3s ease;
}

@keyframes pulseExtra {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}

.centered-header {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.centered-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.centered-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: contain;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 15px rgba(44, 36, 23, 0.1);
}

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

.centered-logo-text h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.centered-logo-text .tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 200px);
    gap: 2rem;
    margin: 0 auto 3rem;
    justify-content: center;
}

.app-icon {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-icon i {
    font-size: 3.5rem;
    color: var(--text-primary);
}

.app-icon span {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-info {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-info strong {
    color: var(--text-primary);
}

.logout-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(197, 48, 48, 0.1);
    border: 1px solid rgba(197, 48, 48, 0.2);
    border-radius: 12px;
    color: var(--accent-red);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(197, 48, 48, 0.15);
    transform: translateY(-2px);
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1rem 2rem;
}

.btn-back,
.btn-reset-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover,
.btn-reset-icon:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 36, 23, 0.1);
}

.info-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
}

.live-dot {
    color: var(--accent-green);
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

/* Login Page Styles */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 15px rgba(44, 36, 23, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent-blue);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.2);
    background: #2563eb;
}

.error-message {
    background: rgba(197, 48, 48, 0.1);
    border: 1px solid rgba(197, 48, 48, 0.2);
    color: var(--accent-red);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.demo-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid var(--glass-bg);
    z-index: 2;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    margin-left: 10px;
}

.timeline-content h6 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-content small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.timeline-item.fall-event .timeline-marker {
    background: var(--accent-red);
}

.timeline-item.help-event .timeline-marker {
    background: var(--accent-yellow);
}

.timeline-item.movement-event .timeline-marker {
    background: var(--accent-green);
}

.timeline-item.hydration-event .timeline-marker {
    background: var(--accent-blue);
}