:root {
    --bg: #f8fafc;
    --text: #1e293b;
    --card: #ffffff;
    --primary: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --muted: #64748b;
    --border: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
    :root {
    --bg: #0f172a;
    --text: #f8fafc;
    --card: #1e293b;
    --primary: #60a5fa;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --muted: #94a3b8;
    --border: #334155;
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.header {
    background: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.clock {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.current-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.empty-state {
    color: var(--muted);
    font-style: italic;
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
}

.admin-card {
    background: var(--bg);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    animation: cardEnter 0.4s ease forwards;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

.admin-card:hover .admin-avatar {
    transform: scale(1.05);
}

.admin-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.admin-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.admin-location {
    font-size: 0.8rem;
    color: var(--muted);
}

.schedule-day {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.schedule-day.visible {
    opacity: 1;
    transform: translateY(0);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.day-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.day-date {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.today-label {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-list {
    display: grid;
    gap: 0.75rem;
}

.event-card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1rem;
    border-left: 4px solid var(--border);
    transition: all 0.3s ease;
}

.event-card.active {
    border-left-color: var(--success);
    background-color: rgba(16, 185, 129, 0.05);
}

.event-card.past {
    border-left-color: var(--muted);
}

.event-card.future {
    border-left-color: var(--warning);
}

.event-card.ending {
    animation: pulseEnding 2s infinite;
}

.event-person {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.event-time {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.event-location {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.event-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    color: var(--success);
}

.status-past {
    color: var(--muted);
}

.status-future {
    color: var(--warning);
}

.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    padding: 1rem 0;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    max-width: 300px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.scroll-down-arrow {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.scroll-down-arrow:hover {
    opacity: 1;
    animation: bounce 1s infinite;
}

.scroll-down-arrow svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.scroll-down-arrow.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulseWarning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseSuccess {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
    }
    40% {
    transform: translateY(-15px) translateX(-50%);
    }
    60% {
    transform: translateY(-7px) translateX(-50%);
    }
}

@keyframes pulseEnding {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
