/* Power Buddy Website Styles */

:root {
    --primary-color: #FF69B4;  /* Pink */
    --secondary-color: #ADD8E6; /* Light Blue */
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Override Bootstrap primary and secondary colors */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
}
.btn-primary:hover {
    background-color: #e55aa0;
    border-color: #e55aa0;
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
}
.btn-secondary:hover {
    background-color: #9bc4d9;
    border-color: #9bc4d9;
    color: #000;
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
}

/* Table styles */
.table-primary {
    background-color: var(--primary-color);
    color: white;
}
.border-primary {
    border-color: var(--primary-color) !important;
}
.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Dynamic Banner */
.dynamic-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF69B4 0%, #87CEEB 100%);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    width: 100%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.banner-text {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.9);
}

.banner-image {
    height: 250px;
    width: 100%;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

.bg-audit,
.bg-solar,
.bg-insulation,
.bg-hotwater,
.bg-ev,
.bg-expert {
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.bg-audit      { background-image: linear-gradient(rgba(255,105,180,0.18), rgba(173,216,230,0.18)), url('/static/images/banner-audit.png'); }
.bg-solar      { background-image: linear-gradient(rgba(173,216,230,0.18), rgba(152,251,152,0.18)), url('/static/images/banner-solar.png'); }
.bg-insulation { background-image: linear-gradient(rgba(255,182,193,0.18), rgba(255,215,0,0.18)),  url('/static/images/banner-insulation.png'); }
.bg-hotwater   { background-image: linear-gradient(rgba(135,206,235,0.18), rgba(255,182,193,0.18)), url('/static/images/banner-hotwater.png'); }
.bg-ev         { background-image: linear-gradient(rgba(147,112,219,0.20), rgba(135,206,235,0.20)), url('/static/images/banner-ev.png'); }
.bg-expert     { background-image: linear-gradient(rgba(255,105,180,0.18), rgba(135,206,235,0.18)), url('/static/images/banner-expert.png'); }

@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }
    .banner-text {
        font-size: 1rem;
    }
    .dynamic-banner {
        height: 300px;
    }
    .banner-image {
        height: 180px;
        margin-top: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Feature Cards */
.feature-card {
    padding: 2rem 1rem;
    border-radius: 10px;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    margin-bottom: 1rem;
}

/* Feature Stats */
.feature-stat h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Calculator Preview */
.calculator-preview {
    max-width: 400px;
    margin: 0 auto;
}

.energy-demo .progress {
    height: 10px;
}

/* Energy Stats */
.energy-stat h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Section Styles */
.section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.section:last-child {
    border-bottom: none;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    border-radius: 15px;
    margin: 2rem 0;
}

/* Special Offers Styles */
.offer-content {
    padding: 1rem;
}

.price-display h1 {
    color: var(--primary-color);
}

.features-grid .feature-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.features-grid .feature-item:last-child {
    border-bottom: none;
}

.savings-highlight {
    background: linear-gradient(135deg, #fff0f5, #f0f8ff);
    border-left: 4px solid var(--primary-color);
}

/* Finance Plans */
.finance-plan .card {
    transition: transform 0.3s ease;
}

.finance-plan .card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-stat h3 {
        font-size: 1.5rem;
    }
    
    .energy-stat h3 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Admin Panel Styles */
#adminPanel {
    border: 2px solid #28a745;
}

#adminLoginCard {
    border: 2px solid #ffc107;
}

/* Chart Container */
#energyChart {
    min-height: 400px;
}

/* Utility Classes */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

/* Navigation Enhancements */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}