:root {
  --primary-color: #4F46E5;
  --primary-hover: #4338ca;
  --secondary-color: #7C3AED;
  --bg-color: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --sidebar-width: 260px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color) !important;
}

/* Typography & Helpers */
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
.fs-7 { font-size: 0.875rem; }

/* Colors */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Sidebar Layout */
#wrapper {
  overflow-x: hidden;
  min-height: 100vh;
}
#sidebar-wrapper {
  min-height: 100vh;
  width: var(--sidebar-width);
  margin-left: -var(--sidebar-width);
  transition: margin 0.25s ease-out;
  background-color: #ffffff;
}
#sidebar-wrapper .sidebar-heading {
  padding: 1.5rem 1.25rem;
  font-size: 1.2rem;
}
#sidebar-wrapper .list-group {
  width: var(--sidebar-width);
}
#sidebar-wrapper .list-group-item {
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
}
#sidebar-wrapper .list-group-item:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}
#sidebar-wrapper .list-group-item.active {
  background-color: #eef2ff !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--primary-color);
}

#page-content-wrapper {
  min-width: 100vw;
  transition: min-width 0.25s ease-out;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }
  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }
  body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: -var(--sidebar-width);
  }
}

/* Cards & Tables */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  border-radius: 0.5rem;
}
.card-header {
  background-color: #ffffff;
  border-bottom: 1px solid #edf2f7;
  font-weight: 600;
}
.table {
  color: var(--text-main);
}
.table th {
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid #edf2f7;
}
.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

/* Landing Page Specifics */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 100px 0;
}
.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
}
.feature-card {
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
  border-radius: 0.75rem;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 1rem;
}
.pricing-card {
  border: 2px solid var(--primary-color);
  border-radius: 1rem;
}
