/* public/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 1.2s;
    
    /* Default Colors */
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-color: #3b82f6;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-image var(--transition-speed) ease, color var(--transition-speed) ease;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    /* Soft mesh background effect base */
    background-size: cover;
    background-attachment: fixed;
}

/* === ENHANCED THEMES === */

/* 1. Sunrise Theme (05:00 - 09:00) */
body.theme-sunrise {
    background: radial-gradient(circle at top right, #fde68a, transparent 50%),
                radial-gradient(circle at bottom left, #f9a8d4, transparent 50%),
                linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
    --text-color: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.4);
    --card-border: rgba(255, 255, 255, 0.6);
    --accent-color: #f59e0b;
    --glass-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.3);
}

/* 2. Day Theme (09:00 - 16:00) */
body.theme-day {
    background: radial-gradient(circle at top left, #bae6fd, transparent 50%),
                radial-gradient(circle at bottom right, #e0e7ff, transparent 50%),
                linear-gradient(135deg, #f0f9ff 0%, #e2e8f0 100%);
    --text-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-border: rgba(255, 255, 255, 0.7);
    --accent-color: #0ea5e9;
    --glass-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.2);
}

/* 3. Sunset Theme (16:00 - 18:30) */
body.theme-sunset {
    background: radial-gradient(circle at top right, #fca5a5, transparent 50%),
                radial-gradient(circle at bottom left, #fdba74, transparent 50%),
                linear-gradient(135deg, #4c1d95 0%, #be123c 100%);
    --text-color: #f8fafc;
    --card-bg: rgba(0, 0, 0, 0.25);
    --card-border: rgba(255, 255, 255, 0.15);
    --accent-color: #fca5a5;
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* 4. Night Theme (18:30 - 05:00) */
body.theme-night {
    background: radial-gradient(circle at top left, #1e1b4b, transparent 50%),
                radial-gradient(circle at bottom right, #0f172a, transparent 50%),
                linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --text-color: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-color: #38bdf8;
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

/* === COMPONENTS === */

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border 0.4s ease;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(128, 128, 128, 0.05);
    transition: all 0.3s ease;
}

.staff-card:hover {
    background: rgba(128, 128, 128, 0.1);
    transform: translateX(4px);
}

.staff-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.staff-info h5 {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.staff-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
    font-weight: 300;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-on-duty {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
    animation: pulse-green 2s infinite;
}

.status-break {
    background-color: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-offline {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Clock */
.clock-display {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    background: linear-gradient(to right, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.date-display {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#active-shift-time {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: ticker;
    animation-duration: 40s;
}

.ticker__item {
    display: inline-block;
    padding: 0 3rem;
    font-size: 1rem;
    font-weight: 400;
}

.ticker__item strong {
    color: var(--accent-color);
    font-weight: 600;
    margin-right: 6px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.highlight-nearest {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: bold;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}
