:root {
  --bs-body-bg: #0f172a;
  --bs-body-color: #f1f5f9;
  --bs-card-bg: #1e293b;
  --bs-border-color: #334155;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Base Components */
.card {
  background-color: var(--bs-card-bg);
  border-color: var(--bs-border-color);
  border-radius: 12px;
}

.card-header {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-bottom-color: var(--bs-border-color) !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: var(--bs-border-color);
}

.table thead th {
  background-color: rgba(255, 255, 255, 0.02) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Sidebar */
.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.sidebar {
  min-width: 260px;
  max-width: 260px;
  background-color: #1e293b;
  border-right: 1px solid var(--bs-border-color);
  transition: all 0.3s;
  z-index: 1000;
}

.sidebar .nav-link {
  color: #94a3b8;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar .nav-link:hover {
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
  color: #fff;
  background-color: #3b82f6;
}

.sidebar .nav-link i, .sidebar .nav-link span.icon {
  margin-right: 12px;
  font-size: 1.1rem;
}

.sidebar-brand {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

.main-content {
  flex-grow: 1;
  background-color: var(--bs-body-bg);
}

/* Login Page */
.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-body-bg);
  background-image: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

.login-card {
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-card-bg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-logo {
  width: 64px;
  height: 64px;
  background: #3b82f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Form Controls Override */
.form-control, .form-select {
  background-color: #0f172a;
  border-color: #334155;
  padding: 0.75rem 1rem;
  color: #f1f5f9;
}

.form-control:focus, .form-select:focus {
  background-color: #0f172a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  color: #fff;
}

/* Strategy Editor */
.strategy-editor {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #38bdf8 !important;
  line-height: 1.6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
