/* ==========================================================================
   ÉLAN BEAUTÉ — PROFESSIONAL ADMIN PANEL STYLES
   ========================================================================== */

.admin-body {
  background-color: #F4F5F7;
  color: #1E293B;
  min-height: 100vh;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}

.admin-sidebar {
  width: 260px;
  background-color: #0F172A;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.admin-sidebar-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #F8FAFC;
  text-transform: uppercase;
}

.admin-nav {
  list-style: none;
  padding: 1.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.admin-nav-item a:hover,
.admin-nav-item.active a {
  background-color: #1E293B;
  color: #F8FAFC;
}

.admin-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  background-color: #F4F5F7;
  min-height: 100vh;
  margin-top: 0 !important;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0F172A;
  font-family: var(--font-sans);
}

/* Metric Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0F172A;
}

/* Tables */
.admin-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.admin-table th {
  background-color: #F8FAFC;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2E8F0;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
}

.admin-table tr:hover {
  background-color: #F8FAFC;
}

/* Status Badges */
.status-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: capitalize;
}

.status-pending { background-color: #FEF3C7; color: #92400E; }
.status-confirmed { background-color: #E0F2FE; color: #075985; }
.status-processing { background-color: #F3E8FF; color: #6B21A8; }
.status-shipped { background-color: #E0E7FF; color: #3730A3; }
.status-delivered { background-color: #DCFCE7; color: #166534; }
.status-cancelled { background-color: #FEE2E2; color: #991B1B; }

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background-color: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: #0F172A;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}
