/* ==========================================================================
   LABOR MARKETPLACE - Executive Operations Admin Panel Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --admin-bg: #090d16;
  --admin-card: #131b2e;
  --admin-elevated: #1e293b;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-text-main: #f8fafc;
  --admin-text-muted: #94a3b8;

  --accent-blue: #2563eb;
  --accent-blue-light: #60a5fa;
  --accent-orange: #ea580c;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Layout: Sidebar + Main Content */
.admin-sidebar {
  width: 260px;
  background: #0f172a;
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  padding: 24px 32px 60px;
  background: var(--admin-bg);
  background-image: radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%);
  min-height: 100vh;
}

/* Sidebar Branding */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 24px;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-titles h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-titles span {
  font-size: 0.68rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-category-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.menu-item.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.menu-badge {
  margin-left: auto;
  font-size: 0.68rem;
  background: var(--accent-orange);
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border);
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

/* Top Header Bar */
.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--admin-border);
}

.page-title-block h1 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-title-block p {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-admin {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid var(--admin-border);
}

.btn-admin-primary {
  background: var(--accent-blue);
  color: white;
  border: none;
}

.btn-admin-primary:hover {
  background: #1d4ed8;
}

.btn-admin-ghost {
  background: var(--admin-card);
  color: var(--admin-text-main);
}

.btn-admin-ghost:hover {
  background: var(--admin-elevated);
}

/* KPI Summary Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-workers .kpi-icon { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.kpi-online .kpi-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-bookings .kpi-icon { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
.kpi-revenue .kpi-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.kpi-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.kpi-sub {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Content Sections Grid */
.content-grid-2col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.panel-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Data Tables */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  padding: 10px 12px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid var(--admin-border);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--admin-border);
  color: #cbd5e1;
}

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

/* Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.pill-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pill-yellow { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pill-blue { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.pill-orange { background: rgba(234, 88, 12, 0.2); color: #fb923c; }
.pill-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Action Buttons inside tables */
.btn-action-sm {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
  border: none;
}

.btn-approve {
  background: var(--accent-green);
  color: white;
}
.btn-approve:hover { background: #059669; }

.btn-reject {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-reject:hover { background: rgba(239, 68, 68, 0.4); }

/* Category Pricing Grid */
.categories-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cat-pricing-card {
  background: var(--admin-elevated);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.cat-pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cat-pricing-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
}

.cat-rate-input {
  background: #0f172a;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.9rem;
  width: 100%;
  margin-top: 6px;
}
