:root {
    --color-bg: #1e2a38; /* dark blue-gray background */
    --color-card: #2c3a4b; /* slightly lighter for cards */
    --color-text: #e0e6ed; /* light text */
    --color-accent-green: #00c49a; /* good status */
    --color-accent-red: #ff5c5c; /* bad status */
    --color-accent-yellow: #f9c74f; /* warning */
    --color-link: #3ea6ff;
    --color-muted-text: #a5b1c2;
    --color-downloading: #3f3971; /* Purple */
    --color-unaired: #2d4371; /* blue */
    --color-available: #206c46; /* green */
    --color-missing: #623232; /* red */
    --color-completed: #585217; /* yellow */
    --color-default: #212b37; /* gray */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-card);
    border: none;
    border-radius: .25rem;
    color: var(--color-text);
    padding: 0.25rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.btn-primary:active {
    transform: scale(0.95);
}

    .btn-primary:hover {
        background-color: #4b6675;
    }
.btn-primary:disabled {
    background-color: darkgray;
}

h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


.text-muted {
    color: var(--color-muted-text) !important;
}

.card {
    background-color: var(--color-card);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: var(--color-text);
}

.badge {
    border-radius: 1rem;
    font-size: .9rem;
    color: white;
}

.badge-green {
    background-color: var(--color-accent-green);
}

.badge-red {
    background-color: var(--color-accent-red);
}

.badge-yellow {
    background-color: var(--color-accent-yellow);
}

.legend-color {
    display: inline-block;
    width: 32px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbarlink Active link */
.active-link {
    background-color: #4b6675 !important;
    color: #e0e0e0 !important;
}

/* Normal nav-link style */
.nav-link {
    color: #ccc; /* muted light text */
    transition: background-color 0.2s, color 0.2s;
}

    /* Hover effect */
    .nav-link:hover {
        background-color: #4b6675;
        color: #e0e0e0;
    }

/* Fade in animation for cards*/
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-effect {
    transition: transform 0.2s ease-in-out;
}

    .hover-effect:hover {
        transform: scale(1.04);
        cursor: pointer;
        z-index: 2;
    }
    @media(max-width: 450px){
        .hover-effect {
            transition: transform 0.1s ease-in-out;
        }
        .hover-effect:hover {
            transform: scale(.97);
        }
    }

.error-img {
    max-width: 500px;
    width: 100%;
    height: auto;
}