/* ================================================
   MAZAALAI OI 2026 — DOMjudge Custom Theme
   Colors extracted from official banner:
   - Bear Brown:   #3D1F00
   - Mazaalai Orange: #E8720C
   - Warm Cream:   #FFF5E6
   - Deep Amber:   #7A4010
   - Wheat:        #F5DEB3
   ================================================ */

/* ── GOOGLE FONT (optional, remove if no internet) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body, .navbar, .card, table {
    font-family: 'Inter', sans-serif !important;
}

/* ── GLOBAL BACKGROUND ── */
body {
    background-color: #FDF6EE !important;
    color: #3D1F00 !important;
}

/* ── NAVBAR ── */
.navbar {
    background-color: #3D1F00 !important;
    border-bottom: 2px solid #E8720C !important;
    padding: 8px 20px !important;
}
.navbar-brand {
    color: #F5DEB3 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}
.navbar-brand:hover { color: #E8720C !important; }

.nav-link {
    color: #D2A679 !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
    background-color: #E8720C !important;
    color: #fff !important;
}

/* ── PAGE HEADINGS ── */
h1, h2, h3, h4 {
    color: #3D1F00 !important;
}
h1 { font-size: 22px !important; font-weight: 600 !important; }
h2 { font-size: 18px !important; font-weight: 500 !important; }

/* ── CARDS ── */
.card {
    background-color: #FFF5E6 !important;
    border: 0.5px solid rgba(232, 114, 12, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.card-header {
    background-color: #3D1F00 !important;
    color: #F5DEB3 !important;
    border-radius: 11px 11px 0 0 !important;
    border-bottom: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
}

/* ── PRIMARY BUTTONS ── */
.btn-primary {
    background-color: #E8720C !important;
    border-color: #E8720C !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.btn-primary:hover {
    background-color: #C5600A !important;
    border-color: #C5600A !important;
}

.btn-secondary {
    background-color: transparent !important;
    border-color: #E8720C !important;
    color: #E8720C !important;
    border-radius: 8px !important;
}
.btn-secondary:hover {
    background-color: rgba(232,114,12,0.1) !important;
}

.btn-success {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    border-radius: 8px !important;
}
.btn-danger {
    background-color: #C62828 !important;
    border-color: #C62828 !important;
    border-radius: 8px !important;
}

/* ── SCOREBOARD TABLE ── */
.table {
    background-color: #FFF5E6 !important;
    color: #3D1F00 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.table thead th {
    background-color: #3D1F00 !important;
    color: #D2A679 !important;
    border-bottom: 2px solid #E8720C !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 10px 14px !important;
}
.table tbody tr {
    border-bottom: 0.5px solid rgba(232,114,12,0.15) !important;
    transition: background 0.1s;
}
.table tbody tr:hover {
    background-color: #FDDBB0 !important;
}
.table tbody tr:nth-child(even) {
    background-color: #FDEBD0 !important;
}
.table td {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: #3D1F00 !important;
}

/* ── RANK HIGHLIGHTS ── */
.table tbody tr:nth-child(1) {
    border-left: 3px solid #E8720C !important;
    background-color: #FFF3CD !important;
}
.table tbody tr:nth-child(2) {
    border-left: 3px solid #A0A0A0 !important;
}
.table tbody tr:nth-child(3) {
    border-left: 3px solid #CD7F32 !important;
    background-color: #FFF0E8 !important;
}

/* ── VERDICT BADGES ── */
.badge-success, .badge-ac {
    background-color: #E8F5E9 !important;
    color: #2E7D32 !important;
    border: 0.5px solid #2E7D32 !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
}
.badge-danger, .badge-wa {
    background-color: #FFEBEE !important;
    color: #C62828 !important;
    border: 0.5px solid #C62828 !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    padding: 3px 10px !important;
}
.badge-warning {
    background-color: #FFF5E6 !important;
    color: #E8720C !important;
    border: 0.5px solid #E8720C !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    padding: 3px 10px !imp
