/* Global Styles - Aerospace Theme */
body {
    font-family: 'Inter', -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 400;
    background: hsl(230, 45%, 4%);
    color: hsl(210, 20%, 98%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Remove any list styling dots */
ul, ol {
    list-style: none;
    padding-left: 0;
}

/* Ensure consistent text colors in breakdown */
#breakdownSection .text-muted {
    color: hsl(210, 20%, 70%) !important;
}

#projectDetails {
    background: rgba(248, 249, 252, 0.03) !important;
    border-color: rgba(38, 118, 210, 0.2) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
    color: hsl(210, 20%, 98%);
}

.btn, .card-header {
    font-family: 'Inter', -apple-system, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
}

/* Override Bootstrap Variables - Aerospace Theme */
:root {
    --bs-primary: hsl(218, 85%, 35%);
    --bs-primary-rgb: 38, 118, 210;
    --bs-secondary: hsl(210, 20%, 98%);
    --bs-secondary-rgb: 248, 249, 252;
    --bs-success: #28a745;
    --bs-dark: hsl(230, 45%, 4%);
    --bs-body-bg: hsl(230, 45%, 4%);
    --bs-body-color: hsl(210, 20%, 98%);
    --bs-gradient: linear-gradient(135deg, hsl(218, 100%, 50%), hsl(218, 85%, 65%));
}

/* Progress Bar */
#progressBarContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bs-secondary-bg);
    height: 6px;
    z-index: 1000;
}

#progressBar {
    width: 0;
    background: var(--bs-gradient);
    height: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px hsl(218, 100%, 50%);
}

/* Map Styles */
#map {
    width: 100%;
    height: 450px;
    border-radius: 4px;
}

/* Hide Google Maps controls and attribution */
#map .gm-style-cc,
#map .gmnoprint,
#map .gm-control-active,
#map a[href^="https://maps.google.com/maps"],
#map a[title="Report errors in the road map or imagery to Google"],
#map div[style*="background-color: rgb(245, 245, 245)"] {
    display: none !important;
}

/* Canvas Output */
canvas#canvasOutput {
    width: 100%;
    border-radius: 4px;
    margin: 0 auto;
    display: none;
}

/* Professional Aerospace Theme Enhancements */
.card {
    background: rgba(248, 249, 252, 0.05);
    border: 1px solid rgba(38, 118, 210, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(38, 118, 210, 0.1);
}

.card-header {
    background: var(--bs-gradient) !important;
    color: white !important;
    font-weight: 700;
    border-bottom: 2px solid hsl(218, 85%, 35%);
}

.btn-primary {
    background: var(--bs-gradient);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 118, 210, 0.4);
    background: linear-gradient(135deg, hsl(218, 100%, 60%), hsl(218, 85%, 75%));
}

.btn-secondary {
    background: rgba(248, 249, 252, 0.1);
    border: 1px solid hsl(218, 85%, 35%);
    color: hsl(210, 20%, 98%);
    font-weight: 500;
}

.btn-secondary:hover {
    background: hsl(218, 85%, 35%);
    color: white;
}

/* Customer Quote Display */
#customerQuoteTotal {
    background: var(--bs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(38, 118, 210, 0.3);
}

/* Professional Typography */
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Breakdown Section - matching dark theme */
#breakdownSection {
    background: rgba(248, 249, 252, 0.05) !important;
    border: 1px solid rgba(38, 118, 210, 0.2) !important;
}

/* Image Gallery */
.image-gallery img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.image-gallery img.selected-roof {
    border: 3px solid #0066FF;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.7);
}

.image-gallery p {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .image-gallery img {
        height: 80px;
    }
    
    .image-gallery p {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
    
    #map {
        height: 250px;
    }
    
    .card-body {
        padding: 1rem 0.75rem;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    h1 {
        font-size: 1.6rem !important;
    }
    
    .card-header h2 {
        font-size: 1.1rem !important;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Steps Transition */
.card {
    transition: all 0.3s ease-in-out;
}

/* Panel Styling */
.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(26, 95, 230, 0.1) !important;
}

/* CTA Buttons */
.btn-primary {
    background-color: #1A5FE6;
    border-color: #1A5FE6;
}

.btn-primary:hover {
    background-color: #1550CC;
    border-color: #1550CC;
}

.btn-cta {
    background-color: #0066FF !important;
    border-color: #0066FF !important;
}

.btn-cta:hover {
    background-color: #0052CC !important;
    border-color: #0052CC !important;
}

/* Card styling */
.card {
    background-color: rgba(248, 249, 250, 0.05);
    border: 1px solid rgba(248, 249, 250, 0.1);
}

/* Form controls */
.form-control, .form-select, .form-range {
    background-color: rgba(248, 249, 250, 0.1);
    border-color: rgba(248, 249, 250, 0.2);
    color: #F8F9FA;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(248, 249, 250, 0.15);
    border-color: #1A5FE6;
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 230, 0.25);
    color: #F8F9FA;
}

/* Results Page */
#results .display-5 {
    font-weight: bold;
}

/* Fix for Bootstrap Icons */
.bi {
    line-height: 1;
    vertical-align: middle;
}
