/* --- Base & Fonts --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* A slightly softer gray */
}

/* --- Page Transitions --- */
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes page-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.page {
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.hidden {
    display: none;
}

/* --- New Loading Animation: Pulse --- */
.loading-pulse {
    width: 80px;
    height: 80px;
    background-color: #3b82f6; /* Blue-500 */
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite cubic-bezier(0.215, 0.610, 0.355, 1);
    box-shadow: 0 0 20px #3b82f6;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}


/* --- Navigation Bar --- */
.nav-link.active {
    color: #2563eb; /* Blue-600 */
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

/* --- Dashboard Specific Styles --- */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.traffic-light {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.light {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #333; /* Dark gray */
    border-radius: 9999px;
    margin: 0.5rem auto;
    transition: all 0.3s ease-in-out;
    border: 2px solid #1a1a1a;
}

/* Light Active States */
.light.red {
    background-color: #ef4444; /* Tailwind's red-500 */
    box-shadow: 0 0 25px #ef4444, inset 0 0 5px #f87171;
}

.light.yellow {
    background-color: #f59e0b; /* Tailwind's amber-500 */
    box-shadow: 0 0 25px #f59e0b, inset 0 0 5px #fbbf24;
}

.light.green {
    background-color: #22c55e; /* Tailwind's green-500 */
    box-shadow: 0 0 25px #22c55e, inset 0 0 5px #4ade80;
}

/* Active lane card highlight */
.active-lane {
    border: 2px solid #2563eb; /* Blue-600 */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Progress bar styling */
.progress-bar-container {
    height: 8px;
    background-color: #e5e7eb; /* Tailwind's gray-200 */
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-bar {
    height: 100%;
    background-color: #22c55e; /* Tailwind's green-500 */
    transition: width 0.5s ease-in-out;
}