/* ==========================================================================
   HOME NEWS - ADMIN PANEL & DASHBOARD PREVIEW CSS
   ========================================================================== */

.admin-body {
  background-color: #f1f5f9;
  color: #1e293b;
  font-family: var(--font-body);
}

/* Admin Login Layout */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e293b, #0f172a);
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.04);
  overflow: hidden;
}
.login-card-header {
  background: #111827;
  color: #ffffff;
  padding: 30px;
  text-align: center;
  border-bottom: 4px solid var(--primary-red);
}
.login-card-header h2 {
  font-family: var(--font-masthead);
  color: #ffffff;
  font-size: 1.8rem;
}
.login-card-header p {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 4px;
}
.login-card-body {
  padding: 32px 30px;
}
.login-badge-role {
  display: inline-block;
  background: #e02424;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 6px;
}

/* Dashboard Shell Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: #0f172a;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all var(--transition-speed);
}
.admin-sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-sidebar-header h3 {
  font-family: var(--font-masthead);
  color: #fff;
  font-size: 1.25rem;
  margin: 0;
}
.admin-sidebar-nav {
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
}
.nav-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 10px 24px 6px 24px;
}
.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}
.admin-nav-item a:hover, .admin-nav-item.active a {
  background: #1e293b;
  color: #ffffff;
  border-left: 4px solid var(--primary-red);
}
.admin-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-red);
  color: #fff;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-navbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.admin-content-area {
  padding: 28px;
  flex: 1;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-info h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 6px;
}
.stat-info .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: #fee2e2;
  color: var(--primary-red);
}

/* Data Table Card */
.admin-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}
.table-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-card-header h3 {
  font-size: 1.15rem;
  margin: 0;
}
.table-responsive {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.admin-table th {
  background: #f8fafc;
  padding: 12px 20px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}
.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #f8fafc;
}
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pill.published { background: #dcfce7; color: #15803d; }
.status-pill.pending { background: #fef9c3; color: #a16207; }
.status-pill.draft { background: #f1f5f9; color: #475569; }
.status-pill.rejected { background: #fee2e2; color: #b91c1c; }
