/* ─────────────────────────────────────────
   Mepole — Global Styles
───────────────────────────────────────── */

/* ── Sidebar nav ── */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f8f9fb;
  border: 1px solid #e2e6ea;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-link:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35);
}

.sidebar-link.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.sidebar-link i {
  font-size: 1rem;
  color: #9aa5b4;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.sidebar-link:hover i,
.sidebar-link.active i {
  color: white;
}

/* ── Stat cards ── */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card-icon.purple { background: #f0ecff; color: #7c3aed; }
.stat-card-icon.blue   { background: #e8f0fe; color: #2563eb; }
.stat-card-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-card-icon.green  { background: #dcfce7; color: #16a34a; }

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9aa5b4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1d23;
  line-height: 1;
}

/* ── Page card ── */
.content-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.content-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.content-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1d23;
  margin: 0;
}

.content-card-body {
  padding: 0;
}

/* ── Tables ── */
.table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  background: #f8f9fb;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 16px;
  white-space: nowrap;
}

.table tbody td {
  padding: 11px 16px;
  vertical-align: middle;
  border-color: #f0f2f5;
  color: #344054;
}

.table-hover tbody tr:hover {
  background: #f8f9ff;
}

/* ── Page detail ── */
.page-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-section {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(45, 53, 97, 0.25);
  animation: slideDown 0.5s ease-out;
}

.content-section {
  border-left: 4px solid #667eea;
  animation: fadeIn 0.7s ease-out;
}

.content-section h2 {
  color: #667eea;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-section h3 {
  color: #764ba2;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.content-section ul,
.content-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.content-section a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ── Animations ── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-layout { flex-direction: column; }
  .sidebar-wrapper { width: 100%; border-right: none; border-bottom: 1px solid #e9ecef; padding: 0.75rem; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-link span { display: none; }
  .sidebar-link { padding: 8px 10px; }
  .main-content { padding: 1.25rem; }
}
