/* Body Background */
body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: url('Nisargamitra Website bg.jpg') no-repeat center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  font-family: Arial, sans-serif !important;
  min-height: 100vh !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* Responsive Table Container */
#winnerTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  min-width: 500px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: 1.5px solid #a5d6a7; /* Add outer border */
}

#winnerTable th, #winnerTable td {
  border: 1px solid #bdbdbd; /* Add cell borders */
  padding: 12px 8px;
  text-align: left;
  background-clip: padding-box;
}

#winnerTable thead th {
  background-color: #a5d6a7;
  color: #1b5e20;
  border-bottom: 2.5px solid #388e3c; /* Thicker bottom border for header */
}

/* Zebra striping */
#winnerTable tbody tr:nth-child(even) {
  background-color: #f1f8e9;
}

/* Row hover */
#winnerTable tbody tr:hover {
  background-color: #dcedc8;
  transition: background 0.2s;
}

/* Sortable headers */
#winnerTable th {
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

#winnerTable th:hover {
  color: #388e3c;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
  background: #fff;
  margin: 0 auto;
  max-width: 1200px;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .table-responsive {
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(44, 62, 80, 0.12);
    margin: 10px;
    max-width: 900px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #a5d6a7 #f1f8e9;
    touch-action: pan-x;
  }
  
  #winnerTable {
    min-width: 100%;
    max-width: 900px;
    font-size: 0.85rem;
  }
  
  #winnerTable th, #winnerTable td {
    padding: 10px 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    min-width: 80px;
  }
  
  /* Remove button effects on mobile */
  #winnerTable tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
  }
  
  #winnerTable tbody tr:active {
    background-color: #c8e6c9 !important;
  }
  
  /* Remove transform effects from buttons */
  .clear-btn:hover,
  .filter-btn:hover,
  .filter-btn.active {
    transform: none;
  }
  
  .clear-btn:active,
  .filter-btn:active {
    transform: none;
  }
  
  /* Custom scrollbar for webkit browsers */
  .table-responsive::-webkit-scrollbar {
    height: 8px;
  }
  
  .table-responsive::-webkit-scrollbar-track {
    background: #f1f8e9;
    border-radius: 4px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb {
    background: #a5d6a7;
    border-radius: 4px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #81c784;
  }
  
  /* Mobile-optimized headers */
  #winnerTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #a5d6a7;
    padding: 12px 8px;
    font-weight: bold;
  }
  
  /* Enhanced sort indicators */
  #winnerTable th::after {
    content: " ↕";
    font-size: 0.9em;
    opacity: 0.8;
    margin-left: 4px;
  }
  
  #winnerTable th:hover::after {
    content: " ↑";
    opacity: 1;
  }
  
  /* Mobile search improvements */
  .search-filter-section {
    padding: 15px 10px;
  }
  
  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
  }
  
  .filter-buttons {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 80px;
    touch-action: manipulation;
  }
}

@media (max-width: 600px) {
  #winnerTable th, #winnerTable td {
    padding: 8px 6px;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  /* Optimized column widths for better mobile fit */
  #winnerTable th:nth-child(1), #winnerTable td:nth-child(1) { /* Group */
    min-width: 70px;
    max-width: 90px;
  }
  
  #winnerTable th:nth-child(2), #winnerTable td:nth-child(2) { /* Prize */
    min-width: 80px;
    max-width: 100px;
  }
  
  #winnerTable th:nth-child(3), #winnerTable td:nth-child(3) { /* Names */
    min-width: 140px;
    max-width: 180px;
  }
  
  #winnerTable th:nth-child(4), #winnerTable td:nth-child(4) { /* Event */
    min-width: 90px;
    max-width: 120px;
  }
  
  #winnerTable th:nth-child(5), #winnerTable td:nth-child(5) { /* School */
    min-width: 120px;
    max-width: 160px;
  }
  
  #winnerTable th:nth-child(6), #winnerTable td:nth-child(6) { /* City */
    min-width: 70px;
    max-width: 90px;
  }
  
  #winnerTable th:nth-child(7), #winnerTable td:nth-child(7) { /* State */
    min-width: 90px;
    max-width: 110px;
  }
  
  /* Enhanced touch feedback */
  #winnerTable tbody tr:active {
    background-color: #b2dfdb !important;
  }
  
  /* Mobile-optimized search */
  .search-input {
    font-size: 16px;
    padding: 10px 14px;
    width: 100%;
    max-width: 250px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .table-responsive {
    margin: 8px;
    border-radius: 6px;
    max-width: 800px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #winnerTable th, #winnerTable td {
    padding: 6px 4px;
    font-size: 0.75rem;
    line-height: 1.3;
    min-width: 60px;
  }
  
  /* Optimized for very small screens */
  #winnerTable th:nth-child(1), #winnerTable td:nth-child(1) { /* Group */
    min-width: 60px;
    max-width: 80px;
  }
  
  #winnerTable th:nth-child(2), #winnerTable td:nth-child(2) { /* Prize */
    min-width: 70px;
    max-width: 90px;
  }
  
  #winnerTable th:nth-child(3), #winnerTable td:nth-child(3) { /* Names */
    min-width: 120px;
    max-width: 150px;
  }
  
  #winnerTable th:nth-child(4), #winnerTable td:nth-child(4) { /* Event */
    min-width: 80px;
    max-width: 100px;
  }
  
  #winnerTable th:nth-child(5), #winnerTable td:nth-child(5) { /* School */
    min-width: 100px;
    max-width: 130px;
  }
  
  #winnerTable th:nth-child(6), #winnerTable td:nth-child(6) { /* City */
    min-width: 60px;
    max-width: 80px;
  }
  
  #winnerTable th:nth-child(7), #winnerTable td:nth-child(7) { /* State */
    min-width: 80px;
    max-width: 100px;
  }
  
  /* Enhanced mobile interactions */
  #winnerTable tbody tr {
    cursor: pointer;
    transition: background-color 0.15s ease;
  }
  
  #winnerTable tbody tr:active {
    background-color: #a5d6a7 !important;
  }
  
  /* Mobile-optimized search and filters */
  .search-filter-section {
    padding: 12px 8px;
  }
  
  .search-input {
    font-size: 16px;
    padding: 8px 12px;
    width: 100%;
    max-width: 200px;
  }
  
  .clear-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .filter-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 60px;
  }
  
  /* Improved scrollbar for small screens */
  .table-responsive::-webkit-scrollbar {
    height: 6px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb {
    background: #81c784;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  #winnerTable th {
    padding: 10px 8px; /* Larger touch targets */
  }
  
  #winnerTable tbody tr {
    transition: background 0.1s;
  }
  
  #winnerTable tbody tr:active {
    background-color: #c8e6c9;
  }
}

/* Enhanced visual feedback for mobile */
@media (max-width: 768px) {
  #winnerTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #a5d6a7;
  }
  
  /* Add visual indicator for sortable columns */
  #winnerTable th::after {
    content: " ⬍";
    font-size: 0.8em;
    opacity: 0.7;
  }
  
  #winnerTable th:hover::after {
    opacity: 1;
  }
}

/* Loading and interaction states */
.table-responsive {
  transition: all 0.3s ease;
}

.table-responsive:focus-within {
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  #winnerTable tbody tr,
  #winnerTable th {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #winnerTable th, #winnerTable td {
    border: 2px solid #000;
  }
  
  #winnerTable thead th {
    background-color: #000;
    color: #fff;
  }
}

/* Background wrapper styles */
.Background.wrapper {
  background: transparent !important;
  min-height: 100vh;
  width: 100%;
}

/* Mobile background optimization */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: cover;
  }
}

@media (max-width: 480px) {
  body {
    background-size: cover;
    background-position: center;
  }
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
  /* Improve header spacing */
  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }
  
  p {
    font-size: 0.8rem !important;
    margin-bottom: 15px !important;
  }
  
  /* Add swipe gesture support */
  .table-responsive {
    touch-action: pan-x;
  }
}

@media (max-width: 480px) {
  /* Even more compact for very small screens */
  h2 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
  }
  
  p {
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
  }
  
  /* Reduce container padding */
  div[style*="padding: 20px"] {
    padding: 15px 10px !important;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .table-responsive {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  #winnerTable thead th {
    position: sticky;
    top: 0;
  }
}

/* Print styles for better printing */
@media print {
  .table-responsive {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  #winnerTable th, #winnerTable td {
    border: 1px solid #ccc;
  }
}

/* YouTube Video Section Styles */
.video-section {
  margin: 30px auto;
  max-width: 1200px;
  width: 95%;
  text-align: center;
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42.19%; /* Reduced from 56.25% to make it shorter (16:9 aspect ratio reduced by 25%) */
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
}

.video-container::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #2e7d32;
  z-index: 3;
  opacity: 0.9;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-container:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.video-container:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
  color: #388e3c;
  opacity: 1;
}

.video-container:active {
  transform: translateY(-4px) scale(0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-caption {
  margin-bottom: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  border-radius: 12px;
  border: 2px solid #a5d6a7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.video-caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.video-caption:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #81c784;
}

.video-caption:hover::before {
  left: 100%;
}

.video-heading {
  color: #2e7d32;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
  transition: color 0.3s ease;
  padding: 20px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  border-radius: 12px;
  border: 2px solid #a5d6a7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.video-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.video-heading:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #81c784;
  color: #1b5e20;
}

.video-heading:hover::before {
  left: 100%;
}

.video-description {
  color: #388e3c;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 25px 0;
  text-align: center;
  transition: color 0.3s ease;
  padding: 15px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  border-radius: 10px;
  border: 1px solid #a5d6a7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.video-description:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #81c784;
  color: #2e7d32;
}

.video-caption p {
  color: #388e3c;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.video-caption:hover p {
  color: #2e7d32;
}

/* Mobile responsive video styles */
@media (max-width: 768px) {
  .video-section {
    margin: 20px auto;
    padding: 0 10px;
    width: 98%;
    max-width: 900px;
  }
  
  .video-container {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
  
  .video-container::before {
    font-size: 2.5rem;
  }
  
  .video-container:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  
  .video-container:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
  }
  
  .video-caption {
    padding: 18px;
    border-radius: 8px;
    margin-top: 15px;
  }
  
  .video-caption:hover {
    transform: translateY(-1px);
  }
  
  .video-heading {
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding: 15px;
  }
  
  .video-description {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .video-section {
    margin: 15px auto;
    padding: 0 5px;
    width: 100%;
    max-width: 800px;
  }
  
  .video-container {
    border-radius: 6px;
  }
  
  .video-caption {
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
  }
  
  .video-heading {
    font-size: 1.3rem;
    margin-bottom: 8px;
    padding: 12px;
  }
  
  .video-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 10px;
  }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
  .video-container {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .video-container:hover {
    transform: none;
  }
  
  .video-container:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .video-container::before {
    opacity: 0.8;
  }
  
  .video-container:active::before {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
  }
  
  .video-caption {
    transition: transform 0.2s ease;
  }
  
  .video-caption:active {
    transform: scale(0.98);
  }
}

/* Loading state for video */
.video-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #a5d6a7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.video-container iframe {
  z-index: 2;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hide loading spinner when iframe is loaded */
.video-container iframe[src*="youtube"] {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Focus states for accessibility */
.video-container:focus {
  outline: 3px solid #4caf50;
  outline-offset: 2px;
}

.video-caption:focus {
  outline: 2px solid #4caf50;
  outline-offset: 1px;
}

/* Loading animation for video */
.video-container.loading::before {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Winner List Title Styles */
.winner-list-title {
  color: #2e7d32;
  text-align: center;
  margin: 30px 0 20px 0;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  border-radius: 15px;
  border: 2px solid #a5d6a7;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.winner-list-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.winner-list-title:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.25);
  border-color: #4caf50;
  color: #1b5e20;
}

.winner-list-title:hover::before {
  left: 100%;
}

.winner-list-title:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

/* Search and Filter Section */
.search-filter-section {
  margin: 25px auto;
  max-width: 1200px;
  padding: 20px;
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  border-radius: 12px;
  border: 2px solid #a5d6a7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.search-box {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.search-input {
  padding: 12px 16px;
  border: 2px solid #a5d6a7;
  border-radius: 8px;
  font-size: 1rem;
  width: 300px;
  max-width: 100%;
  background: white;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  transform: translateY(-1px);
}

.clear-btn {
  padding: 12px 20px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

  /* Mobile optimizations */
  @media (max-width: 768px) {
    .search-filter-section {
      padding: 20px 15px;
    }
    
    .search-box {
      flex-direction: row !important;
      justify-content: center;
      align-items: center;
      gap: 8px;
      flex-wrap: nowrap;
    }
    
    .search-input {
      width: 200px;
      max-width: 60%;
      flex-shrink: 1;
    }
    
    .clear-btn {
      padding: 8px 12px;
      font-size: 0.85rem;
      min-width: 60px;
      flex-shrink: 0;
    }
    
    .filter-btn {
      padding: 8px 16px;
      font-size: 0.85rem;
    }
  
  /* Remove click/active effects on mobile */
  .clear-btn:active,
  .filter-btn:active {
    transform: none !important;
  }
  
  .search-input:focus {
    transform: none !important;
  }
  
  /* Remove focus outlines */
  .clear-btn:focus,
  .filter-btn:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  
  /* Fix clear button on mobile */
  .clear-btn:focus,
  .clear-btn:active,
  .clear-btn:active:focus {
    background-color: #4caf50 !important;
    color: white !important;
    border: none !important;
  }
  
  /* Fix filter button on mobile */
  .filter-btn:focus,
  .filter-btn:active,
  .filter-btn:active:focus {
    background-color: white !important;
    color: #2e7d32 !important;
    border: 2px solid #a5d6a7 !important;
  }
  
  /* Fix active filter button on mobile */
  .filter-btn.active:focus,
  .filter-btn.active:active,
  .filter-btn.active:active:focus {
    background-color: #4caf50 !important;
    color: white !important;
    border-color: #4caf50 !important;
  }
}

.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  color: #2e7d32;
  border: 2px solid #a5d6a7;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover {
  background: #f1f8e9;
  border-color: #4caf50;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Remove focus outlines globally */
.clear-btn:focus,
.filter-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Prevent browser default focus colors */
.clear-btn:focus-visible,
.filter-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Ensure active state overrides focus */
.clear-btn:active:focus,
.filter-btn:active:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Fix clear button background and color */
.clear-btn:focus,
.clear-btn:active,
.clear-btn:active:focus {
  background-color: #4caf50 !important;
  color: white !important;
  border: none !important;
}

/* Fix filter button background and color */
.filter-btn:focus,
.filter-btn:active,
.filter-btn:active:focus {
  background-color: white !important;
  color: #2e7d32 !important;
  border: 2px solid #a5d6a7 !important;
}

/* Fix active filter button */
.filter-btn.active:focus,
.filter-btn.active:active,
.filter-btn.active:active:focus {
  background-color: #4caf50 !important;
  color: white !important;
  border-color: #4caf50 !important;
}

/* Enhanced mobile experience */
@media (max-width: 480px) {
  .search-filter-section {
    padding: 15px 10px;
  }
  
  .search-box {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }
  
  .search-input {
    font-size: 16px;
    padding: 8px 10px;
    width: 150px;
    max-width: 55%;
    flex-shrink: 1;
  }
  
  .clear-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 50px;
    flex-shrink: 0;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: 60px;
  }
  
  /* Remove all click effects on small screens */
  .clear-btn:active,
  .filter-btn:active,
  .search-input:focus {
    transform: none !important;
  }
  
  /* Remove focus outlines on small screens */
  .clear-btn:focus,
  .filter-btn:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  
  /* Fix clear button on small screens */
  .clear-btn:focus,
  .clear-btn:active,
  .clear-btn:active:focus {
    background-color: #4caf50 !important;
    color: white !important;
    border: none !important;
  }
  
  /* Fix filter button on small screens */
  .filter-btn:focus,
  .filter-btn:active,
  .filter-btn:active:focus {
    background-color: white !important;
    color: #2e7d32 !important;
    border: 2px solid #a5d6a7 !important;
  }
  
  /* Fix active filter button on small screens */
  .filter-btn.active:focus,
  .filter-btn.active:active,
  .filter-btn.active:active:focus {
    background-color: #4caf50 !important;
    color: white !important;
    border-color: #4caf50 !important;
  }
}

/* Table Enhancements */
#winnerTable tbody tr {
  transition: all 0.3s ease;
}

#winnerTable tbody tr:hover {
  background-color: #e8f5e9 !important;
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#winnerTable tbody tr.highlight {
  background-color: #fff3cd !important;
  border-left: 4px solid #ffc107;
  animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
  0%, 100% { background-color: #fff3cd; }
  50% { background-color: #ffeaa7; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  background: white;
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 4px solid #4caf50;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: #4caf50;
}

.toast-info {
  border-left-color: #2196f3;
}

.toast-error {
  border-left-color: #f44336;
}

/* Mobile responsive title */
@media (max-width: 768px) {
  .winner-list-title {
    font-size: 1.6rem;
    margin: 25px auto 15px auto;
    padding: 15px;
    max-width: 350px;
    display: block;
    text-align: center;
  }
  
  .winner-list-title:hover {
    transform: translateY(-3px) scale(1.01);
  }
  
  .winner-list-title:active {
    transform: translateY(-1px) scale(1.005);
  }
}

@media (max-width: 480px) {
  .winner-list-title {
    font-size: 1.4rem;
    margin: 20px auto 12px auto;
    padding: 12px;
    max-width: 300px;
    display: block;
    text-align: center;
  }
  
  .winner-list-title:hover {
    transform: translateY(-2px) scale(1.005);
  }
  
  .winner-list-title:active {
    transform: translateY(-1px) scale(1.002);
  }
}
