/* ================================
   ROOT VARIABLES
================================ */
:root {
  --primary: #0B8F2D ;
  --secondary: #03a10b;
  --primary2:rgb(34, 116, 23);
  --accent: #4cc9f0;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;

  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-800: #343a40;
  --gray-900: #212529;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  color-scheme: light dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: var(--dark);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
  color: #eaeaea;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================
   LAYOUT
================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 1.5rem 0;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  max-width: 700px;
  margin: auto;
  color: var(--gray-800);
}

body.dark-mode p {
  color: var(--gray-300);
}

/* ================================
   LINKS & FOCUS
================================ */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ================================
   CONTROLS
================================ */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

body.dark-mode .controls {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* ================================
   BUTTONS
================================ */
button,
a.action-btn,
a.action-btn1,
a.action-btn2 {
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.action-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-btn1 {
  background: linear-gradient(135deg, var(--success), #098b25);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: inline-block;
}

.action-btn2 {
  background: linear-gradient(135deg, var(--accent), #0a65a1);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 2rem;
  display: block;
  box-shadow: var(--shadow-lg);
}



/* ================================
   COUNTDOWN
================================ */
.countdown-container {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255,255,255,0.15);
  padding: 1rem;
  border-radius: var(--radius-md);
  min-width: 80px;
}

.countdown-item span:first-child {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ================================
   TABLE
================================ */
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

body.dark-mode .table-container {
  background: rgba(255,255,255,0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

tbody tr:hover {
  background: rgba(67,97,238,0.05);
}

/* ================================
   STATS
================================ */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

body.dark-mode .stat-card {
  background: rgba(255,255,255,0.05);
}

/* ================================
   NOTIFICATION
================================ */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: none;
  z-index: 1000;
}

/* ================================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .countdown-item {
    min-width: 70px;
  }

  table {
    font-size: 0.85rem;
  }
}
