:root {
  --bg: #0f1419;
  --bg-secondary: #1a1f2e;
  --navy: #0d1b2a;
  --gold: #ffd700;
  --gold-light: #ffe44d;
  --gold-dark: #d4a500;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;
  --border: #374151;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box; 
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--navy) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
}

/* Ensure body has a solid background that covers during scroll */
body {
    background-color: var(--bg) !important;
    background-image: none !important;
    position: relative;
    overflow-x: hidden;
}

/* Add a pseudo-element to ensure coverage */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    z-index: -1;
    pointer-events: none;
}

/* Optimize the main container */
.container {
    background-color: var(--bg);
    position: relative;
    z-index: 1;
}

/* Reduce repaints on scrollable content */
#chartsContainer, #tablesContainer, #teamStatsContent, #teamInfoContent {
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

/* Mobile navigation */
.mobile-nav {
  display: none; 
  position: relative;
}

.hamburger {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--gold);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 22px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.hamburger:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-color: var(--gold-light);
  transform: scale(1.05);
}

/* Mobile menu improvements */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
  z-index: 1000;
  padding: 70px 20px 40px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.mobile-menu.open {
  display: flex;
  animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-menu a:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  transform: translateX(8px);
}

/* Close button for mobile menu */
.mobile-menu-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  border: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow);
}

/* Add padding to the bottom of the menu to ensure last item is visible */
.mobile-menu::after {
  content: '';
  display: block;
  height: 30px;
  width: 100%;
  flex-shrink: 0;
}

/* Original navbar - hide on mobile */
.navbar {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0.95) 0%, rgba(26, 31, 46, 0.95) 100%);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Hide vertical scroll */
    white-space: nowrap; /* Prevent items from wrapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--gold) var(--navy); /* For Firefox */
}

.navbar::-webkit-scrollbar {
    height: 8px;
}

.navbar::-webkit-scrollbar-track {
    background: var(--navy);
    border-radius: 4px;
}

.navbar::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.navbar::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.navbar::before,
.navbar::after {
    content: '';
    position: sticky;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 991;
}

.navbar::before {
    left: 0;
    background: linear-gradient(90deg, var(--navy), transparent);
}

.navbar::after {
    right: 0;
    background: linear-gradient(90deg, transparent, var(--navy));
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  display: inline-block;
}

.navbar a:hover {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 28px;
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.6) 0%, rgba(15, 20, 25, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

h1, h2, h3 {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(20, 27, 40, 0.5) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.form-row:last-child {
  border-bottom: none;
}

.form-row label {
  flex: 1;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 18px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--navy) 100%);
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.btn:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn-green {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.btn-green:hover {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-color: var(--success);
}

.btn-red {
  border-color: var(--error);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.btn-red:hover {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  border-color: var(--error);
}

.btn-large {
  padding: 16px 24px;
  font-size: 16px;
  width: 100%;
}

.counter {
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
  border: 1px solid var(--accent-light);
  min-width: 48px;
  text-align: center;
  color: var(--accent-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  border: 1px solid var(--border);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-secondary) 100%);
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.table tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.3);
}

.table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.badge {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 44px;
  display: flex;
  align-items: center;
  background: rgba(107, 114, 128, 0.1);
  transition: var(--transition);
}

.badge:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

input[type="number"] {
  width: 120px;
  min-height: 44px;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text);
  transition: var(--transition);
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

input[type="text"],
select {
  min-height: 44px;
  font-size: 16px;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text);
}

input[type="password"]:focus,input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

input[type="text"]::placeholder {
  color: var(--text-muted);
}

.checkbox {
  transform: scale(1.5);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  accent-color: var(--gold);
}

footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.section-score {
  float: right;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: white;
  min-height: 44px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.score-row {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin: 24px 0;
}

.form-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.card canvas {
  max-width: 100%;
  border-radius: 10px;
}

.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 320px;
  box-shadow: var(--shadow);
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.notification.error {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
}

.notification.warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.notification.info {
  background: linear-gradient(135deg, var(--info) 0%, #0284c7 100%);
}

.notification button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-left: 16px;
  min-width: 44px;
  min-height: 44px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification button:hover {
  transform: scale(1.2);
}

#robotImage img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Collapsible sections */
.collapse-icon {
  margin-right: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.collapse-icon.collapsed {
  transform: rotate(-90deg);
}

/* Sticky submit button */
.sticky-submit {
  position: sticky;
  bottom: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--bg-secondary) 100%);
  padding: 12px;
  margin: 16px -28px -28px;
  border-top: 2px solid var(--gold);
  text-align: center;
  z-index: 100;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* Mobile number input */
.mobile-number-input {
  width: 100%;
  margin-bottom: 16px;
}

.number-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.number-controls .btn {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.number-controls input {
  width: 90px;
  text-align: center;
  font-size: 18px;
  padding: 10px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
  }

  .mobile-menu {
    padding-bottom: 100px;
  }

  .navbar {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .container {
    margin: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .card {
    padding: 14px;
    margin: 12px 0;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }

  .form-row label {
    margin-bottom: 6px;
    font-weight: 600;
    width: 100%;
  }

  .form-controls {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .score-row {
    flex-direction: column;
    gap: 12px;
  }

  .section-score {
    float: none;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn {
    padding: 14px 16px;
    font-size: 16px;
    width: 100%;
  }

  input[type="text"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px;
    padding: 14px;
    width: 100%;
    min-height: 48px;
  }

  .checkbox {
    transform: scale(1.8);
    margin-right: 12px;
  }

  .badge {
    padding: 14px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }

  .notification {
    left: 16px;
    right: 16px;
    min-width: auto;
    font-size: 14px;
    top: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .container {
    margin: 8px;
    padding: 12px;
  }

  .mobile-menu {
    gap: 8px;
    padding-top: 50px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mobile-menu a {
    padding: 12px;
    min-height: 44px;
    font-size: 14px;
  }

  .card {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }
}

/* Prevent zoom on iOS input focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .navbar a:hover {
    border-color: transparent;
  }
}

/* Ensure section headers are visible and properly styled */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-light);
  transition: var(--transition);
  user-select: none;
}

.section-header:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.collapse-icon {
  margin-right: 12px;
  font-size: 18px;
  transition: var(--transition);
  display: inline-block;
}

.collapse-icon.open {
  transform: rotate(0deg);
}

.collapse-icon.closed {
  transform: rotate(-90deg);
}

/* Make sure all form elements are visible */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-controls {
  width: 100%;
}

/* Ensure dropdowns are visible and properly sized */
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background-color: rgba(30, 41, 59, 0.5);
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

select:hover {
  border-color: var(--gold);
}

/* Make sure cards have proper spacing */
.card {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

@font-face {
  font-family: 'Starjedi';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Starjedi.ttf') format('truetype');
}

h1 {
  font-family: Starjedi, sans-serif;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.single-choice-with-image {
  margin-bottom: 1.5rem;
}

.choice-reference-image {
  max-width: 100%;
  max-height: 200px;
  display: block;
  margin: 0 auto 12px auto;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.choice-reference-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Scoring group styles */
.scoring-group {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-end;
}

.scoring-field {
  flex: 1;
  min-width: 0;
}

.scoring-field .form-row {
  margin-bottom: 0;
}

.scoring-field label {
  font-size: 0.9em;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  .scoring-group {
    gap: 8px;
  }

  .scoring-field .number-controls {
    flex-direction: column;
    gap: 8px;
  }

  .scoring-field .number-controls input {
    width: 100%;
    text-align: center;
  }

  .scoring-field .number-controls button {
    padding: 8px;
    min-width: 44px;
  }

  .scoring-field label {
    font-size: 0.85em;
  }
}

.mobile-number-input .number-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-number-input input {
  width: 70px;
  text-align: center;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.5);
  color: var(--text);
}

.mobile-number-input button {
  padding: 10px 14px;
  min-width: 44px;
}

/* Status indicators */
.success {
  color: var(--success);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  border-left: 4px solid var(--success);
}

.error {
  color: var(--error);
  background-color: rgba(239, 68, 68, 0.1);
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  border-left: 4px solid var(--error);
}

.warning {
  color: var(--warning);
  background-color: rgba(245, 158, 11, 0.1);
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  border-left: 4px solid var(--warning);
}

.info {
  color: var(--info);
  background-color: rgba(14, 165, 233, 0.1);
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  border-left: 4px solid var(--info);
}

.form-section {
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.3);
}

/* Announcements styles */
.announcements-container {
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 900px;
}

.announcements-container h2 {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
}

.announcement {
  margin-bottom: 1.8rem;
  padding: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(20, 27, 40, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

.announcement:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.announcement-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--gold-light);
  text-shadow: 1px 1px 5px rgb(198, 170, 13);
}

.announcement-description {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.announcement-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.2rem 0;
}

/* Checklist styles */
.checklist-container {
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 900px;
}

.checklist-container h2 {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
}

.checklist {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.5) 0%, rgba(15, 20, 25, 0.5) 100%);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.checklist-item {
  margin-bottom: 1.2rem;
  padding: 12px;
  border-bottom: 1px dashed var(--border);
  transition: var(--transition);
}

.checklist-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.checklist-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  user-select: none;
  transition: var(--transition);
}

.checklist-item label:hover {
  color: var(--gold-light);
}

.checklist-item input[type="checkbox"] {
  margin-right: 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checklist-item span {
  flex: 1;
}

.checklist-item input[type="checkbox"]:checked + span {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .announcements-container,
  .checklist-container {
    padding: 0;
  }

  .checklist {
    padding: 14px;
  }

  .announcement {
    padding: 14px;
  }
}
/* Add to your style.css */
.navbar .btn,
.mobile-menu .btn {
  margin: 6px;
  padding: 10px 14px;
  font-size: 14px;
}

.navbar .btn-red,
.mobile-menu .btn-red {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  color: white;
  border-color: var(--error);
}

.navbar .btn-red:hover,
.mobile-menu .btn-red:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.search-section {
  margin-bottom: 20px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(20, 27, 40, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.filter-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

.filter-stats {
  font-weight: 600;
  padding: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  text-align: center;
  margin-top: 12px;
  color: var(--accent-light);
}

.filter-stats span {
  color: var(--gold-light);
  font-weight: 700;
}

#filteredCountInfo {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-left: 10px;
}
/* Battery Tracking Styles */
.battery-visual {
  position: relative;
  width: 140px;
  height: 70px;
  border: 3px solid var(--gold);
  border-radius: 12px;
  margin: 24px auto;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(20, 27, 40, 0.5) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.battery-level {
  height: 100%;
  background: linear-gradient(90deg, var(--success) 0%, #05b6a6 100%);
  border-radius: 9px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 50%;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.battery-cap {
  position: absolute;
  right: -14px;
  top: 18px;
  width: 10px;
  height: 34px;
  background: linear-gradient(90deg, var(--gold) 0%, #ffe44d 100%);
  border-radius: 0 6px 6px 0;
}

.battery-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 16px;
}

.voltage-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.battery-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.battery-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(20, 27, 40, 0.4) 100%);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.battery-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.battery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.battery-id {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--accent-light);
}

.status-badge,
.condition-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.status-indicator,
.condition-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.status-charging {
  background: var(--info);
}

.status-cooldown-to-robot {
  background: #8b5cf6;
}

.status-ready-for-robot {
  background: var(--success);
}

.status-in-use {
  background: var(--error);
}

.status-cooldown-to-charge {
  background: var(--warning);
}

.status-ready-for-charging {
  background: var(--success);
}

.condition-good {
  background: var(--success);
}

.condition-fair {
  background: var(--warning);
}

.condition-bad {
  background: var(--error);
}

.battery-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.stat-item {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stat-value {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 4px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85em;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-small:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-color: var(--accent-light);
  color: white;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.logs-table th,
.logs-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.logs-table th {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-secondary) 100%);
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 12px;
}

.logs-table tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.3);
}

.logs-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.battery-id-input.scan-animation {
  animation: scan-pulse 0.6s ease-in-out;
}

@keyframes scan-pulse {
  0% {
    background-color: rgba(30, 41, 59, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }

  50% {
    background-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }

  100% {
    background-color: rgba(30, 41, 59, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }
}

.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow);
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.notification-error {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
}

.notification-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
}

.notification-info {
  background: linear-gradient(135deg, var(--info) 0%, #0284c7 100%);
}

@media (max-width: 768px) {
  .voltage-inputs {
    grid-template-columns: 1fr;
  }

  .battery-inventory {
    grid-template-columns: 1fr;
  }

  .battery-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Notification animation styles */
.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 320px;
  box-shadow: var(--shadow);
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-left: 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification button:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.notification-info {
  background: linear-gradient(135deg, var(--info) 0%, #0284c7 100%);
}

.notification-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.notification-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.notification-error {
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
}

/* Table Styles */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

table.table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--navy) 100%);
  min-width: 600px;
}

table.table th {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2847 100%);
  color: var(--gold);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gold-dark);
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

table.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

table.table tr {
  transition: background-color 0.2s ease;
}

table.table tbody tr:hover {
  background-color: rgba(255, 215, 0, 0.05);
}

table.table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  table.table {
    font-size: 14px;
  }
  
  table.table th,
  table.table td {
    padding: 10px 12px;
  }
}
/* Mobile menu improvements */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
  z-index: 1000;
  padding: 80px 20px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}

/* Remove old animation keyframes if they conflict */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure mobile menu links are easily tappable */
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
  user-select: none;
}

.mobile-menu a:active {
  transform: scale(0.98);
  background: rgba(255, 215, 0, 0.15);
}

/* Make close button more touch-friendly */
.mobile-menu-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
  border: none;
  border-radius: 50%;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: rgba(239, 68, 68, 0.3);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  body.menu-open {
    position: fixed;
    overflow: hidden;
    height: 100%;
    width: 100%;
  }
  
  .mobile-menu {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Active link styling */
.navbar a.active,
.mobile-menu a.active {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-light);
}

/* Hamburger button improvements */
.hamburger {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--gold);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 22px;
  min-width: 52px;
  min-height: 52px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
}

.hamburger:active {
  transform: scale(0.95);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2196F3;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    position: relative;
    overflow: hidden;
    margin: 5px 0;
}

.progress-bar.small {
    height: 10px;
}

.progress-fill {
    background: #4CAF50;
    height: 100%;
    transition: width 0.3s ease;
    min-width: 20px;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 2px white;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-match {
    background: #4CAF50;
    color: white;
}

.badge-pit {
    background: #2196F3;
    color: white;
}

.badge-event {
    background: #FF9800;
    color: white;
}

.badge-team {
    background: #9C27B0;
    color: white;
}

.badge-pending {
    background: #FFC107;
    color: black;
}

.badge-in_progress {
    background: #2196F3;
    color: white;
}

.badge-completed {
    background: #4CAF50;
    color: white;
}

.badge-cancelled {
    background: #F44336;
    color: white;
}

/* Priority Indicators */
.priority-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.priority-green {
    background: #4CAF50;
}

.priority-orange {
    background: #FF9800;
}

.priority-red {
    background: #F44336;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f5f5f5;
    opacity: 0.8;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* Assignment Status Row Coloring */
.status-pending {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.status-in_progress {
    background-color: rgba(33, 150, 243, 0.1) !important;
}

.status-completed {
    background-color: rgba(76, 175, 80, 0.1) !important;
}

.status-cancelled {
    background-color: rgba(244, 67, 54, 0.1) !important;
}

/* Assignment List Items */
.assignment-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.assignment-item {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
    transition: all 0.2s;
}

.assignment-item:hover {
    background: #e8f5e8;
    transform: translateX(2px);
}

.assignment-item.priority {
    border-left-color: #F44336;
    background: #ffebee;
}

.assignment-item.priority:hover {
    background: #ffcdd2;
}

.assignment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.assignment-item-body {
    font-size: 12px;
    color: #666;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 80px;
}

.action-btn:hover {
    border-color: #2196F3;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2);
}

.action-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.action-text {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #F44336;
}

/* Assignment Details */
.assignment-details .detail-row {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.assignment-details .detail-row:last-child {
    border-bottom: none;
}

.completion-item {
    background: #f5f5f5;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

/* Team Links */
.team-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.team-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.filter-controls select,
.filter-controls input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Preview Items */
.preview-item {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px dashed #2196F3;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 4px;
    animation: slideIn 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select,
    .filter-controls input {
        width: 100%;
    }
}