/* Main Styles for Anodes Incorporate Solar Proposal */

:root {
    --primary-color: #8e44ad;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #8e44ad 50%, #3498db 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
    padding-top: 80px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
}

.logo img {
    max-height: 60px;
}

.company-details p {
    margin-bottom: 5px;
    font-size: 14px;
}

.company-details i {
    color: var(--primary-color);
    margin-right: 5px;
}

.company-details a {
    color: var(--text-color);
    text-decoration: none;
}

.company-details a:hover {
    color: var(--primary-color);
}

/* Layout Styles */
.page-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

/* Navigation Styles */
.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 5px;
}

.sidebar nav ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover, 
.sidebar nav ul li a.active {
    background-color: rgba(142, 68, 173, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.download-btn {
    padding: 20px;
    text-align: center;
    position: sticky;
    bottom: 0;
    background-color: white;
}

.download-btn button {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    padding: 10px;
}

/* Page Styles */
.page {
    display: none;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.page.active {
    display: block;
}

.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
}

.page-header h2 {
    margin: 0;
    font-weight: 600;
}

.page-content {
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(142, 68, 173, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #7d3c98;
    border-color: #7d3c98;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-collapse: collapse;
}

.table th, 
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-dark {
    color: white;
    background-color: var(--dark-color);
}

/* Card Styles */
.mission-vision, 
.values, 
.expertise-item, 
.certification-item,
.recommendation-box,
.component-card,
.finance-card,
.roi-card,
.phase-card,
.inclusion-card,
.exclusion-card,
.terms-card,
.warranty-card,
.maintenance-card,
.project-card,
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
}

/* Company Profile Page */
.expertise-item, 
.certification-item {
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.expertise-item:hover, 
.certification-item:hover {
    transform: translateY(-5px);
}

.expertise-item i, 
.certification-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Energy Assessment Page */
.recommendation-box {
    text-align: center;
    padding: 20px;
}

.result-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.calculation-note {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Bill of Materials Page */
.component-card {
    margin-bottom: 30px;
}

.component-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.component-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Pricing Structure Page */
.finance-card {
    height: 100%;
}

.finance-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ROI Analysis Page */
.roi-card {
    text-align: center;
    padding: 20px;
}

.roi-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    height: 300px;
}

/* Scope of Work Page */
.phase-card {
    margin-bottom: 20px;
}

.phase-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.phase-card i {
    margin-right: 10px;
}

.inclusion-card, 
.exclusion-card {
    height: 100%;
}

.inclusion-card h4, 
.exclusion-card h4 {
    margin-bottom: 15px;
}

.inclusion-card i {
    color: var(--success-color);
}

.exclusion-card i {
    color: var(--accent-color);
}

/* Terms & Conditions Page */
.terms-card {
    margin-bottom: 20px;
}

.terms-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Warranty Details Page */
.warranty-card, 
.maintenance-card {
    height: 100%;
}

.warranty-card h4, 
.maintenance-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Project References Page */
.project-card {
    height: 100%;
    overflow: hidden;
}

.project-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    padding: 15px;
}

.project-details h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-card {
    height: 100%;
    padding: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    text-align: right;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
    
    .content {
        margin-left: 0;
    }
    
    .download-btn {
        position: static;
    }
    
    .company-details {
        text-align: left;
        margin-top: 15px;
    }
}

/* Print Styles for PDF Generation */
@media print {
    body {
        padding-top: 0;
    }
    
    header {
        position: static;
    }
    
    .page-container {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    .content {
        margin-left: 0;
    }
    
    .page {
        display: block;
        margin-bottom: 20px;
        page-break-after: always;
    }
    
    .chart-container {
        height: auto;
    }
}