:root {
    --primary-color: #3b82f6;
    /* Luminous Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #f472b6;
    /* Soft Pink */
    --accent-color: #8b5cf6;
    /* Violet */
    --bg-color: #0f172a;
    /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.65);
    /* Glassy Slate */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #34d399;
    /* Emerald 400 */
    --warning: #fbbf24;
    /* Amber 400 */
    --danger: #f87171;
    /* Red 400 */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --court-green: #15803d;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Premium Mesh Gradient Background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    color: white;
    margin-top: 0;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism 2.0 Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: 1.5rem;
    /* More rounded */
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Modern Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 0.75rem;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

/* Fix for white dropdown options in some browsers */
option {
    background-color: var(--bg-color);
    color: white;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    /* Pill shape */
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3), 0 2px 4px -1px rgba(59, 130, 246, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef4444);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(248, 113, 113, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(52, 211, 153, 0.3);
}

/* Floating Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Row spacing */
    margin-top: 1rem;
}

th {
    padding: 1rem;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

td {
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    first-child: border-top-left-radius: 0.75rem;
    last-child: border-bottom-right-radius: 0.75rem;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

tr td:first-child {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    border-left: 1px solid var(--border-glass);
}

tr td:last-child {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border-right: 1px solid var(--border-glass);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1);
    /* Fix for separate border flickering */
}

/* Umpire Scoring Specifics */
.score-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-glass);
}

.score-big {
    font-family: 'Rajdhani', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin: 1rem 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-live {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .score-big {
        font-size: 4rem;
    }
}