/* ==========================================================================
   RETRO KNOB OFFICIAL — ADMIN PANEL STYLES
   ========================================================================== */

.admin-body {
  background-color: #06060c;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  display: flex;
  min-height: 100vh;
}

/* Admin Auth Login Screen */
.admin-login-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(30, 27, 75, 0.7) 0%, rgba(6, 6, 12, 0.98) 80%);
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 17, 38, 0.85);
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: 20px;
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(157, 78, 221, 0.25);
  text-align: center;
}

.login-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.login-sub-text {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(7, 7, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.btn-admin-submit {
  width: 100%;
  background: linear-gradient(135deg, #9d4edd 0%, #00f0ff 100%);
  color: #06060c;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-admin-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   ADMIN MAIN LAYOUT (SIDEBAR + CONTENT)
   ========================================================================== */
.admin-sidebar {
  width: 260px;
  background: #090815;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.admin-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav-list {
  list-style: none;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25) 0%, rgba(0, 240, 255, 0.25) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
}

.admin-topbar {
  height: 70px;
  background: rgba(9, 8, 21, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-view-site-link {
  font-size: 13px;
  font-weight: 600;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-view-site-link:hover {
  text-decoration: underline;
}

.admin-container {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
}

/* ==========================================================================
   STAT CARDS & ANALYTICS
   ========================================================================== */
.stats-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card-box {
  background: rgba(18, 17, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.stat-card-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--stat-color, #9d4edd);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-card-title {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card-number {
  font-family: 'Space Grotesk', monospace;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}

/* Data Tables */
.admin-card-panel {
  background: rgba(18, 17, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

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

.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.paid {
  background: rgba(6, 214, 160, 0.15);
  color: #06d6a0;
  border: 1px solid rgba(6, 214, 160, 0.4);
}

.status-badge.pending {
  background: rgba(255, 190, 11, 0.15);
  color: #ffbe0b;
  border: 1px solid rgba(255, 190, 11, 0.4);
}

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tbl-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.tbl-btn.edit:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
}

.tbl-btn.delete:hover {
  background: rgba(247, 37, 133, 0.2);
  border-color: #f72585;
  color: #f72585;
}

/* Upload Dropzone styling */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(7, 7, 18, 0.4);
}

.upload-dropzone:hover {
  border-color: #9d4edd;
  background: rgba(157, 78, 221, 0.05);
}

.upload-dropzone input[type="file"] {
  display: none;
}
