/**
 * Admin Panel CSS - BookingPro
 * projects/BookingService/admin/assets/css/admin.css
 */

:root {
  --admin-sidebar-width: 260px;
  --admin-sidebar-bg: #0f172a;
  --admin-sidebar-color: #94a3b8;
  --admin-sidebar-active: #38bdf8;
  --admin-header-height: 65px;
  --admin-bg: #f8fafc;
}

body {
  background-color: var(--admin-bg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background-color: var(--admin-sidebar-bg);
  color: var(--admin-sidebar-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.admin-sidebar-brand {
  height: var(--admin-header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  text-decoration: none;
}

.admin-sidebar-brand i {
  color: #38bdf8;
}

.admin-nav-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 1.2rem 1.5rem 0.5rem;
  font-weight: 700;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

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

.admin-nav-item.active {
  color: #ffffff;
  background-color: rgba(56, 189, 248, 0.1);
  border-left-color: #38bdf8;
  font-weight: 600;
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

/* Main Content Wrapper */
.admin-main {
  margin-left: var(--admin-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}

/* Admin Header Navbar */
.admin-navbar {
  height: var(--admin-header-height);
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Stat KPI Cards */
.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* Data Tables */
.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table thead th {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  padding: 0.85rem 1rem;
}

.admin-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.admin-table tbody tr:hover td {
  background-color: #f8fafc;
}
