/**
 * Command Center - Custom Styles
 * Supplements Tailwind CSS
 */

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Card hover effects */
.bg-dark-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Status indicator animation */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-pulse {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Touch-friendly buttons */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-first responsive adjustments */
@media (max-width: 640px) {
    /* Larger touch targets on mobile */
    button, 
    a[href] {
        min-height: 44px;
    }
    
    /* Adjust card padding */
    .p-5 {
        padding: 1rem;
    }
    
    /* Stack AR buckets on very small screens */
    .grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Very small screens (iPhone SE, etc) */
@media (max-width: 375px) {
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Hide scrollbar for nav tabs on mobile while keeping scroll */
nav.overflow-x-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

nav.overflow-x-auto::-webkit-scrollbar {
    display: none;
}

/* Status colors - consistent across dashboard */
.status-good { color: #4ade80; }     /* green-400 */
.status-warning { color: #facc15; }  /* yellow-400 */
.status-critical { color: #f87171; } /* red-400 */

/* Gradient backgrounds for special cards */
.gradient-impact {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.gradient-amerisouth {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .bg-dark-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
    
    header, footer, nav {
        display: none;
    }
}
