/* ==========================================================================
   PARTYBUS - CPANEL OWNER DASHBOARD COMPLETE NEW STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --admin-bg-main: #080808;
  --admin-sidebar-bg: #080808;
  --admin-card-bg: #121212;
  
  --gold-premium: #F3C649;
  --gold-bright: #FFE066;
  --gold-pure: #FFD700;
  --gold-deep: #D49E2A;

  --text-warm-white: #F8F7F4;
  --text-light-grey: #B6B6B6;
  --border-graphite: #232323;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body.admin-body {
  background-color: #080808 !important;
  color: #F8F7F4 !important;
  font-family: var(--font-body);
  margin: 0; padding: 0;
  display: flex; min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: var(--gold-premium); border-radius: 4px; }

/* Sidebar Navigation */
.admin-sidebar {
  width: 280px;
  background: #080808;
  border-right: 1px solid rgba(243, 198, 73, 0.2);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid rgba(243, 198, 73, 0.2);
  background: #080808;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.3rem;
  color: var(--text-warm-white);
}

.sidebar-menu {
  list-style: none; padding: 1.5rem 1rem; margin: 0;
  flex: 1; overflow-y: auto; background: #080808;
}

.menu-item { margin-bottom: 0.4rem; }

.menu-link {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1.1rem; color: var(--text-light-grey);
  text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
  border-radius: 12px; border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.menu-link:hover, .menu-link.active {
  background: #121212;
  color: var(--gold-premium) !important;
  border-color: rgba(243, 198, 73, 0.3);
  transform: translateX(4px);
}

.menu-link.active {
  background: var(--gold-premium) !important;
  color: #080808 !important;
  border-color: var(--gold-bright);
}

.menu-link i { font-size: 1.1rem; width: 24px; text-align: center; }

/* Main Content Area */
.admin-main {
  margin-left: 280px; flex: 1;
  display: flex; flex-direction: column; min-width: 0;
  background: #080808;
}

.admin-topbar {
  height: 80px;
  background: #080808;
  border-bottom: 1px solid rgba(243, 198, 73, 0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; position: sticky; top: 0; z-index: 90;
}

.topbar-search {
  display: flex; align-items: center; gap: 0.8rem;
  background: #121212; border: 1px solid var(--border-graphite);
  border-radius: 30px; padding: 0.55rem 1.2rem; width: 380px;
}

.topbar-search input {
  background: transparent; border: none; color: var(--text-warm-white); outline: none; width: 100%;
  font-family: var(--font-body); font-size: 0.9rem;
}

.topbar-user { display: flex; align-items: center; gap: 1.5rem; }

/* SOS Emergency Button */
.btn-emergency-sos {
  background: #ff3b30; color: #ffffff;
  font-family: var(--font-heading); font-weight: 700;
  padding: 0.65rem 1.4rem; border-radius: 30px;
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.btn-gold-admin {
  background: var(--gold-premium); color: #080808;
  font-family: var(--font-heading); font-weight: 700;
  padding: 0.75rem 1.6rem; border-radius: 30px;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(243, 198, 73, 0.25);
  text-decoration: none;
}

.btn-gold-admin:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.admin-content { padding: 2rem; }

/* Section Management */
.cpanel-section { display: block; margin-bottom: 2.5rem; }

/* KPI Grid */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}

.kpi-card {
  background: #121212; border: 1px solid rgba(243, 198, 73, 0.25);
  border-radius: 20px; padding: 1.6rem;
}

.kpi-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.kpi-title { font-size: 0.85rem; color: var(--text-light-grey); text-transform: uppercase; font-family: var(--font-heading); font-weight: 600; }
.kpi-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(243, 198, 73, 0.15); color: var(--gold-premium); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kpi-value { font-size: 1.8rem; font-weight: 700; color: #fff; font-family: var(--font-heading); margin-bottom: 0.4rem; }
.kpi-sub { font-size: 0.8rem; color: var(--text-light-grey); }

/* Table Cards */
.admin-table-card {
  background: #121212; border: 1px solid rgba(243, 198, 73, 0.25);
  border-radius: 20px; padding: 1.8rem; overflow-x: auto;
}

.admin-table {
  width: 100%; border-collapse: collapse; margin-top: 1rem; text-align: left;
}

.admin-table th {
  padding: 1rem; border-bottom: 1px solid var(--border-graphite);
  color: var(--gold-premium); font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem; text-transform: uppercase;
}

.admin-table td {
  padding: 1rem; border-bottom: 1px solid var(--border-graphite); font-size: 0.9rem; color: var(--text-warm-white); vertical-align: middle;
}

.badge-gold {
  background: rgba(243, 198, 73, 0.15); color: var(--gold-premium); border: 1px solid var(--gold-premium); padding: 0.3rem 0.7rem; border-radius: 12px; font-weight: 700; font-size: 0.78rem;
}

.badge-green {
  background: rgba(52, 199, 89, 0.15); color: #34c759; border: 1px solid #34c759; padding: 0.3rem 0.7rem; border-radius: 12px; font-weight: 700; font-size: 0.78rem;
}

/* Map Header Box */
.map-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; gap: 1rem;
}

.map-container-box {
  background: #121212; border: 1px solid rgba(243, 198, 73, 0.25); border-radius: 24px; padding: 1.8rem; margin-bottom: 2.5rem;
}

.admin-input, .admin-select {
  width: 100%; padding: 0.8rem 1.1rem; background: #080808 !important; border: 1px solid var(--border-graphite) !important; border-radius: 12px; color: #fff !important; font-family: var(--font-body); font-size: 0.9rem; outline: none;
}

.admin-input:focus, .admin-select:focus {
  border-color: var(--gold-premium) !important; box-shadow: 0 0 15px rgba(243, 198, 73, 0.2) !important;
}

/* Native Leaflet / Google Marker */
.custom-leaflet-bus, .custom-leaflet-user {
  pointer-events: auto;
}
