/* This file is for reusable UI components (navbar, cards, buttons, badges, empty states) */

/* ===========================
   NAVIGATION
=========================== */

.navbar {
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.sf-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 3rem;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--premium);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
}

.brand-title {
    color: var(--text);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--text);
    opacity: 0.75;
    font-size: 0.9rem;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem !important;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white !important;
}

.user-summary {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--text);
}

.user-plan {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.75;
}

.navbar-toggler {
    background-color: var(--primary);
}

/* ===========================
   PAGE HEADER
=========================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ===========================
   CARDS
=========================== */

.sf-card {
    color: var(--text);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: 0.25s ease;
}

.sf-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
}

.dashboard-section {
    margin-bottom: 2rem;
}

.premium-card {
    border: 2px solid rgba(139, 92, 246, 0.25);
    position: relative;
}

.premium-card:hover {
    transform: translateY(-4px);
    transition: 0.25s ease;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* ===========================
   STAT CARDS
=========================== */

.stat-card {
    position: relative;
    overflow: hidden;
    transition: 0.25s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.stat-card h6 {
    font-weight: 700;
    margin-top: 0.5rem;
}

.stat-card small {
    display: inline-block;
    margin-top: auto;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background:
        rgba(79, 70, 229, 0.06);
}

.stat-card {
    height: 100%;
}

.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.10);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.stat-card h5 {
    margin-bottom: 0.25rem;
}

.stat-card p {
    margin: 0;
    color: #6B7280;
}

/* ===========================
   AI CARD
=========================== */

.ai-progress {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #ECECEC;
}

.ai-progress .progress-bar {
    background: var(--premium);
}

/* ===========================
   BUTTONS
=========================== */

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    transition: 0.2s ease;
}

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

.btn-primary:hover {
    background: #4338CA;
    border-color: #4338CA;
}

.btn-danger,
.btn-info,
.btn-warning,
.btn-success {
    color: white;
}

.btn-info:hover,
.btn-warning:hover {
    color: white;
}

.upgrade-btn {
    background: var(--premium);
    color: white;
}

.upgrade-btn:hover {
    background: #7C3AED;
    color: white;
}

/* ===========================
   QUICK ACTIONS
=========================== */

.quick-actions .btn {
    min-width: 240px;
}

/* ===========================
   EMPTY STATE
=========================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.empty-state .btn i {
    color: #ECECEC;
}

.empty-state h5 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 0;
}

/* ===========================
   BADGES
=========================== */

.text-purple {
    color: var(--premium);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.2px;
}

.status-new {
    background: #3B82F6;
}

.status-quoted {
    background: var(--premium);
}

.status-scheduled {
    background: #06B6D4;
}

.status-in_progress {
    background: #f5900b;
}

.status-completed {
    background: #10B981;
}

.status-cancelled {
    background: #EF4444;
}

.status-outdated {
    background: var(--warning);
    color: white;
}

/* ===========================
    QUOTES
=========================== */

.quote-content {
    line-height: 1.5;
    white-space: pre-wrap;
    font-family: inherit;
}

/* ===========================
    DROPDOWNS
=========================== */

.dropdown-menu {
    background: var(--surface);
    border-color: var(--border);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.08);
}

@media screen and (max-width: 768px) {
    .brand-title {        
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.8rem;
    }
}

/* ===========================
   LANDING PAGE
=========================== */

.landing-hero {
    min-height: 650px;
    display: flex;
    align-items: center;
}

.landing-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.landing-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.landing-section-intro {
    max-width: 650px;
    margin-top: 1rem;
}


/* Dashboard preview */

.landing-dashboard-preview {
    padding: 0;
    overflow: hidden;
    transform: rotate(1deg);
}

.landing-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(79, 70, 229, 0.03);
}

.landing-preview-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    margin-right: 5px;
}

.landing-preview-content {
    padding: 1.5rem;
}

.landing-mini-stat {
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem;
}

.landing-mini-stat small {
    display: block;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.landing-mini-stat strong {
    font-size: 1.35rem;
}

.landing-ai-preview {
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.05);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.landing-ai-line {
    height: 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    margin-top: 0.65rem;
}

.landing-ai-line.short {
    width: 65%;
}


/* Feature cards */

.landing-feature-card {
    padding: 2rem;
}

.landing-feature-card:hover {
    transform: translateY(-5px);
}

.landing-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.landing-feature-icon.premium {
    background: rgba(139, 92, 246, 0.1);
    color: var(--premium);
}


/* AI section */

.landing-ai-section {
    padding: 3rem;
    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.07),
            rgba(79, 70, 229, 0.03)
        );
}

.landing-premium-badge {
    background: rgba(139, 92, 246, 0.12);
    color: var(--premium);
    padding: 0.55rem 0.8rem;
}

.landing-benefits li {
    margin-bottom: 1rem;
    font-weight: 500;
}

.landing-benefits i {
    margin-right: 0.6rem;
}

.landing-quote-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.landing-quote-content {
    background: rgba(79, 70, 229, 0.03);
    border-radius: 10px;
    padding: 1.25rem;
}

.landing-quote-content p {
    line-height: 1.7;
}


/* Pricing */

.landing-pricing-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.landing-pricing-card.premium-card {
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.landing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.landing-price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6B7280;
}

.landing-pricing-list {
    margin-bottom: 2rem;
}

.landing-pricing-list li {
    margin-bottom: 0.9rem;
}

.landing-pricing-list i {
    margin-right: 0.5rem;
}

.landing-popular-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--premium);
    color: white;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}


/* Final CTA */

.landing-cta {
    padding-bottom: 5rem !important;
}

.landing-cta .sf-card {
    background:
        linear-gradient(
            135deg,
            rgba(79, 70, 229, 0.08),
            rgba(139, 92, 246, 0.08)
        );
}

.landing-cta-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.landing-cta-text {
    max-width: 550px;
}


/* Responsive */

@media screen and (max-width: 991px) {

    .landing-hero {
        min-height: auto;
        padding-top: 3rem !important;
    }

    .landing-dashboard-preview {
        transform: none;
    }

    .landing-ai-section {
        padding: 2rem;
    }
}

@media screen and (max-width: 576px) {

    .landing-hero h1 {
        font-size: 2.5rem;
    }

    .landing-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .landing-ai-section,
    .landing-pricing-card {
        padding: 1.5rem;
    }
}
