/* ====== Main CSS Import File ====== */

/* Design Tokens & Variables */
@import url('variables.css');

/* Base Styles & Reset */
@import url('base.css');

/* Reusable Components */
@import url('components.css');

/* Layout Styles */
@import url('layout.css');

/* Auth Specific Styles */
@import url('auth.css');

/* Utility Classes */
@import url('utilities.css');

/* Responsive Styles */
@import url('responsive.css');/* Dashboard Contrast Fixes */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--gray-50);
    min-height: calc(100vh - 80px);
}

.welcome-message {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-message p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Config Section */
.config-section {
    margin-bottom: 3rem;
}

.config-section .card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-300);
}

.config-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
}

.config-form {
    max-width: 500px;
}

/* Stats Grid - Better Contrast */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recent Section */
.recent-section .card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-300);
}

.recent-section h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
}

.leads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-item {
    padding: 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
}

.lead-item:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.lead-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.lead-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.1rem;
}

.lead-email {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.lead-score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.score-high {
    background: var(--success);
}

.score-medium {
    background: var(--warning);
}

.score-low {
    background: var(--gray-500);
}

.lead-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--gray-900);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #4338ca);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}/* === Register page quick fixes (no HTML changes) === */

/* 1) Hide the duplicate landing header/footer that this page includes again */
.main-header,
.main-footer {
  display: none !important;
}

/* 2) Remove the empty spacer div that sits between headers */
.main-content {
  display: none !important;
}

/* 3) Make the auth page fill the viewport and center the card nicely */
.auth-main {
  min-height: calc(100vh - 64px); /* leave room for sticky top header */
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #7b80e0 0%, #6f79cf 50%, #6173c2 100%);
}

/* 4) Tighten the sticky header spacing so it doesn’t look tall/empty */
header.sticky.top-0 .py-4 {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

/* 5) Make the auth card pop and cap width */
.auth-container { width: 100%; }
.auth-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(2,6,23,.12);
  background: #fff;
}

/* 6) Reasonable spacing inside the card */
.auth-card-header { margin-bottom: 1rem; }
.auth-form { margin-top: .5rem; }
.auth-links { margin-top: 1rem; }

/* 7) Ensure footer at the very bottom when present */
.auth-footer { margin-top: 0; }
.footer-bottom { padding: 16px 0; }
/* ===== Register Page — No Markup Changes Required ===== */
/* Works with the classes already in your register.php and common header/footer */

/* Page backdrop */
html, body { height: 100%; }
body {
  background: linear-gradient(135deg, #6f79cf, #6273c3 50%, #5a6db7);
  color: #0f172a;
}

/* Header (covers both your possible header variants) */
header.site-header,
header.main-header,
header.bg-gray-50.sticky.top-0 {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
header.site-header .nav,
header.main-header .header-container,
header.bg-gray-50.sticky.top-0 .max-w-7xl {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
}
header .py-4 { padding-top: .5rem !important; padding-bottom: .5rem !important; }

/* Auth layout */
.auth-main {
  min-height: calc(100vh - 64px); /* room for sticky header */
  display: grid;
  place-items: center;
  padding: 28px 16px 32px;
}
.auth-container { width: 100%; }
.auth-card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(2,6,23,.14);
  overflow: hidden;
}
.auth-card-header {
  padding: 22px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f8f9ff, #ffffff);
}
.auth-title { margin: 0 0 6px; font-size: 22px; letter-spacing: .2px; }
.auth-subtitle { margin: 0; color: #475569; }
.auth-subtitle .auth-link-primary { color: #6366f1; font-weight: 700; }

.auth-form { padding: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px){ .form-row { grid-template-columns: 1fr; } }

.form-label { display: block; font-weight: 700; margin: 6px 0; }
.form-label-required { color: #ef4444; margin-left: 4px; }
.form-input {
  width: 100%; padding: 12px;
  border: 1px solid #d9dee8; border-radius: 12px; background: #fff;
  outline: none; transition: box-shadow .2s, border-color .2s;
}
.form-input:focus { border-color: #b4baf0; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.form-hint { color: #6b7280; font-size: 12px; margin-top: 6px; }

/* Account type cards (uses your existing classes) */
.account-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 560px){ .account-type-grid { grid-template-columns: 1fr; } }
.account-type-card {
  position: relative; padding: 14px 14px 14px 48px;
  border: 1px solid #d9dee8; border-radius: 12px; background: #fff;
  cursor: pointer; display: grid; gap: 4px;
}
.account-type-card .account-type-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.account-type-card.selected { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.account-type-radio { position: absolute; opacity: 0; pointer-events: none; }

/* Company section toggle (your IDs/classes preserved) */
#company-field.company-fields { border: 1px dashed #c7cce0; border-radius: 12px; padding: 14px; background: #fafbff; }
#company-field.company-fields:not(.active) { display: none; }

/* Password strength */
.password-strength { margin-top: 8px; }
.strength-bar { height: 8px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; transition: width .25s ease; }
.strength-weak { background: #f43f5e; }
.strength-medium { background: #f59e0b; }
.strength-strong, .strength-very-strong { background: #10b981; }
.strength-text { font-size: 12px; color: #475569; margin-top: 6px; }

/* Alerts */
.form-error, .form-success {
  margin: 12px 22px 0; padding: 12px 14px; border-radius: 10px; font-weight: 600;
}
.form-error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.form-success { color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0; }

/* Terms + Submit */
.checkbox-group { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.checkbox-input { margin-top: 2px; transform: scale(1.1); }
.auth-link-primary { color: #6366f1; font-weight: 700; }
.auth-button {
  width: 100%; margin-top: 14px; padding: 13px 16px; border: 0; border-radius: 12px;
  font-weight: 800; color: #fff; background: linear-gradient(135deg,#7c83f8,#6366f1);
  box-shadow: 0 10px 24px rgba(99,102,241,.35); cursor: pointer;
}
.auth-button:hover { filter: brightness(.98); }

.auth-links { padding: 0 22px 22px; }
.auth-text-muted { color: #6b7280; }

/* Footer variants */
footer.auth-footer, footer.main-footer, footer.site-footer {
  color: #e7e9ffb5;
}
footer .footer-container, footer .fwrap {
  max-width: 1120px; margin: 0 auto; padding: 22px 16px 34px;
}
footer .footer-bottom, footer .fbottom {
  border-top: 1px solid rgba(255,255,255,.25); margin-top: 18px; padding-top: 14px;
  color: #e7e9ffb5;
}
