/* efgaihub/assets/css/theme.css - Premium Investment & P2P Portal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Clean Premium Palette */
  --bg-primary: #f8fafc; /* Light Slate / Off-White */
  --bg-card: #ffffff;
  --bg-navbar: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --border-light: #e2e8f0;
  --border-glow: #cbd5e1;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-emerald: #00FFA3;
  --accent-amber: #d97706;
  --accent-red: #FF3D00;

  /* Refined Gradients */
  --blue-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  --emerald-gradient: linear-gradient(135deg, #064e3b 0%, #00FFA3 100%);

  /* Proportions */
  --card-radius: 16px;
  --btn-radius: 8px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Typography Details */
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Inter', sans-serif; 
  margin-top: 0; 
  margin-bottom: 16px; 
  color: #0f172a; 
  font-weight: 700; 
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: var(--accent-blue); transition: all 0.2s ease; }
a:hover { color: var(--accent-blue-hover); }

.text-muted { color: var(--text-muted); font-size: 0.95rem; }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-blue { color: var(--accent-blue); }
.text-red { color: var(--accent-red); }

.text-center { text-align: center; }

/* Premium Grid */
.container { padding: 40px 24px; max-width: 1200px; margin: 0 auto; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  width: 100%;
}
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(6, 1fr); }
    .bento-grid > * { grid-column: span 6 !important; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.show { transform: translateX(0); }
    .dashboard-content { margin-left: 0; padding: 20px; }
}

/* Cards (Clean White) */
.card, .bento-card-premium {
  background: rgba(15, 23, 42, 0.7); /* Darker glass background */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}
.card:hover, .bento-card-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}
.card h1, .card h2, .card h3, .card h4, .bento-card-premium h1, .bento-card-premium h2, .bento-card-premium h3, .bento-card-premium h4 {
    color: #f8fafc;
}
.card p, .card td, .card th, .card .text-muted, .card label {
    color: #cbd5e1;
}

.card-header {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}
.card-content { flex: 1; overflow-y: auto; }

/* Enhanced Forms */
.form-group { margin-bottom: 20px; text-align: left; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: #475569; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--btn-radius);
  padding: 12px 16px;
  color: #0f172a;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  transition: all 0.2s;
}
input:focus, select:focus, textarea:focus { 
  outline: none; 
  border-color: var(--accent-blue); 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

/* Premium Buttons */
.btn {
  background: var(--bg-card);
  color: #0f172a;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-block { width: 100%; display: flex; }
.btn-blue, .btn-primary, .btn-emerald { 
    background: var(--accent-blue); 
    color: #ffffff; 
    border: none; 
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); 
}
.btn-blue:hover, .btn-primary:hover, .btn-emerald:hover { 
    background: var(--accent-blue-hover); 
    color: #ffffff;
}

.btn-outline { background: transparent; border: 1px solid var(--accent-blue); color: var(--accent-blue); }
.btn-outline:hover { background: rgba(37, 99, 235, 0.05); }

/* Status Badges */
.status-pill {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill-pending { background: #fef3c7; color: #b45309; }
.pill-completed { background: #d1fae5; color: #047857; }
.pill-banned { background: #fee2e2; color: #b91c1c; }
.pill-info { background: #e0f2fe; color: #0369a1; }

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.nav-links a { 
  color: #475569; 
  font-size: 14px; 
  font-weight: 500; 
}
.nav-links a:hover { color: #0f172a; }
.nav-brand { font-weight: 800; font-size: 22px; color: #0f172a; letter-spacing: -0.02em; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: #fff; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
th, td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border-light); }
th { color: #475569; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; background: #f8fafc; border-bottom: 2px solid var(--border-light); }
td { font-size: 14px; color: #334155; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f8fafc; }

/* Spans */
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: var(--btn-radius); margin-bottom: 24px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #34d399; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Utility Frontend Sections */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { white-space: nowrap; }
.section-padding { padding: 80px 0; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-gold { background: #fef3c7; color: #d97706; }
.badge-blue { background: #e0f2fe; color: #0284c7; }

/* Sidebar & Dashboard specific */
body.dashboard-body, html.dashboard-html {
    height: 100vh;
    overflow: hidden !important; /* This locks the background */
    margin: 0;
    display: flex;
}
.site-header { flex-shrink: 0; }
.dashboard-layout { background: var(--bg-primary); display: flex; width: 100%; height: 100vh; overflow: hidden; }
.sidebar { 
  position: sticky;
  top: 0;
  height: 100vh;
  width: 280px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--border-light);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  z-index: 1001;
}
.sidebar::-webkit-scrollbar { display: none !important; }
.sidebar-link { padding: 12px 32px; display: flex; align-items: center; gap: 12px; color: #cbd5e1; font-weight: 500; font-size: 15px; border-left: 3px solid transparent; transition: all 0.2s;}
.sidebar-link:hover, .sidebar-link.active { background: rgba(59,130,246,0.1); color: #60a5fa; border-left-color: #60a5fa; padding-left: 36px;}
.sidebar-link svg { transition: transform 0.2s; }
.sidebar-link:hover svg { transform: scale(1.1); }
.dashboard-content { 
  flex: 1; 
  min-width: 0; 
  height: 100vh; 
  overflow-y: auto !important; 
  -webkit-overflow-scrolling: touch; 
}
@media (max-width: 1024px) {
    .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: 0.3s; z-index: 1000; }
    .sidebar.active, .sidebar.show { transform: translateX(0); }
    .dashboard-content { width: 100%; }
}

/* Add toast styling */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast { background: white; border-radius: 8px; padding: 16px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(20px); opacity: 0; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); font-weight: 500; font-size: 14px; min-width: 250px; color: #0f172a; }
.toast.show { transform: translateY(0); opacity: 1; }

/* Inactivity Modal */
#inactivity-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 10000; justify-content: center; align-items: center; }
#inactivity-modal .card { width: 400px; text-align: center; }

