/* SolarPro Platform - Modern Solar Design System */
:root {
    --primary-color: #0d9488;      /* Vibrant Teal Green */
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --solar-yellow: #f59e0b;       /* Solar Sun Amber */
    --solar-orange: #ea580c;
    --solar-gradient: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    --sun-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --card-hover: 0 20px 40px rgba(13, 148, 136, 0.15);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Navbar */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}
.navbar-brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand-logo i {
    color: #f59e0b;
    font-size: 1.8rem;
}
.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: #0d9488 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0d9488 150%);
    color: #ffffff;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 15px;
}
.hero-title span {
    background: linear-gradient(90deg, #f59e0b, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-card-cta {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    color: #1e293b;
}

/* Buttons */
.btn-solar-primary {
    background: var(--solar-gradient);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-solar-primary:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}
.btn-solar-accent {
    background: var(--sun-gradient);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-solar-accent:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}
.btn-solar-outline {
    border: 2px solid #0d9488;
    color: #0d9488;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 22px;
    background: transparent;
}
.btn-solar-outline:hover {
    background: #0d9488;
    color: #ffffff;
}

/* Solar Cards */
.solar-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}
.solar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover);
    border-color: #99f6e4;
}
.solar-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
}
.icon-teal { background: #ccfbf1; color: #0f766e; }
.icon-amber { background: #fef3c7; color: #b45309; }
.icon-blue { background: #e0f2fe; color: #0369a1; }
.icon-purple { background: #f3e8ff; color: #7e22ce; }

/* Section Titles */
.section-tag {
    color: #0d9488;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 8px;
}
.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

/* Calculator Card */
.calculator-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.calc-result-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    color: #ffffff;
    padding: 30px;
}
.calc-metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #38bdf8;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Pipeline / Status Badges */
.badge-pipeline {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 50px;
}
.status-new { background: #dbeafe; color: #1e40af; }
.status-contacted { background: #e0e7ff; color: #3730a3; }
.status-site_visit { background: #fef3c7; color: #92400e; }
.status-quotation { background: #ccfbf1; color: #115e59; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-completed { background: #22c55e; color: #ffffff; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* Dashboard Sidebar */
.dashboard-sidebar {
    min-height: 100vh;
    background: #0f172a;
    color: #94a3b8;
    padding: 20px 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
}
.sidebar-link:hover, .sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #0d9488;
}

/* Dashboard Topbar */
.dashboard-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 30px;
}

/* Dashboard Metric Cards */
.metric-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}
.metric-card .metric-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2.5rem;
    opacity: 0.15;
}

/* Admin Responsive Rules */
@media (max-width: 991.98px) {
    #adminWrapper {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        min-height: auto !important;
        padding: 10px 0 !important;
    }
    .dashboard-sidebar .py-3 {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 12px !important;
    }
    .dashboard-sidebar .sidebar-link {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
        border-left: none !important;
    }
    .dashboard-sidebar .px-3.pt-3 {
        display: none !important;
    }
    .dashboard-topbar {
        padding: 10px 15px;
    }
}

/* Print Styling for Quotation */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-quotation, #printable-quotation * {
        visibility: visible;
    }
    #printable-quotation {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        box-shadow: none !important;
        border: none !important;
    }
    .no-print {
        display: none !important;
    }
}
