:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  /* padding-top: 4.5rem; Fixed navbar spacing */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: 0 0 2rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero h1 {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  border: none;
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-right: 1rem;
  flex-shrink: 0;
}

.tool-icon-wrapper {
  background: #eff6ff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Form Styles */
.form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border-color: var(--border-color);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Utilities */
.muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--primary) !important;
}

.hover-lift {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.hover-lift:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.shadow-xl {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05) !important;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* Section Specifics */
.hero-section {
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.05), transparent);
}

.bg-success-subtle {
  background-color: #f0fdf4 !important;
}

.bg-primary-subtle {
  background-color: #eef2ff !important;
}

.bg-dark-subtle {
  background-color: #f8fafc !important;
}

.bg-warning-subtle {
  background-color: #fffbeb !important;
}

.accordion-button:not(.collapsed) {
  background-color: #fff !important;
  color: var(--primary) !important;
}

.tool-icon-wrapper {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}