/* Sawariya Pay - Professional Polish Corporate Style */

:root {
  --bg-gradient-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --bg-gradient-dark: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  
  --glass-bg-light: #ffffff;
  --glass-bg-dark: #ffffff;
  
  --glass-border-light: #e2e8f0;
  --glass-border-dark: #e2e8f0;
  
  --text-light: #0f172a;
  --text-dark: #0f172a;
  
  --text-secondary-light: #475569;
  --text-secondary-dark: #475569;
  
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-cyan: #3b82f6;
  --accent-purple: #6366f1;
  
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --card-shadow-dark: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  
  --card-radius: 16px;
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & Theme bindings */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: var(--transition-smooth);
  min-height: 100vh;
  overflow-x: hidden;
}

body.light-theme, body.dark-theme {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Glassmorphism Classes styled for Professional Polish */
.glass-card {
  border-radius: var(--card-radius);
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: var(--transition-smooth);
  color: #0f172a !important;
}

/* Override dark/light differences with clean unified colors */
body.light-theme .glass-card,
body.dark-theme .glass-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04) !important;
  border-color: #cbd5e1 !important;
}

/* Text overrides for elements inside white cards */
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4, .glass-card h5, .glass-card h6,
.glass-card .text-white, .glass-card .text-gradient-stripe {
  color: #0f172a !important;
}

.glass-card p, .glass-card span, .glass-card li, .glass-card div, .glass-card label, .glass-card .text-white-50 {
  color: #475569 !important;
}

/* Premium Navigation */
.navbar-glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: var(--transition-smooth);
}

.navbar-glass .navbar-brand span {
  color: #0f172a !important;
}

.navbar-glass .nav-link {
  color: #475569 !important;
}

.navbar-glass .nav-link:hover {
  color: #0f172a !important;
}

/* Stripe-inspired Gradient Headings & Text */
.text-gradient-stripe {
  background: linear-gradient(to right, #0f172a 0%, #475569 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-premium {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition-smooth) !important;
}

.btn-premium:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -2px rgba(37, 99, 235, 0.2) !important;
  transform: translateY(-1px);
}

.btn-premium-outline {
  background: #ffffff !important;
  color: #2563eb !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  transition: var(--transition-smooth) !important;
}

.btn-premium-outline:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #1d4ed8 !important;
}

/* Hero Section */
.hero-container {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%) !important;
  z-index: -1;
  pointer-events: none;
}

/* Dark Slate Sidebar Navigation */
.sidebar, aside.sidebar, #sidebar, #admin-sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #0f172a !important; /* Premium Dark Slate */
  border-right: 1px solid #1e293b !important;
  transition: var(--transition-smooth);
  color: #94a3b8 !important;
}

.sidebar .p-4.border-bottom {
  border-color: #1e293b !important;
}

.sidebar .text-white, aside.sidebar .text-white {
  color: #ffffff !important;
}

.sidebar .text-white-50, aside.sidebar .text-white-50 {
  color: #94a3b8 !important;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #94a3b8 !important;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  background: rgba(59, 130, 246, 0.08) !important;
  color: #ffffff !important;
}

.sidebar-nav-link.active {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #3b82f6 !important;
  border-left-color: #2563eb !important;
}

/* Main workspace headers and layouts */
.main-content {
  margin-left: 260px;
  padding: 40px;
  min-height: 100vh;
  transition: var(--transition-smooth);
  background: #f8fafc !important; /* slate-50/100 */
}

.main-content header, header.d-flex {
  border-bottom: 1px solid #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-blur: 8px;
  padding-bottom: 20px !important;
  margin-bottom: 40px !important;
}

.main-content header h2, header.d-flex h2 {
  color: #0f172a !important;
}

.main-content header p, header.d-flex p {
  color: #475569 !important;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}

/* Form Styles */
.form-glass {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  transition: var(--transition-smooth) !important;
}

.form-glass:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.form-glass::placeholder {
  color: #94a3b8 !important;
}

/* Badge States */
.badge-pending {
  background: #fef9c3 !important;
  color: #854d0e !important;
  border: 1px solid #fef08a !important;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-approved {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-rejected {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fee2e2 !important;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Custom Pricing Toggle */
.pricing-toggle {
  background: #f1f5f9;
  border-radius: 30px;
  padding: 4px;
  display: inline-flex;
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Table styling */
.table-glass {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

.table-glass th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.table-glass td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
}

.table-hover tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Code container for Documentation - keep gorgeous contrast */
.code-block,
.glass-card .code-block,
.glass-card div.code-block {
  background: #0f172a !important;
  border-radius: 12px !important;
  border: 1px solid #1e293b !important;
  padding: 20px !important;
  color: #38bdf8 !important;
  font-family: 'Fira Code', 'JetBrains Mono', monospace !important;
  font-size: 0.85rem !important;
  overflow-x: auto;
  position: relative;
}

.code-block pre, 
.code-block code,
.glass-card .code-block pre,
.glass-card .code-block code {
  color: #38bdf8 !important;
  background: transparent !important;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  border-radius: 4px !important;
  color: #94a3b8 !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  cursor: pointer;
  transition: var(--transition-smooth) !important;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* Dropdown styling */
.dropdown-menu-dark.glass-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.dropdown-menu-dark.glass-card .dropdown-header {
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.dropdown-menu-dark.glass-card .dropdown-item {
  color: #475569 !important;
}

.dropdown-menu-dark.glass-card .dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Footer overrides */
footer.bg-dark {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

footer.bg-dark p {
  color: #94a3b8 !important;
}
