/* ===============================
   Global Theme for LeadFinder
   =============================== */

/* Root variables for brand colors */
:root {
  --bs-primary: #4f46e5;   /* Indigo */
  --bs-secondary: #64748b; /* Slate gray */
  --bs-success: #10b981;   /* Emerald */
  --bs-danger: #ef4444;    /* Red */
  --bs-warning: #f59e0b;   /* Amber */
  --bs-info: #0ea5e9;      /* Sky blue */
  --bs-light: #f8fafc;     /* Light background */
  --bs-dark: #1e293b;      /* Navy slate */
  --bs-accent: #14b8a6;    /* ✅ Teal accent (brand highlight) */
}

/* Typography */
body {
  font-family: "Source Sans Pro", "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bs-light);
  color: var(--bs-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.card-header {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p, li, td, th {
  font-size: 1rem;
}

/* Navbar */
.navbar {
  background: var(--bs-primary) !important;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease-in-out;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--bs-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  color: var(--bs-accent) !important;
  
}

.hero {
  background: linear-gradient(rgba(79,70,229,0.9), rgba(99,102,241,0.9)), 
              url('/static/img/construction_leads_logos.png') center/cover no-repeat;
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 0.75rem;
  text-align: center;
}


/* Buttons */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}
.btn-primary:hover {
  background-color: #4338ca;
  border-color: #3730a3;
}

.btn-light.text-primary {
  background: #fff;
  border: 2px solid var(--bs-primary);
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.btn-light.text-primary:hover {
  background: var(--bs-accent);
  border-color: var(--bs-accent);
  color: #fff !important;
}

/* Modern CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-accent));
  color: #fff;
  border-radius: 1rem;
  padding: 4rem 2rem;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

/* Use brand colors for Bootstrap utility classes */
.bg-primary {
  background-color: var(--bs-primary) !important;
}

.bg-success {
  background-color: var(--bs-success) !important;
}

.bg-warning {
  background-color: var(--bs-warning) !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
}

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

/* ===============================
   Auth Pages (Login & Register)
   =============================== */
   .auth-wrapper {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-accent));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  
  .auth-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    transition: transform 0.2s ease;
  }
  
  .auth-card:hover {
    transform: translateY(-4px);
  }
  
  .auth-card h2 {
    font-weight: 700;
    color: var(--bs-dark);
  }
  
  .auth-card .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem;
  }
  
  .auth-card .btn {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
  }
  
  .auth-footer {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    text-align: center;
  }
  

/* Footer */
footer {
  background: var(--bs-dark);
  color: #ccc;
  font-size: 0.9rem;
}
footer p.small {
  color: #aaa;
}
