:root {
  --admin-sidebar: #082415;         /* Deep Forest Green */
  --admin-sidebar-hover: #0d3822;   /* Dark Green Hover */
  --admin-primary: #0b6638;         /* Emerald Theme Green */
  --admin-primary-dark: #074726;
  --admin-accent: #e26d14;          /* Warm Saffron Orange */
  --admin-bg: #f4f7f5;
}

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

/* Sidebar */
.admin-sidebar {
  background-color: var(--admin-sidebar);
  color: #cbd5e1;
  min-height: 100vh;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(226, 109, 20, 0.2);
}

.sidebar-header {
  padding: 20px 24px;
  background-color: #04140b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand img {
  height: 38px;
  width: auto;
}

.sidebar-menu {
  list-style: none;
  padding: 15px 12px;
  margin: 0;
}

.sidebar-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  padding: 12px 14px 6px;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--admin-sidebar-hover);
  color: #ffffff;
}

.sidebar-link.active {
  background: linear-gradient(90deg, #0b6638, #12884c);
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #e26d14;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

/* Admin Main Content */
.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #ffffff;
  height: 64px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.admin-body {
  padding: 30px;
  flex-grow: 1;
}

/* Metric / Overview Cards */
.admin-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 24px;
  margin-bottom: 24px;
}

.metric-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.metric-info h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.metric-info p {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Custom Table Styles */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.custom-table td {
  padding: 14px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

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

/* Status Badges */
.badge-status {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-status-new { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-status-contacted { background-color: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-status-review { background-color: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-status-approved { background-color: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-status-rejected { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Mobile and Tablet Responsiveness */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 991px) {
  .admin-sidebar {
    left: -270px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  }
  .admin-sidebar.active {
    left: 0;
  }
  .admin-sidebar.active + .sidebar-backdrop {
    display: block;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-topbar {
    padding: 0 16px;
    height: 58px;
  }
  .admin-body {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .metric-card {
    padding: 16px;
  }
  .metric-info h3 {
    font-size: 1.5rem;
  }
  .admin-card {
    padding: 16px;
  }
  .custom-table th, .custom-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
