:root {
    --primary: #5E6AD2;
    --primary-light: #8D91E2;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #111827;
    --light: #F9FAFB;
    --gray: #6B7280;
    --light-gray: #E5E7EB;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background-color: var(--light);
}

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -16px rgba(17, 24, 39, 0.35);
}

.btn {
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.25);
    border-color: var(--primary);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #E5E7EB;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.metric-card {
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    background: #FFFFFF;
    padding: 1rem;
}

.junior-stage {
    width: 100%;
    min-height: 360px;
    height: clamp(360px, 46vw, 560px);
    border-radius: 0.75rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .junior-stage {
        min-height: 300px;
        height: 330px;
    }

    .compact-on-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
