/* ===============================
   CSS Variables
================================= */

:root {
    --aq-primary: #1e2a4a;
    --aq-primary-light: #2d3d66;
    --aq-primary-dark: #0f172a;
    --aq-accent: #22c55e;
    --aq-accent-hover: #16a34a;
    --aq-accent-light: rgba(34, 197, 94, 0.1);
    --aq-text: #0f172a;
    --aq-text-muted: #64748b;
    --aq-bg-light: #f8fafc;
    --aq-bg-alt: #f1f5f9;
    --aq-border: #e2e8f0;
    --aq-card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --aq-card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.08);
    --aq-radius: 12px;
    --aq-radius-lg: 20px;
    --aq-visit: #1e2a4a;
    --aq-visit-soft: #eef2ff;
}


/* ===============================
   App Shell
================================= */

body.app-bg {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fc;
    color: #1f2937;
}

.app-navbar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    backdrop-filter: blur(6px);
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #111827;
}

.app-logo-img {
    height: 45px;
    width: auto;
}

    .app-logo:hover {
        color: #2563eb;
    }

.app-container {
    margin-top: 3rem;
}

.btn {
    border-radius: 8px;
}

.btn-primary {
    background-color: var(--aq-primary);
    border-color: var(--aq-primary);
}

.btn-primary:hover {
    background-color: var(--aq-primary-light);
    border-color: var(--aq-primary-light);
}

.card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-light {
    background-color: transparent;
}

    .btn-light:hover {
        background-color: #f3f4f6;
        border-radius: 6px;
    }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ===============================
   Artisan Layout
================================= */

.artisan-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: width 0.2s ease, padding 0.2s ease, border 0.2s ease;
    overflow: hidden;
}

.artisan-sidebar.sidebar-collapsed {
    width: 64px;
    padding: 1.5rem 0.5rem;
}

.sidebar-collapsed .sidebar-logo {
    justify-content: center;
}

.sidebar-collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar-link {
    color: #374151;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

    .sidebar-link:hover {
        background-color: #f3f4f6;
        color: #111827;
    }

    .sidebar-link.active {
        background-color: #eef2ff;
        color: #2563eb;
        font-weight: 600;
    }

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 10px;
}

.sidebar-collapsed .sidebar-link-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.artisan-topbar {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}



/* ===============================
   AVATAR EMAIL
================================= */

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: default;
    user-select: none;
}


/* ===============================
   Landing Page
================================= */

.landing-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--aq-text);
}

.landing-page .btn-success {
    background: linear-gradient(135deg, var(--aq-accent) 0%, var(--aq-accent-hover) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.landing-page .btn-success:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    filter: brightness(1.05);
}

/* ---- Navbar ---- */
.landing-navbar {
    padding: 0.875rem 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--aq-border);
    box-shadow: none;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--aq-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.landing-logo {
    height: 45px;
    width: auto;
}

.landing-brand:hover {
    color: var(--aq-primary-light);
}

.landing-nav-link {
    color: var(--aq-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
}

.landing-nav-link:hover {
    color: var(--aq-primary);
}

/* ===============================
   Partners nav pill
================================= */

.partners-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--aq-primary);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(30, 42, 74, 0.22);
}

.partners-nav-pill:hover {
    background: var(--aq-primary-light);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 42, 74, 0.3);
}

/* ===============================
   Required field indicator
================================= */

label.required::after {
    content: " *";
    color: #ef4444;
}

/* ===============================
   Lead Intent Badges
================================= */

.lead-badge-Interested {
    background: #f0fdf4;
    color: #16a34a;
}

.lead-badge-Declined {
    background: #fef2f2;
    color: #dc2626;
}

.lead-badge-Pending {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.lead-badge-FinancingInterested {
    background: #eff6ff;
    color: #1d4ed8;
}
