@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

html { font-size: 16px; } 
@media (min-width: 768px) { html { font-size: 17px; } } 
@media (min-width: 1280px) { html { font-size: 18px; } } 

body { font-family: 'Plus Jakarta Sans', sans-serif; -webkit-font-smoothing: antialiased; background-color: #e2e8f0; color: #0f172a; }

.animate-fade-in { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.custom-scrollbar::-webkit-scrollbar { height: 8px; width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.sidebar-item { position: relative; padding: 14px 20px; border-radius: 12px; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 14px; transition: all 0.2s; cursor: pointer; margin-bottom: 4px; overflow: hidden; white-space: nowrap; }
.sidebar-item:hover { background-color: #f8fafc; color: #0f172a; }
.sidebar-active { background-color: var(--tw-color-primary-50) !important; color: var(--tw-color-primary-600) !important; font-weight: 800; }
.sidebar-active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background-color: var(--tw-color-primary-600); border-radius: 4px; }

.glass-panel { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(226, 232, 240, 0.8); }
.numpad-btn { width: 100%; aspect-ratio: 1; font-size: 28px; font-weight: 800; border-radius: 20px; background: #ffffff; color: #1e293b; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.1s; border: 2px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.numpad-btn:active { transform: scale(0.95); background: #f8fafc; }

input[type="color"] { -webkit-appearance: none; border: none; padding: 0; overflow: hidden; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 0.75rem; }

@media print { 
    body * { visibility: hidden; } 
    .print-area, .print-area * { visibility: visible; } 
    .print-area { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: none; overflow: visible !important; padding: 0 !important; background: white !important; } 
    .no-print { display: none !important; } 
    .print-bg-fix { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .award-violation-print-hide { display: none !important; }
}

/* Mobile-friendly specific classes */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 45;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px -5px rgba(15, 23, 42, 0.08);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 4px;
    height: 100%;
    width: 20%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-nav-item i {
    transition: transform 0.2s;
}

.mobile-nav-item.active {
    color: #005C9A;
}

.mobile-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #005C9A;
}

.mobile-badge {
    position: absolute;
    top: 4px;
    right: 18%;
    background-color: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 900;
    border-radius: 9999px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Day selector for roster builder mobile mode */
.day-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 16px;
    scrollbar-width: none; /* Firefox */
}
.day-scroll-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.day-pill {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 800;
    text-align: center;
    font-size: 13px;
    min-width: 70px;
    transition: all 0.2s;
}

.day-pill.active {
    background: #005C9A;
    color: #ffffff;
    border-color: #005C9A;
    box-shadow: 0 4px 12px rgba(0, 92, 154, 0.25);
}

/* General touch optimizations */
@media (max-width: 1023px) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Weather Widget Animations */
.weather-sun-pulsing {
    animation: weather-pulse 3s ease-in-out infinite;
    transform-origin: center;
}
.weather-sun {
    animation: weather-spin 25s linear infinite;
    transform-origin: center;
}
.weather-cloud {
    animation: weather-float 5s ease-in-out infinite;
    transform-origin: center;
}
.weather-rain-drop {
    animation: weather-rain 1s linear infinite;
}
.weather-rain-drop:nth-child(2) { animation-delay: 0.25s; }
.weather-rain-drop:nth-child(3) { animation-delay: 0.5s; }
.weather-rain-drop:nth-child(4) { animation-delay: 0.75s; }

@keyframes weather-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes weather-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6)); }
}
@keyframes weather-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes weather-rain {
    0% { transform: translateY(-8px); opacity: 0; }
    30% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* Glassmorphism Weather Card */
.weather-card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
}