@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-subtle: #F6F7FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --accent: #F59E0B;
  --success: #16A34A;
  --warning: #F97316;
  --danger: #DC2626;
  --focus: #60A5FA;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 18px rgba(15, 23, 42, 0.05);
}

[data-bs-theme="dark"] {
  --bg: #0B1220;
  --bg-subtle: #0F1A2B;
  --surface: #0F172A;
  --text: #E5E7EB;
  --text-muted: #9CA3AF;
  --border: #22314D;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --accent: #F59E0B;
  --success: #16A34A;
  --warning: #F97316;
  --danger: #DC2626;
  --focus: #60A5FA;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ONLY APPLY NEW REDESIGN TO DESKTOP */
@media (min-width: 992px) {


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .page-title, .card-header {
  line-height: 1.25;
  color: var(--text);
  font-weight: 600;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }

/* Navbar */
.navbar {
  padding: 8px 24px;
  background-color: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
}

.navbar-brand {
  font-weight: 700;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand .logo-icon {
  background-color: var(--text);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.brand-text {
  font-weight: 600;
  color: var(--text-muted);
}

.brand-text .white-part {
  color: var(--text);
}

.nav-pills .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-pills .nav-link:hover {
  background-color: var(--bg-subtle);
  color: var(--text);
}

.nav-pills .nav-link.active {
  background-color: var(--primary);
  color: #fff;
}

/* Dropdown */
.dropdown-menu {
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  border-radius: 12px;
}
.dropdown-item {
  color: var(--text);
}
.dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--text);
}

/* Cards / Panels */
.card {
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 24px;
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
}

.card-body {
  padding: 16px 24px;
}

/* Table */
.table th {
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-subtle);
  padding: 8px 16px;
  text-transform: none;
  letter-spacing: normal;
}

.table td {
  vertical-align: middle;
  padding: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.table-hover tbody tr:hover {
  background-color: var(--bg-subtle);
}

/* Inputs & Selects */
.form-select, .form-control {
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

.form-select:focus, .form-control:focus {
  outline: none;
  border-color: var(--focus) !important;
  box-shadow: 0 0 0 2px var(--focus) !important;
}

/* Buttons */
.btn-primary, .btn-dark, .btn-success, .btn-danger {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-1) !important;
  padding: 8px 16px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.btn-primary, .btn-dark {
  background-color: var(--primary) !important;
  color: white !important;
}
.btn-primary:hover, .btn-dark:hover {
  background-color: var(--primary-hover) !important;
}

.btn-secondary, .btn-outline-secondary {
  background-color: var(--bg-subtle) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  padding: 8px 16px;
  font-weight: 500;
}
.btn-secondary:hover, .btn-outline-secondary:hover {
  background-color: var(--border) !important;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus Rings (Accessibility) */
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus) !important;
}

/* Badges */
.badge {
  border-radius: 12px !important;
  padding: 4px 8px;
  font-weight: 500;
  font-size: 12px;
}

.badge.bg-success, .badge.text-success, .badge-outline.text-success { background-color: var(--success) !important; color: white !important; border: none !important; }
.badge.bg-warning, .badge.text-warning, .badge-outline.text-warning { background-color: var(--warning) !important; color: white !important; border: none !important; }
.badge.bg-danger, .badge.text-danger, .badge-outline.text-danger { background-color: var(--danger) !important; color: white !important; border: none !important; }
.badge.bg-primary, .badge.text-primary, .badge-outline.text-primary { background-color: var(--primary) !important; color: white !important; border: none !important; }

.badge-outline, .badge-outline:not(.text-success):not(.text-primary):not(.text-danger):not(.text-warning) {
  background-color: var(--bg-subtle) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* Modals */
.modal-content {
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.modal-body {
  padding: 16px 24px;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 8px 16px 8px;
  z-index: 1030;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 8px;
  flex: 1;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--primary) !important;
}

.bottom-nav-fab-wrapper {
  position: relative;
  width: 64px;
  height: 60px;
  display: flex;
  justify-content: center;
}

.fab-button {
  position: absolute;
  top: -24px;
  background-color: var(--primary);
  color: white !important;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: var(--shadow-1);
  border: 2px solid var(--surface);
}

/* Bulk Action Bar */
.bulk-action-bar {
  display: none;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-1);
  align-items: center;
  justify-content: space-between;
}

/* Remove old landing page gradients and AI styling */
.text-gradient {
  color: var(--primary) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}
.bg-gradient-modern, .glass-panel, .animate-float, .feature-card-glow, .feature-card-glow::before {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Utilities */
.bg-surface {
  background-color: var(--surface) !important;
}


  /* Dropdown hover for desktop */
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
