/* ==========================================================================
   ENTERPRISE AI INVESTMENT PLATFORM - DESIGN TOKENS & COLOR PALETTE
   ========================================================================== */

:root {
  /* Color Palette - Lux Dark Mode (Default) */

  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(15, 23, 42, 0.9);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Brand Accents */
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.25);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --grad-emerald: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --grad-indigo: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  --grad-hero: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  /* Spacing & Layout */
  --sidebar-width: 280px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-input: #ffffff;

  --border-color: #e2e8f0;
  --border-glow: rgba(99, 102, 241, 0.2);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --grad-dark-card: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   ENTERPRISE CSS RESET & BASE TYPOGRAPHY
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ==========================================================================
   REUSABLE ENTERPRISE UI COMPONENTS
   ========================================================================== */

/* Glass Cards */
.glass-card {
  background: var(--grad-dark-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: var(--grad-indigo);
  color: #ffffff;
  box-shadow: var(--accent-indigo-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-gold {
  background: var(--grad-gold);
  color: #0f172a;
  box-shadow: var(--accent-gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.btn-emerald {
  background: var(--grad-emerald);
  color: #ffffff;
  box-shadow: var(--accent-emerald-glow);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.btn-danger {
  background: var(--accent-rose);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-approved, .badge-active, .badge-open {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending, .badge-unsubmitted {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-rejected, .badge-closed {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Table */
.data-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.modal-wrapper.modal-lg {
  max-width: 820px;
}

.modal-overlay.active .modal-wrapper {
  transform: translateY(0);
}

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

.modal-close {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.alert-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
}

/* ==========================================================================
   GLOBAL TOASTER NOTIFICATION STYLES
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-notification {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 320px;
  max-width: 440px;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.toast-close-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.2rem;
}
.toast-close-btn:hover {
  color: #ffffff;
}

/* Pill Button Utilities */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-pill-primary:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   ENTERPRISE ULTRA-CLEAN PAGINATION COMPONENT
   Matching exact UI specification:
   Showing X to Y of Z entries | ‹ 1 2 3 4 5 6 7 8 9 10 ... 2410 2411 ›
   ========================================================================== */
.custom-pagination-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

.pagination-info-text {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.pagination-info-text .highlight {
  color: #0f172a;
  font-weight: 800;
}

.pagination-nav-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.18s ease;
  user-select: none;
  box-sizing: border-box;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: #2563eb;
  color: #2563eb;
  background: #f0f6ff;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination-btn.disabled {
  background: #f8fafc;
  border-color: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.7;
}

.pagination-dots {
  padding: 0 0.4rem;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.9rem;
  user-select: none;
}

/* Dark theme adaptivity strictly for Admin Panel console */
body.admin-body .custom-pagination-card,
.admin-app-container .custom-pagination-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.admin-body .pagination-info-text,
.admin-app-container .pagination-info-text {
  color: #94a3b8;
}

body.admin-body .pagination-info-text .highlight,
.admin-app-container .pagination-info-text .highlight {
  color: #ffffff;
}

body.admin-body .pagination-btn,
.admin-app-container .pagination-btn {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

body.admin-body .pagination-btn:hover:not(.disabled):not(.active),
.admin-app-container .pagination-btn:hover:not(.disabled):not(.active) {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

body.admin-body .pagination-btn.active,
.admin-app-container .pagination-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

body.admin-body .pagination-btn.disabled,
.admin-app-container .pagination-btn.disabled {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.05);
  color: #475569;
}




/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
  100% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.glow-effect {
  animation: pulseGlow 4s infinite ease-in-out;
}

.float-effect {
  animation: floatSlow 6s ease-in-out infinite;
}

.spin-effect {
  animation: spinSlow 20s linear infinite;
}


/* ==========================================================================
   APEX AI CAPITAL - ULTRA-PREMIUM ADMIN EXECUTIVE COMMAND CONSOLE
   ========================================================================== */

/* Global Admin Layout Container */
.app-container {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.5) 0%, rgba(9, 13, 22, 1) 100%);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Sidebar Navigation */
.admin-sidebar {
  width: 280px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 1.5rem 1.25rem;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.sidebar-header {
  padding: 0 0.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.admin-badge-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.02) 100%);
  color: #fbbf24;
  font-weight: 700;
  border-left-color: #fbbf24;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.05);
}

/* Main Workspace */
.main-content {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 76px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.content-body {
  padding: 2.5rem;
  flex: 1;
}

/* Executive Stat Widgets */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-stat-card:hover::before {
  opacity: 1;
}

.admin-stat-title {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.admin-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.admin-stat-sub {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* Glass Tables Container */
.admin-card-glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

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

.admin-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  transition: background 0.2s ease;
}

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

/* Status Badges */
.badge-gold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ==========================================================================
   ADMIN MODAL OVERLAY & CARD SYSTEM
   Used by: confirmYieldEngineModal, confirmReferralDistributionModal,
            adminProfileModal, adminPasswordModal, adminCurrencyModal
   ========================================================================== */

.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.admin-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 92%;
  max-width: 520px;
  padding: 2rem 2.25rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

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

/* Currency modal card variant */
.currency-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 4px solid #fbbf24;
  border-radius: 24px;
  width: 92%;
  max-width: 680px;
  padding: 2rem 2.25rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Currency option cards inside the currency modal */
.currency-option-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.currency-option-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}
.currency-option-card.active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

/* Admin Data Table Cell Spacing & Overflow Control */
body.admin-body .data-table-container {
  overflow-x: auto;
  border-radius: 16px;
}

body.admin-body .data-table th,
body.admin-body .data-table td {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
}

body.admin-body .data-table th {
  font-size: 0.76rem;
  letter-spacing: 0.4px;
}


/* Admin Form Input Dark Mode Overrides */
.admin-app-container input[type="text"], .admin-app-container input[type="number"], .admin-app-container input[type="email"], .admin-app-container select { background: rgba(15, 23, 42, 0.9) !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.18) !important; font-weight: 700 !important; border-radius: 8px !important; padding: 0.45rem 0.75rem !important; }
