/* =====================================================
 * Digital Scoring Board Ju-Jitsu Duo Show System
 * Main CSS - Tema Merah, Biru, Putih (Light & Clear)
 * ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Bebas+Neue&display=swap');

/* =====================================================
 * CSS CUSTOM PROPERTIES (DESIGN TOKENS)
 * ===================================================== */
:root {
  /* Warna Utama Ju-Jitsu */
  --red-primary:     #D71920;
  --red-dark:        #A8131A;
  --red-light:       #FF2D35;
  --red-soft:        #FFF0F0;

  --blue-primary:    #003DA5;
  --blue-dark:       #002D7A;
  --blue-light:      #1A57C4;
  --blue-soft:       #EEF3FF;

  --white-primary:   #FFFFFF;
  --dark-primary:    #111827;
  --dark-secondary:  #1F2937;
  --dark-tertiary:   #374151;

  --gray-soft:       #F3F4F6;
  --gray-medium:     #9CA3AF;
  --gray-border:     #E5E7EB;

  /* Status Colors */
  --success:         #10B981;
  --warning:         #F59E0B;
  --danger:          #EF4444;
  --info:            #3B82F6;

  /* Typography */
  --font-primary:    'Inter', sans-serif;
  --font-display:    'Rajdhani', sans-serif;
  --font-score:      'Bebas Neue', sans-serif;

  /* Spacing */
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       16px;
  --radius-xl:       24px;

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md:       0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:       0 10px 25px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.10);
  --shadow-red:      0 4px 20px rgba(215,25,32,0.30);
  --shadow-blue:     0 4px 20px rgba(0,61,165,0.30);

  /* Gradient */
  --gradient-hero:   linear-gradient(135deg, #003DA5 0%, #002D7A 50%, #A8131A 100%);
  --gradient-red:    linear-gradient(135deg, var(--red-dark) 0%, var(--red-light) 100%);
  --gradient-blue:   linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  --gradient-card:   linear-gradient(135deg, #1a1a2e 0%, var(--dark-secondary) 100%);
}

/* =====================================================
 * RESET & BASE
 * ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: #F0F4F8;
  color: var(--dark-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* =====================================================
 * SIDEBAR LAYOUT
 * ===================================================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--dark-primary);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, var(--blue-dark) 0%, #001A5E 50%, var(--red-dark) 100%);
}

.sidebar-brand .brand-logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-red);
}

.sidebar-brand .brand-logo i {
  font-size: 24px;
  color: white;
}

.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.sidebar-brand .brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.sidebar-menu {
  padding: 16px 0;
  flex: 1;
}

.menu-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  padding: 8px 20px 4px;
  margin-top: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-menu a:hover {
  color: white;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--red-primary);
}

.sidebar-menu a.active {
  color: white;
  background: linear-gradient(90deg, rgba(215,25,32,0.15) 0%, transparent 100%);
  border-left-color: var(--red-primary);
}

.sidebar-menu a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
}

.sidebar-footer .user-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.sidebar-footer .user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: capitalize;
}

/* =====================================================
 * MAIN CONTENT AREA
 * ===================================================== */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: white;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  gap: 16px;
}

.topbar .page-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-primary);
  flex: 1;
}

.topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--dark-primary);
  cursor: pointer;
  padding: 4px;
}

.content-area {
  padding: 24px;
  flex: 1;
}

/* =====================================================
 * CARDS
 * ===================================================== */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: white;
  overflow: hidden;
}

.card-header {
  background: white;
  border-bottom: 1px solid var(--gray-border);
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark-primary);
}

.card-body {
  padding: 20px;
}

/* Stat Cards */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card.red    { background: var(--gradient-red); }
.stat-card.blue   { background: var(--gradient-blue); }
.stat-card.dark   { background: var(--gradient-card); }
.stat-card.green  { background: linear-gradient(135deg, #047857, #10B981); }
.stat-card.orange { background: linear-gradient(135deg, #B45309, #F59E0B); }

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card .stat-info {
  width: 100%;
}

.stat-card .stat-info .stat-value {
  font-family: var(--font-score);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.stat-card .stat-info .stat-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* =====================================================
 * BUTTONS
 * ===================================================== */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-red {
  background: var(--gradient-red);
  color: white;
  border: none;
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background: var(--red-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(215,25,32,0.40);
}

.btn-blue {
  background: var(--gradient-blue);
  color: white;
  border: none;
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  background: var(--blue-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0,61,165,0.40);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 16px 36px;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 1px;
}

/* =====================================================
 * TABLES
 * ===================================================== */
.table-modern {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-modern thead th {
  background: var(--dark-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  border: none;
}

.table-modern thead th:first-child { border-radius: 10px 0 0 0; }
.table-modern thead th:last-child  { border-radius: 0 10px 0 0; }

.table-modern tbody tr {
  transition: background 0.15s ease;
}

.table-modern tbody tr:hover {
  background: var(--blue-soft);
}

.table-modern tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-border);
  font-size: 14px;
  vertical-align: middle;
  color: var(--dark-primary);
}

/* =====================================================
 * BADGES
 * ===================================================== */
.badge-red   { background: var(--red-primary);  color: white; }
.badge-blue  { background: var(--blue-primary); color: white; }
.badge-corner-red  { background: var(--red-primary);  color: white; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-corner-blue { background: var(--blue-primary); color: white; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* =====================================================
 * FORMS
 * ===================================================== */
.form-control, .form-select {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--dark-primary);
  background-color: white;
}

.form-control:focus, .form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0,61,165,0.12);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--dark-secondary);
  margin-bottom: 6px;
}

/* Score Input Special */
.score-input {
  font-family: var(--font-score);
  font-size: 28px;
  text-align: center;
  padding: 12px;
  border: 2px solid var(--gray-border);
  border-radius: var(--radius-md);
  width: 100%;
  color: var(--blue-primary);
  transition: all 0.2s;
}

.score-input:focus {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(215,25,32,0.12);
}

.score-input.invalid {
  border-color: var(--danger);
  color: var(--danger);
}

.score-input.valid {
  border-color: var(--success);
  color: var(--success);
}

/* =====================================================
 * TIMER
 * ===================================================== */
.timer-display {
  font-family: var(--font-score);
  font-size: 80px;
  text-align: center;
  line-height: 1;
  letter-spacing: 4px;
  padding: 20px;
  border-radius: var(--radius-xl);
  transition: all 0.5s ease;
  background: white;
  color: var(--dark-primary);
  border: 3px solid var(--gray-border);
  box-shadow: var(--shadow-md);
}

.timer-display.timer-normal  { color: var(--dark-primary); border-color: var(--gray-border); }
.timer-display.timer-warning { color: #D97706; border-color: #F59E0B; animation: pulse-warning 1s infinite; }
.timer-display.timer-ideal   { color: #059669; border-color: #10B981; }
.timer-display.timer-over    { color: var(--red-primary); border-color: var(--red-primary); animation: pulse-danger 0.7s infinite; }

@keyframes pulse-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%       { box-shadow: 0 0 0 10px rgba(245,158,11,0.2); }
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215,25,32,0); }
  50%       { box-shadow: 0 0 0 15px rgba(215,25,32,0.3); }
}

.timer-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.timer-label.normal  { background: var(--gray-soft); color: var(--gray-medium); }
.timer-label.warning { background: rgba(245,158,11,0.15); color: #D97706; }
.timer-label.ideal   { background: rgba(16,185,129,0.15); color: #059669; }
.timer-label.over    { background: rgba(215,25,32,0.12); color: var(--red-primary); }

/* =====================================================
 * STATUS INDICATORS
 * ===================================================== */
.judge-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.judge-status-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  border: 2px solid var(--gray-border);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.judge-status-item.submitted-both {
  border-color: var(--success);
  background: rgba(16,185,129,0.06);
}

.judge-status-item.partial {
  border-color: var(--warning);
  background: rgba(245,158,11,0.06);
}

.judge-status-item .judge-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-primary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.status-dot.submitted { background: var(--success); }
.status-dot.pending   { background: var(--gray-medium); }

/* Score submission status pills */
.score-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.score-type-badge.technical.submitted { background: rgba(0,61,165,0.10); color: var(--blue-primary); border: 1px solid var(--blue-primary); }
.score-type-badge.technical.pending   { background: rgba(0,0,0,0.04); color: var(--gray-medium); border: 1px dashed var(--gray-border); }
.score-type-badge.show.submitted      { background: rgba(215,25,32,0.08); color: var(--red-primary); border: 1px solid var(--red-primary); }
.score-type-badge.show.pending        { background: rgba(0,0,0,0.04); color: var(--gray-medium); border: 1px dashed var(--gray-border); }

/* =====================================================
 * ANIMATIONS
 * ===================================================== */
.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

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

.score-reveal {
  animation: scoreReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scoreReveal {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* =====================================================
 * LOGIN PAGE - TEMA PUTIH BERSIH
 * ===================================================== */
.login-page {
  min-height: 100vh;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Top stripe */
.login-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-primary) 0%, var(--blue-light) 33%, var(--red-dark) 66%, var(--red-primary) 100%);
  z-index: 2;
}

/* Background decoration */
.login-page::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,61,165,0.07) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
}

.login-page .bg-circle-red {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,25,32,0.06) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.login-card {
  background: white;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Logo row - PBJI + Komite Wasit */
.login-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.login-logos .logo-wrap {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.20);
  border: 2px solid rgba(255,255,255,0.9);
  flex-shrink: 0;
}

.login-logos .logo-wrap img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.login-logos .logo-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.35);
}

/* Header stripe inside card */
.login-card-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--red-dark) 100%);
  margin: -40px -40px 28px -40px;
  padding: 24px 40px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  text-align: center;
}

.login-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Form fields on white background */
.login-card .form-control {
  background: white;
  border-color: var(--gray-border);
  color: var(--dark-primary);
  padding: 12px 16px;
  border: 1.5px solid #D1D5DB;
}

.login-card .form-control::placeholder { color: var(--gray-medium); }
.login-card .form-control:focus {
  background: white;
  border-color: var(--blue-primary);
  color: var(--dark-primary);
  box-shadow: 0 0 0 3px rgba(0,61,165,0.12);
}

.login-card .form-label {
  color: var(--dark-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.login-card .input-group-text {
  background: var(--gray-soft);
  border-color: #D1D5DB;
  color: var(--gray-medium);
}

.btn-login {
  width: 100%;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-blue);
  text-transform: uppercase;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(215,25,32,0.40);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--gray-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Demo accounts hints - light theme */
.demo-accounts-hint {
  margin-top: 20px;
  padding: 14px;
  background: var(--gray-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
}

.demo-accounts-hint .hint-label {
  font-size: 10px;
  color: var(--gray-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.demo-btn {
  background: white;
  border: 1.5px solid var(--gray-border);
  border-radius: 8px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--dark-primary);
  font-size: 11px;
  font-family: var(--font-primary);
}

.demo-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue-primary);
}

/* =====================================================
 * CORNER SUDUT STYLING
 * ===================================================== */
.corner-red {
  background: var(--gradient-red);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
}

.corner-blue {
  background: var(--gradient-blue);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
}

/* =====================================================
 * ALERTS & BADGES (Extended)
 * ===================================================== */
.alert {
  border-radius: var(--radius-md);
  font-size: 14px;
}

/* =====================================================
 * OPERATOR DASHBOARD SPECIFIC
 * ===================================================== */
.competition-info-bar {
  background: white;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.competition-info-bar .comp-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-primary);
}

.competition-info-bar .comp-meta {
  font-size: 12px;
  color: var(--gray-medium);
}

/* =====================================================
 * JUDGE INTERFACE
 * ===================================================== */
.judge-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--red-dark));
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.score-category-card {
  background: white;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.score-category-card:hover {
  box-shadow: var(--shadow-md);
}

.score-category-card.technical { border-top: 3px solid var(--blue-primary); }
.score-category-card.show      { border-top: 3px solid var(--red-primary); }

/* =====================================================
 * RESPONSIVE
 * ===================================================== */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .topbar-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 28px 20px;
  }
  .login-card-header {
    margin: -28px -20px 24px -20px;
    padding: 20px;
  }
  .login-logos img {
    height: 50px;
  }
}

/* =====================================================
 * SCORE TOTAL BOX (JUDGE INTERFACE)
 * ===================================================== */
.score-total-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.score-total-box.technical {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--dark-primary) 100%);
  border: 1px solid rgba(26, 87, 196, 0.3);
}

.score-total-box.show {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--dark-primary) 100%);
  border: 1px solid rgba(215, 25, 32, 0.3);
}

.score-total-box .total-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.score-total-box .total-value {
  font-family: var(--font-score);
  font-size: 64px;
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.score-total-box.technical .total-value { color: #6366F1; text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
.score-total-box.show .total-value { color: #FF4D4D; text-shadow: 0 0 20px rgba(255, 77, 77, 0.5); }

.score-total-box .total-sub {
  font-size: 11px;
  opacity: 0.5;
  font-weight: 500;
}
