/* ============================================================
   GeoLead Design System — Apollo/Stripe-inspired SaaS aesthetic
   ============================================================ */

/* ---- Base & Typography ---- */

html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

/* ---- Focus rings ---- */
.btn:focus, .btn:active:focus,
.form-control:focus, .form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
    outline: none;
}

/* ============================================================
   Navigation
   ============================================================ */

.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a !important;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    color: #475569 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    transition: color 0.15s;
}

.navbar .nav-link:hover {
    color: #0f172a !important;
}

.navbar .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    padding: 0.4rem;
    background-color: #ffffff;
}

.navbar .dropdown-item {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.45rem 0.85rem;
    transition: background 0.12s;
}

.navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.navbar .dropdown-divider {
    border-color: #e2e8f0;
    margin: 0.3rem 0;
}

/* ---- Navbar toggler (mobile) ---- */
.navbar-toggler {
    border-color: #cbd5e1;
}

/* ============================================================
   Buttons — custom primary overriding Bootstrap blue
   ============================================================ */

/* Universal smooth lift on all buttons */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: none;
}

/* Primary — dark slate overriding Bootstrap blue */
.btn-primary {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.btn-primary:disabled {
    background-color: #94a3b8;
    border-color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    color: #0f172a;
    border-color: #0f172a;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.btn-outline-secondary {
    color: #475569;
    border-color: #cbd5e1;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ============================================================
   Form controls
   ============================================================ */

input[type='text'],
input[type='number'],
input[type='email'],
input[type='password'],
select,
.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

input[type='text']:focus,
input[type='number']:focus,
input[type='email']:focus,
input[type='password']:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input:not([type='checkbox']):not([type='radio']):disabled,
select:disabled,
.form-control:disabled,
.form-select:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}

/* Checkbox alignment */
.form-check-input {
    border-color: #cbd5e1;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0f172a;
    border-color: #0f172a;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0;
    margin-bottom: 0.3rem;
}

.form-check .form-check-input {
    margin-left: 0;
}

.form-check-label {
    cursor: pointer;
    line-height: 1.4;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    background-color: #ffffff;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0 !important;
    font-size: 0.82rem;
}

.card-header.step-header {
    background-color: #ffffff;
    border-left: 3px solid #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-left: 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
}

/* ============================================================
   Tables — clean, no vertical borders
   ============================================================ */

.table {
    --bs-table-border-color: #e2e8f0;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
}

.table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    vertical-align: middle;
}

/* Remove all vertical borders */
.table td, .table th {
    border-left: none !important;
    border-right: none !important;
}

.table tbody tr {
    transition: background-color 0.12s ease-in-out;
    cursor: pointer;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: #f8fafc;
}

/* ---- Industry pill badge ---- */
.badge-saas {
    display: inline-block;
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ---- Empty state ---- */
.table-empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.table-empty-state .empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #94a3b8;
    font-size: 1.4rem;
}

.table-empty-state .empty-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.table-empty-state .empty-hint {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ============================================================
   Map container
   ============================================================ */

#map {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 46, 0.06);
}

/* ============================================================
   Badges
   ============================================================ */

.badge.bg-secondary {
    background-color: #e2e8f0 !important;
    color: #475569;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background-color: #0f172a !important;
}

#credits-badge {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
    border-radius: 20px;
    font-weight: 600;
    padding: 0.3em 0.8em;
}

/* ============================================================
   Alerts & Modals
   ============================================================ */

.alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

.modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

/* ============================================================
   Sidebar
   ============================================================ */

.prospecting-sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    border-color: #e2e8f0 !important;
    font-size: 0.82rem;
    color: #94a3b8;
    padding: 1rem 0;
}

/* ============================================================
   Utility
   ============================================================ */

.text-slate       { color: #475569; }
.text-slate-dark  { color: #1e293b; }
.bg-slate-50      { background-color: #f8fafc; }

::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: #f1f5f9; }
::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }