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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  color: #1a1a2e;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin-top: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.header .subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Navigation */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s;
  color: #6b7280;
}

.tab-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.tab-btn.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
  background: #f9fafb;
  color: #1a1a2e;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
  background: #ffffff;
}

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

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.flex-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #f9fafb;
  color: #1a1a2e;
  transition: all 0.2s;
}

.flex-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
  background: #ffffff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #dc2626;
  color: #ffffff;
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: #ffffff;
  color: #dc2626;
  border: 1.5px solid #dc2626;
}

.btn-secondary:hover {
  background: #fef2f2;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background: #059669;
}

.btn-block {
  width: 100%;
  display: block;
  margin-bottom: 10px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 6px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.06);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
}

.stat-card .stat-label {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
}

/* Sections */
.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f3f4f6;
}

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

table th,
table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tr:hover {
  background: #fef2f2;
}

table tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-option-a {
  background: #eff6ff;
  color: #1e40af;
}

.badge-option-b {
  background: #ecfdf5;
  color: #065f46;
}

.badge-option-c {
  background: #fef2f2;
  color: #991b1b;
}

/* Pending Items */
.pending-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pending-item .pending-info {
  flex: 1;
  font-size: 0.85rem;
}

.pending-item .pending-info strong {
  color: #1a1a2e;
}

.pending-item .pending-actions {
  display: flex;
  gap: 8px;
}

/* YouTube Grid */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.youtube-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.youtube-thumb {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #1a1a2e;
}

.youtube-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-info {
  padding: 10px;
  text-align: center;
}

/* Announcements List */
.announcement-list-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f59e0b;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.announcement-list-item .ann-text {
  flex: 1;
  font-size: 0.85rem;
  color: #374151;
}

.announcement-list-item .ann-date {
  font-size: 0.7rem;
  color: #9ca3af;
  white-space: nowrap;
}

/* Footer */
.footer-text {
  text-align: center;
  margin-top: 24px;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Loading & Empty */
.loading-text,
.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Hidden */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    padding: 22px;
  }
  
  .header h1 {
    font-size: 1.4rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-tabs {
    width: 100%;
  }
  
  .tab-btn {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    padding: 7px 10px;
  }
  
  .pending-item {
    flex-direction: column;
    text-align: center;
  }
  
  .form-row {
    flex-direction: column;
  }
}

/* Additional styles for admin panel */
.search-input {
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #f9fafb;
}

.search-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.85rem;
  background: #f9fafb;
}

.form-control:focus {
  outline: none;
  border-color: #dc2626;
}