/* ═══ ADMIN STYLES ═══ */
:root {
  --admin-bg: #f5f5f7;
  --admin-card: #ffffff;
  --admin-text: #1d1d1f;
  --admin-text2: #6e6e73;
  --admin-border: #e5e5e7;
  --admin-primary: #1a1e2e;
  --admin-accent: #d4a853;
  --admin-danger: #dc3545;
  --admin-success: #28a745;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* LOGIN */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--admin-card);
  padding: 48px 36px;
  border-radius: 16px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.login-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-card p { color: var(--admin-text2); margin-bottom: 24px; font-size: 14px; }
.login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 12px;
}
.login-card input:focus { outline: none; border-color: var(--admin-primary); }
.login-note { font-size: 12px; color: var(--admin-text2); margin-top: 16px; }

/* BUTTONS */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--admin-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-admin:hover { opacity: 0.85; }
.btn-cancel {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.btn-text {
  background: none;
  border: none;
  color: var(--admin-text2);
  font-size: 13px;
  cursor: pointer;
}
.btn-text:hover { color: var(--admin-text); }
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover { background: var(--admin-bg); }
.btn-sm.approve { border-color: var(--admin-success); color: var(--admin-success); }
.btn-sm.reject { border-color: var(--admin-danger); color: var(--admin-danger); }
.btn-sm.edit { border-color: var(--admin-primary); color: var(--admin-primary); }

.btn-status {
  padding: 10px 20px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-status:hover { border-color: var(--admin-primary); }
.btn-status.btn-live { border-color: var(--admin-danger); color: var(--admin-danger); }
.btn-status.btn-live:hover { background: var(--admin-danger); color: #fff; }
.btn-status.active-status { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }

/* LAYOUT */
.admin-header {
  background: var(--admin-card);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-title { font-size: 16px; font-weight: 700; }

.admin-nav {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  background: var(--admin-card);
  border-bottom: 1px solid var(--admin-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--admin-text2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--admin-bg); }
.nav-btn.active { background: var(--admin-primary); color: #fff; }

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* DASHBOARD */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.dash-card {
  background: var(--admin-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
}
.dash-label { font-size: 12px; color: var(--admin-text2); margin-bottom: 6px; }
.dash-value { font-size: 24px; font-weight: 800; }
.dash-quick { margin-top: 8px; }
.dash-quick h3 { font-size: 14px; margin-bottom: 12px; }
.status-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* DATA LIST */
.data-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.data-item {
  background: var(--admin-card);
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.data-item-info { flex: 1; min-width: 0; }
.data-item-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.data-item-meta { font-size: 12px; color: var(--admin-text2); }
.data-item-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-live { background: #dc3545; color: #fff; }
.badge-upcoming { background: #e2e3e5; color: #383d41; }
.badge-ended { background: #d6d8db; color: #6c757d; }
.badge-today { background: #cce5ff; color: #004085; }

/* FORMS */
.form-panel {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}
.form-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--admin-text2); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--admin-primary);
}
.form-actions { display: flex; gap: 8px; margin-top: 16px; }

/* FILTER BAR */
.filter-bar { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { background: var(--admin-bg); }
.filter-btn.active { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }

.content-section { margin-bottom: 32px; }
.content-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .data-item { flex-direction: column; }
  .data-item-actions { width: 100%; justify-content: flex-end; }
}
