/* ==========================================================================
   ONE POINT ALLIANCE - ADMIN CONTROL PANEL STYLES
   Theme: Executive Modern Light / White Theme with Gold & Navy Accents
   ========================================================================== */

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

:root {
  --bg-main: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  
  --border-color: #E2E8F0;
  --border-light: #EDF2F7;
  --border-gold: rgba(180, 140, 26, 0.35);

  --gold-300: #996515;
  --gold-400: #B48C1A;
  --gold-500: #D4AF37;
  --gold-600: #8B6508;
  --gold-700: #704700;
  --gold-800: #583700;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --gold-bg-subtle: #FDFBF0;

  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --sidebar-width: 260px;
  --topbar-height: 70px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LOGIN PAGE LIGHT STYLING
   ========================================================================== */
.admin-login-body {
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%), #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(180, 140, 26, 0.08);
}

.login-brand-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.login-crest-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  background: linear-gradient(135deg, #FDFBF0, #F5E6B8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--navy-900);
  letter-spacing: 0.5px;
}

.login-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

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

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--navy-900);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(180, 140, 26, 0.15);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-400), #996515);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(180, 140, 26, 0.25);
}

.btn-gold:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #C59B27, #805410);
  box-shadow: 0 6px 16px rgba(180, 140, 26, 0.35);
}

.dummy-creds-box {
  margin-top: 1.5rem;
  background: #FDFBF0;
  border: 1px dashed var(--border-gold);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.825rem;
  color: #855800;
}

.dummy-creds-box code {
  background: #FFF;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #EAD89C;
  font-weight: 600;
  color: #704700;
}

/* ==========================================================================
   ADMIN LAYOUT & SIDEBAR (LIGHT THEME)
   ========================================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
}

.sidebar-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--navy-900);
}

.sidebar-brand-sub {
  font-size: 0.65rem;
  color: var(--gold-400);
  font-weight: 800;
  letter-spacing: 1px;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.nav-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0.5rem 0.75rem 0.25rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-link:hover {
  background: #F1F5F9;
  color: var(--navy-900);
}

.sidebar-link.active {
  background: #FDFBF0;
  border-left: 3px solid var(--gold-400);
  color: var(--gold-600);
  font-weight: 700;
}

.badge-count {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #FDE68A;
}

/* ==========================================================================
   SIDEBAR NESTED ACCORDION / DROPDOWN NAVIGATION
   ========================================================================== */
.sidebar-accordion-item,
.sidebar-nested-accordion-item {
  display: flex;
  flex-direction: column;
}

.sidebar-accordion-btn,
.sidebar-nested-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-accordion-btn:hover,
.sidebar-nested-accordion-btn:hover {
  background: #F1F5F9;
  color: var(--navy-900);
}

.sidebar-accordion-btn.parent-active {
  color: var(--navy-900);
  font-weight: 700;
}

.sidebar-nested-accordion-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  color: #334155;
}

.sidebar-nested-accordion-btn.nested-parent-active {
  color: var(--gold-600);
  font-weight: 700;
}

.chevron-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94A3B8;
  flex-shrink: 0;
}

.sidebar-accordion-item.is-open > .sidebar-accordion-btn .chevron-icon,
.sidebar-nested-accordion-item.is-open > .sidebar-nested-accordion-btn .chevron-icon {
  transform: rotate(180deg);
  color: var(--gold-600);
}

.sidebar-accordion-content,
.sidebar-nested-accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.sidebar-accordion-item.is-open > .sidebar-accordion-content,
.sidebar-nested-accordion-item.is-open > .sidebar-nested-accordion-content {
  max-height: 800px;
  opacity: 1;
  overflow: visible;
}

.sidebar-accordion-inner-group {
  padding-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.nested-sub-links-tree {
  margin-left: 1.25rem;
  padding-left: 0.75rem;
  border-left: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.nested-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nested-sidebar-link:hover {
  background: #F1F5F9;
  color: var(--navy-900);
  transform: translateX(2px);
}

.nested-sidebar-link.active {
  background: #FDFBF0;
  color: var(--gold-600);
  font-weight: 700;
  border-left: 2px solid var(--gold-400);
  border-radius: 0 6px 6px 0;
}

.badge-live-mini {
  font-size: 0.62rem;
  background: #FDFBF0;
  color: var(--gold-600);
  border: 1px solid var(--border-gold);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #FAFBFD;
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: inherit;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  flex: 1;
}

.admin-user-info:hover {
  background: rgba(212, 175, 55, 0.1);
}

.admin-user-info:hover .user-details h4 {
  color: var(--gold-600);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), #996515);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.user-details h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
}

.user-details p {
  font-size: 0.725rem;
  color: var(--gold-600);
  font-weight: 600;
}

.btn-logout {
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-logout:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: var(--danger);
}

/* ==========================================================================
   MAIN CONTENT & TOPBAR (LIGHT THEME)
   ========================================================================== */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: var(--topbar-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
}

.page-breadcrumb .current {
  color: var(--navy-900);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-visit-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--gold-600);
  background: #FDFBF0;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-visit-site:hover {
  background: #F8F3DC;
  border-color: var(--gold-400);
}

.content-container {
  padding: 2rem;
  flex: 1;
}

/* ==========================================================================
   STATS CARDS & DASHBOARD WIDGETS (EXECUTIVE LIGHT THEME)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

/* Base clickable stat card */
a.stat-card,
.stat-card {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--navy-900) !important;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  outline: none;
}

a.stat-card *,
.stat-card * {
  text-decoration: none !important;
}

a.stat-card:visited {
  color: var(--navy-900) !important;
}

/* Top accent color bar */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-color);
  transition: height 0.2s ease, opacity 0.2s ease;
}

.stat-card-gold::before {
  background: linear-gradient(90deg, #D4AF37, #B48C1A);
}

.stat-card-blue::before {
  background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.stat-card-emerald::before {
  background: linear-gradient(90deg, #10B981, #059669);
}

.stat-card-purple::before {
  background: linear-gradient(90deg, #A855F7, #7C3AED);
}

/* Hover effects */
a.stat-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.09), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
}

.stat-card-gold:hover {
  border-color: rgba(180, 140, 26, 0.4);
}
.stat-card-blue:hover {
  border-color: rgba(59, 130, 246, 0.4);
}
.stat-card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.4);
}
.stat-card-purple:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

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

.stat-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: #64748B;
  transition: color 0.2s ease;
}

.stat-card:hover .stat-title {
  color: var(--navy-900);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.stat-card:hover .stat-icon-wrap {
  transform: scale(1.1);
}

.stat-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #64748B;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.stat-pill-gold {
  background: #FEF9C3;
  color: #854D0E;
  border-color: #FEF08A;
}

.stat-pill-blue {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: #DBEAFE;
}

.stat-pill-emerald {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.stat-pill-purple {
  background: #FAF5FF;
  color: #6B21A8;
  border-color: #E9D5FF;
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.stat-arrow-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.stat-card:hover .stat-arrow-action {
  color: var(--gold-600);
  transform: translateX(3px);
}
  color: var(--navy-900);
  font-weight: 700;
}

/* ==========================================================================
   TABLES & DATA DISPLAY (EXECUTIVE LIGHT THEME)
   ========================================================================== */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFBFD;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.01em;
}

.card-title-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}

.card-title-badge-gold {
  background: #FEF9C3;
  color: #854D0E;
  border-color: #FEF08A;
}

.btn-view-all {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--navy-900);
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-view-all:hover {
  background: #FDFBF0;
  border-color: var(--border-gold);
  color: var(--gold-600);
  transform: translateX(2px);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  background: #F8FAFC;
  padding: 0.85rem 1.5rem;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: #64748B;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 1.15rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--navy-900);
  vertical-align: middle;
  background: #FFFFFF;
  transition: background-color 0.15s ease;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

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

/* User / Client Cell layout */
.client-info-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-initials {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F8FAFC, #EDF2F7);
  border: 1px solid var(--border-color);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar-initials-gold {
  background: linear-gradient(135deg, #FEF9C3, #FDE68A);
  color: #854D0E;
  border-color: #FDE047;
}

.avatar-initials-blue {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  color: #1E40AF;
  border-color: #BFDBFE;
}

.client-meta-name {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.client-meta-sub {
  font-size: 0.775rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending, .badge-unread {
  background: #FEF9C3;
  color: #854D0E;
  border: 1px solid #FEF08A;
}

.badge-contacted, .badge-in_progress, .badge-under_review {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-completed, .badge-resolved, .badge-approved, .badge-active {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.badge-cancelled, .badge-declined {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Action Buttons */
.btn-action {
  padding: 0.4rem 0.85rem;
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--navy-800);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.btn-action:hover {
  background: #FDFBF0;
  border-color: var(--border-gold);
  color: var(--gold-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(180, 140, 26, 0.12);
}

.btn-action-danger {
  color: #DC2626;
}

.btn-action-danger:hover {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

/* Form selects & search bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #FAFBFD;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.filter-input {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--navy-900);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 2px rgba(180, 140, 26, 0.15);
}

/* ==========================================================================
   CLICKABLE TABLE ROWS & DETAILS MODAL
   ========================================================================== */
tr.clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

tr.clickable-row:hover {
  background-color: #F8FAFC !important;
}

.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.admin-modal-backdrop.is-active .admin-modal-card {
  transform: translateY(0) scale(1);
}

.admin-modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFBFD;
  border-radius: 16px 16px 0 0;
}

.admin-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.admin-modal-close-btn:hover {
  background: #F1F5F9;
  color: var(--navy-900);
  border-color: #CBD5E1;
}

.admin-modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .detail-grid-2col {
    grid-template-columns: 1fr;
  }
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
}

.detail-notes-box {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--navy-800);
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color);
  background: #FAFBFD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 16px 16px;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   DEDICATED FULL-PAGE DETAIL VIEWS
   ========================================================================== */
.detail-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .detail-page-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.detail-card-header {
  padding: 1.25rem 1.5rem;
  background: #FAFBFD;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.detail-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.detail-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
}

.detail-group-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* ==========================================================================
   EXECUTIVE IMAGE FILE UPLOAD COMPONENT
   ========================================================================== */
.file-upload-box {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  background: #FAFBFD;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.file-upload-box:hover,
.file-upload-box.is-dragover {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.05);
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.file-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.file-upload-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
}

.file-upload-title span {
  color: var(--gold-600);
  text-decoration: underline;
}

.file-upload-sub {
  font-size: 0.75rem;
  color: #64748B;
}

.file-current-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 0.6rem;
  gap: 0.75rem;
}

.file-current-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 2px;
}



