* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  min-height: 100vh;
}

/* Admin Container */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.sidebar .logo i {
  font-size: 2rem;
  color: #e91e63;
  margin-bottom: 0.5rem;
}

.sidebar .logo h2 {
  color: #ffffff;
  font-size: 1.2rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  border-left-color: #e91e63;
}

.nav-item.logout {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.logout:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border-left-color: #f44336;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h1 {
  font-size: 2rem;
  color: #ffffff;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
}

.user-info i {
  font-size: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stat-card.live {
  border-color: #ff4444;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(233, 30, 99, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #e91e63;
}

.stat-card.live .stat-icon {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.stat-info h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.stat-info p {
  color: #ccc;
  font-size: 0.9rem;
}

/* Content Section */
.content-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  color: #ffffff;
  font-size: 1.3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-primary {
  background: #e91e63;
  color: white;
}

.btn-primary:hover {
  background: #c2185b;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 0.2rem;
}

.btn-icon:hover {
  background: #e91e63;
  color: white;
}

.btn-icon.delete:hover {
  background: #f44336;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-success {
  background: #4caf50;
  color: white;
}

.btn-success:hover {
  background: #45a049;
  transform: translateY(-1px);
}

/* Table */
.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  font-weight: 600;
}

.admin-table td {
  color: #ccc;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Status Badge */
.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-scheduled {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-live {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.status-finished {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

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

.login-header i {
  font-size: 3rem;
  color: #e91e63;
  margin-bottom: 1rem;
}

.login-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #ccc;
  font-size: 0.9rem;
}

.login-form {
  margin-bottom: 1.5rem;
}

.admin-form {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.login-footer {
  text-align: center;
}

.login-footer a {
  color: #ccc;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.login-footer a:hover {
  color: #e91e63;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 1rem 0;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 1rem;
  }

  .nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .nav-item:hover,
  .nav-item.active {
    border-left: none;
    border-bottom-color: #e91e63;
  }

  .main-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
  }

  .import-card {
    flex-direction: column;
    text-align: center;
  }

  .import-info {
    margin-bottom: 1rem;
  }
}

.badge {
  padding: 0.2rem 0.6rem;
  background: rgba(233, 30, 99, 0.2);
  color: #e91e63;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item strong {
  color: #e91e63;
}

/* Import Section */
.import-section {
  margin-bottom: 1rem;
}

.import-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  gap: 1rem;
}

.import-info h3 {
  color: #4caf50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.import-info p {
  color: #ccc;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.text-muted {
  color: #888;
  font-size: 0.8rem;
}
