:root {
  --bg-color: #f8f9fa;
  --primary: rgba(32, 77, 47, 1);
  --secondary: rgb(230, 182, 53);
  --Neutral-Accent: #64748b;
  --Accent-color: rgba(230, 182, 53, 0.8);
  --light-accent: #e2e8f0;
  --font: "Inter", serif;
  --logo-font: "Bebas Neue", serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--bg-color);
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header img{
    width: 200px;
    height: 150px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

}

/* .header h1 {
  font-family: var(--logo-font);
  font-size: 2.5rem;
  text-align: center;
  letter-spacing: 2px;
}

.header p {
  text-align: center;
  opacity: 0.9;
  margin-top: 0.5rem;
} */

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--light-accent);
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--Neutral-Accent);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
  position: relative;
}

.tab-button.active {
  color: var(--primary);
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary);
}

.tab-button:hover:not(.active) {
  background: var(--light-accent);
  color: var(--primary);
}

.search-container {
  margin-bottom: 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--light-accent);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(230, 182, 53, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--Neutral-Accent);
}

.table-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-accent);
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

tr:hover {
  background-color: rgba(230, 182, 53, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.1rem;
  color: var(--Neutral-Accent);
}

.loading i {
  margin-right: 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error {
  background: #fee2e2;
  color: #dc2626;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 1rem 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--Neutral-Accent);
  margin-top: 0.5rem;
}

.media-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.media-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--Neutral-Accent);
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .tabs {
    flex-direction: column;
    gap: 0;
  }

  .tab-button {
    border-radius: 0;
    border-bottom: 1px solid var(--light-accent);
  }

  .tab-button.active::after {
    display: none;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
