/* ========================================
   DIYS - Design It Yourself Solar
   Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary: #4361ee;
    --primary-dark: #3651d4;
    --primary-light: #5a7fff;

    /* Accent Colors */
    --accent: #f72585;
    --accent-secondary: #7209b7;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;

    /* Neutrals */
    --dark: #0f0f23;
    --dark-light: #1a1a2e;
    --gray-900: #16213e;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(67, 97, 238, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-secondary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-installer {
    color: var(--accent) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    margin-bottom: var(--spacing-lg);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-visual {
    position: relative;
    padding: var(--spacing-xl);
}

.house-illustration {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.house-illustration svg {
    width: 100%;
    height: auto;
}

.floating-label {
    position: absolute;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.label-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.label-2 {
    top: 40%;
    right: 5%;
    animation-delay: 0.5s;
}

.label-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.energy-flow {
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -20; }
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }
}

/* Trust Section */
.trust-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-2xl);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--primary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-top: var(--spacing-sm);
}

/* Problem Section */
.problem-section {
    padding: var(--spacing-3xl) 0;
    background: var(--dark);
    color: var(--white);
}

.problem-section .section-header h2 {
    color: var(--white);
}

.problem-section .section-header p {
    color: var(--gray-400);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.problem-card {
    background: var(--dark-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-700);
}

.problem-icon {
    margin-bottom: var(--spacing-md);
}

.problem-card h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.problem-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-100);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.step {
    display: flex;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-secondary) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.step-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cta-center {
    text-align: center;
}

/* Why DIYS / Comparison Section */
.why-section {
    padding: var(--spacing-3xl) 0;
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.comparison-header {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

.comparison-col {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
}

.comparison-header .them {
    background: rgba(239, 71, 111, 0.2);
    justify-content: center;
}

.comparison-header .us {
    background: rgba(6, 214, 160, 0.2);
    justify-content: center;
}

.comparison-row {
    border-bottom: 1px solid var(--gray-200);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row .label {
    font-weight: 600;
    background: var(--gray-100);
}

.comparison-row .them,
.comparison-row .us {
    justify-content: center;
    text-align: center;
}

.bad {
    color: var(--danger);
    font-weight: 500;
}

.good {
    color: var(--success);
    font-weight: 500;
}

@media (max-width: 600px) {
    .comparison-col {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--warning);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-card p {
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--dark);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Final CTA Section */
.final-cta {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-secondary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

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

.cta-content .btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.cta-subtext {
    margin-top: var(--spacing-md) !important;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    padding: var(--spacing-xs) 0;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-xl);
    text-align: center;
}

.powered-by {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.powered-by strong {
    color: var(--primary-light);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* ========================================
   DESIGN WIZARD STYLES
   ======================================== */

.wizard-page {
    min-height: 100vh;
    background: var(--gray-100);
    padding-top: 80px;
}

.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

/* Progress Bar */
.wizard-progress {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    gap: var(--spacing-sm);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    min-width: 80px;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.progress-step-number {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-step.active .progress-step-number {
    background: var(--primary);
}

.progress-step.completed .progress-step-number {
    background: var(--success);
}

.progress-step-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: center;
}

/* Wizard Card */
.wizard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
}

.wizard-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.wizard-header h2 {
    margin-bottom: var(--spacing-sm);
}

.wizard-header p {
    color: var(--gray-500);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.form-sublabel {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.option-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-card:hover {
    border-color: var(--primary-light);
    background: var(--gray-100);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.option-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.option-card-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.option-card-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Checkbox Options */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.checkbox-option:hover {
    background: var(--gray-200);
}

.checkbox-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.02);
}

.file-upload-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.file-upload-text {
    color: var(--gray-600);
}

.file-upload-text strong {
    color: var(--primary);
}

/* Price Cards */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.price-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

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

.price-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.price-card.popular {
    border-color: var(--accent);
}

.price-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.price-card-tier {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.price-card-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.price-card-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.price-card-desc {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.price-card-features {
    text-align: left;
    list-style: none;
}

.price-card-features li {
    padding: var(--spacing-xs) 0;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.price-card-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 600;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

.wizard-nav .btn {
    min-width: 140px;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.dashboard-page {
    min-height: 100vh;
    background: var(--gray-100);
    padding-top: 80px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.dashboard-header h1 {
    font-size: 1.75rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(255, 209, 102, 0.2);
    color: #d49a00;
}

.status-badge.approved {
    background: rgba(6, 214, 160, 0.2);
    color: #059669;
}

.status-badge.in-progress {
    background: rgba(67, 97, 238, 0.2);
    color: var(--primary);
}

.status-badge.completed {
    background: rgba(6, 214, 160, 0.2);
    color: #059669;
}

/* Design Card */
.design-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.design-card:hover {
    box-shadow: var(--shadow-md);
}

.design-card-image {
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.design-card-content {
    padding: var(--spacing-lg);
}

.design-card-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.design-card-details {
    display: flex;
    gap: var(--spacing-md);
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   INSTALLER PORTAL STYLES
   ======================================== */

.installer-page {
    min-height: 100vh;
    background: var(--gray-100);
    padding-top: 80px;
}

.installer-header {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-xl);
}

.installer-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.installer-header p {
    color: var(--gray-400);
}

.installer-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.installer-stat {
    text-align: center;
}

.installer-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.installer-stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Job Card */
.job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.job-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.job-card-location {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.job-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.job-detail {
    display: flex;
    flex-direction: column;
}

.job-detail-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-detail-value {
    font-weight: 600;
    color: var(--dark);
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-payout {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar label {
    font-weight: 600;
    color: var(--gray-600);
}

.filter-bar select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-lg); }
.mt-3 { margin-top: var(--spacing-xl); }
.mt-4 { margin-top: var(--spacing-2xl); }

.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-xl); }
.mb-4 { margin-bottom: var(--spacing-2xl); }

.hidden { display: none !important; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--gray-500); }

/* Alerts */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-info {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    color: #059669;
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.alert-warning {
    background: rgba(255, 209, 102, 0.1);
    color: #d49a00;
    border: 1px solid rgba(255, 209, 102, 0.2);
}

.alert-danger {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 71, 111, 0.2);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

/* Tabs */
.tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--gray-200);
}

.tab {
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}
