/* =================================================================
   Antigravity Modern & Responsive UI Theme for Admin Panel
   Design System: Dark Glassmorphic Modernity (Plus Jakarta Sans)
================================================================= */

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

:root {
  --bg-main: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-sidebar: #0f172a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(59, 130, 246, 0.3);
  
  --primary-color: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --success-color: #10b981;
  --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);
}

/* Global Reset & Body */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout Wrapper */
.layout-wrapper, .layout-container {
  background-color: var(--bg-main) !important;
}

.layout-page {
  background-color: var(--bg-main) !important;
}

/* Sidebar Styles */
#layout-menu.bg-menu-theme {
  background-color: var(--bg-sidebar) !important;
  border-right: 1px solid var(--border-color) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.app-brand {
  padding: 1.5rem 1.25rem !important;
  border-bottom: 1px solid var(--border-color);
}

.app-brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-header-text {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  letter-spacing: 1.2px !important;
}

.menu-item .menu-link {
  color: var(--text-muted) !important;
  border-radius: var(--radius-md) !important;
  margin: 0.2rem 0.75rem !important;
  padding: 0.65rem 1rem !important;
  transition: all 0.25s ease !important;
  font-weight: 500;
}

.menu-item .menu-link:hover, .menu-item.active .menu-link {
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

.menu-item .menu-icon {
  color: var(--text-subtle) !important;
  transition: color 0.2s ease;
}

.menu-item .menu-link:hover .menu-icon, .menu-item.active .menu-link .menu-icon {
  color: var(--primary-color) !important;
}

/* Header Navbar */
.bg-navbar-theme {
  background: rgba(17, 24, 39, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  margin-top: 1rem !important;
  box-shadow: var(--shadow-card) !important;
}

.bg-navbar-theme .form-control {
  background: rgba(31, 41, 55, 0.5) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-full);
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--text-main) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header, .card-footer {
  background: transparent !important;
  border-color: var(--border-color) !important;
}

.card-title {
  color: #f9fafb !important;
  font-weight: 700 !important;
}

/* Custom Table Design */
.table-responsive {
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  color: var(--text-main) !important;
  margin-bottom: 0 !important;
}

.table th {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  font-size: 0.725rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 1rem !important;
  border-bottom: 2px solid var(--border-color) !important;
}

.table td {
  padding: 0.9rem 1rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  font-size: 0.875rem !important;
  color: #cbd5e1 !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.015) !important;
}

.table-striped > tbody > tr:hover > * {
  background-color: rgba(59, 130, 246, 0.08) !important;
}

/* Forms & Inputs */
.form-control, .form-select {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  border-radius: var(--radius-md) !important;
  padding: 0.65rem 0.9rem !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
  background-color: #0f172a !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.form-label {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 0.825rem !important;
  margin-bottom: 0.4rem !important;
}

.input-group-text {
  background-color: #334155 !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
  border-radius: var(--radius-md) !important;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.25rem !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6) !important;
}

.btn-outline-secondary {
  border-color: #475569 !important;
  color: #cbd5e1 !important;
  border-radius: var(--radius-md) !important;
}

.btn-outline-secondary:hover {
  background-color: #334155 !important;
  color: #fff !important;
}

.btn-icon {
  border-radius: var(--radius-sm) !important;
}

/* Badges & Highlights */
.badge-ggr-positive {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.badge-ggr-negative {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.badge-rtp {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Custom Section Card Colors for Edit Forms */
.prob-section {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-lg) !important;
  backdrop-filter: blur(8px);
}

.separator-section {
  background: rgba(180, 83, 9, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.influencer-section {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.credentials-section {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Footer Styling */
footer.footer {
  background: transparent !important;
  color: var(--text-subtle) !important;
  border-top: 1px solid var(--border-color) !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
  .layout-menu-toggle {
    display: flex !important;
  }

  .content-wrapper {
    padding: 0.5rem !important;
  }

  .card-body {
    padding: 1rem !important;
  }

  .table th, .table td {
    padding: 0.6rem 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
  }
}
