/* PublicInsights Pano Vehicles - Professional SaaS Styling */
:root {
    --pi-dark-primary: #281E52;
    --pi-purple-primary: #5E49BB;
    --pi-purple-light: #C4BCFF;
    --pi-purple-accent: #9A53FF;
    --pi-white: #FFFFFF;
    --pi-gray-light: rgba(255, 255, 255, 0.1);
    --pi-gray-medium: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, var(--pi-dark-primary) 0%, var(--pi-purple-primary) 100%);
    min-height: 100vh;
    color: var(--pi-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.navbar {
    background: var(--pi-dark-primary) !important;
    border-bottom: 1px solid var(--pi-gray-light);
    backdrop-filter: blur(10px);
    border-top: 4px solid var(--pi-white);
}

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

.logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-text {
    color: var(--pi-white) !important;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.tool-name {
    color: var(--pi-purple-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--pi-purple-primary) 0%, var(--pi-purple-accent) 100%);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid var(--pi-gray-light);
    box-shadow: 0 20px 40px rgba(40, 30, 82, 0.3);
}

.hero-section h1 {
    color: var(--pi-white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section p {
    color: var(--pi-purple-light);
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pi-gray-light);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(158, 83, 255, 0.2);
    border-color: var(--pi-purple-accent);
}

.feature-icon {
    color: var(--pi-purple-accent);
}

.feature-card h5 {
    color: var(--pi-white);
    font-weight: 600;
}

.feature-card p {
    color: var(--pi-purple-light);
    opacity: 0.9;
}

/* Buttons */
.btn-analyze {
    background: linear-gradient(135deg, var(--pi-purple-accent) 0%, var(--pi-purple-primary) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    color: var(--pi-white);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(158, 83, 255, 0.3);
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(158, 83, 255, 0.4);
    color: var(--pi-white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--pi-purple-light);
    color: var(--pi-purple-light);
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--pi-purple-light);
    color: var(--pi-dark-primary);
    transform: translateY(-1px);
}

/* Search Button Enhancement */
.btn-search {
    background: linear-gradient(135deg, var(--pi-purple-accent) 0%, var(--pi-purple-primary) 100%);
    border: 2px solid var(--pi-purple-accent);
    color: var(--pi-white);
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(158, 83, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--pi-purple-light) 0%, var(--pi-purple-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(158, 83, 255, 0.6);
    color: var(--pi-white);
    border-color: var(--pi-purple-light);
}

.btn-search:focus {
    box-shadow: 0 0 0 0.2rem rgba(158, 83, 255, 0.5);
    color: var(--pi-white);
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--pi-gray-light);
    border-radius: 12px;
    color: var(--pi-white);
    padding: 12px 16px;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--pi-purple-accent);
    box-shadow: 0 0 0 0.2rem rgba(158, 83, 255, 0.25);
    color: var(--pi-white);
}

.form-control::placeholder {
    color: var(--pi-purple-light);
    opacity: 0.7;
}

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pi-gray-light);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pi-gray-light);
    border-radius: 15px;
    color: var(--pi-white);
}

.card-header {
    background: var(--pi-purple-primary);
    border-bottom: 1px solid var(--pi-gray-light);
    color: var(--pi-white);
    font-weight: 600;
}

/* Tables */
.table-dark {
    --bs-table-bg: var(--pi-dark-primary);
    --bs-table-border-color: var(--pi-gray-light);
    --bs-table-color: var(--pi-white);
}

.table-dark th {
    background: var(--pi-purple-primary);
    border-color: var(--pi-gray-light);
    color: var(--pi-white);
}

.table-dark td {
    background: var(--pi-dark-primary);
    border-color: var(--pi-gray-light);
    color: var(--pi-white);
}

/* Vehicle Cards - Fix White Text on White Background */
.card-body h6 {
    color: var(--pi-white) !important;
}

.card-body p {
    color: var(--pi-purple-light) !important;
}

.card-body .text-muted {
    color: var(--pi-purple-light) !important;
}

/* Badge Styling for Better Contrast */
.badge {
    background-color: var(--pi-purple-accent) !important;
    color: var(--pi-white) !important;
}

/* Alerts and Status */
.alert-info {
    background: rgba(196, 188, 255, 0.1);
    border: 1px solid var(--pi-purple-light);
    color: var(--pi-white);
}

.alert-success {
    background: rgba(158, 83, 255, 0.1);
    border: 1px solid var(--pi-purple-accent);
    color: var(--pi-white);
}

/* Loading States */
.loading-spinner {
    color: var(--pi-purple-accent);
}

/* Vehicle Images */
.vehicle-image {
    border: 2px solid var(--pi-purple-accent);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(158, 83, 255, 0.2);
}

/* Panorama Preview */
.panorama-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pi-gray-light);
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Date Selector */
.date-selector {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pi-gray-light);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--pi-purple-primary) 0%, var(--pi-purple-accent) 100%);
    border: none;
    border-radius: 15px;
    color: var(--pi-white);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pi-white);
}

.stat-label {
    color: var(--pi-purple-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .tool-name {
        font-size: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .navbar-text {
        text-align: right;
    }
}

/* Footer */
.footer {
    background: var(--pi-dark-primary);
    border-top: 1px solid var(--pi-gray-light);
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--pi-purple-light);
}