/* Aluminum Industry Color Theme */
:root {
    --primary: #A8A8A8; /* Silver */
    --primary-dark: #888888;
    --primary-light: #C8C8C8;
    --secondary: #8B4513; /* Bauxite Brown */
    --secondary-dark: #654321;
    --secondary-light: #A0522D;
    --accent: #E0E0E0; /* Aluminum */
    --accent-dark: #C0C0C0;
    --accent-light: #F0F0F0;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border: #E0E0E0;
}

/* Hero Section - Updated to match styles.css */
/* Hero Section - Updated to match styles.css */
.hero {
    width: 100%; /* Ensure full width */
    max-width: none; /* Remove max-width constraint */
    margin: 0; /* Remove auto centering */
    padding: 60px 0; /* Remove horizontal padding */
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--surface); /* White background instead of gradient */
}

.hero-content {
    flex: 1;
    max-width: 1200px; /* Constrain content width instead */
    margin: 0 auto; /* Center content */
    padding: 0 20px; /* Add padding only to content */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.page-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    max-width: 1200px; /* Constrain visual width */
    margin: 0 auto; /* Center visual */
    padding: 0 20px; /* Add padding only to visual */
    display: flex;
    justify-content: center;
}

/* Alternative simpler solution if you want the entire hero to be full width */
/*
.hero {
    width: 100%;
    padding: 60px 20px; 
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--surface);
}
*/

/* Aluminum Visual */
.aluminum-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.smelter {
    width: 100px;
    height: 150px;
    background: linear-gradient(to bottom, var(--accent-dark) 0%, var(--accent) 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.smelter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 25px;
    width: 50px;
    height: 20px;
    background: var(--secondary);
    border-radius: 5px 5px 0 0;
}

.aluminum-ingot {
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

.aluminum-ingot::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    border-radius: 3px;
}

.aluminum-extrusion {
    width: 80px;
    height: 120px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

.aluminum-extrusion::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-dark);
    border-radius: 3px;
}

/* Scope 3 Layout */
.scope3-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar */
.scope3-sidebar {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Category Navigation */
.category-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.category-item:hover {
    background-color: var(--accent-light);
    color: var(--text-primary);
}

.category-item.active {
    background-color: var(--primary);
    color: white;
}

.category-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.category-item span:first-of-type {
    flex: 1;
}

.emission-badge {
    background-color: var(--secondary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    background-color: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.action-btn i {
    margin-right: 0.5rem;
}

.total-emissions {
    text-align: center;
    padding: 20px;
    background: #f8f9fa; /* Grey background */
    border-radius: var(--border-radius);
    color: var(--text-dark); /* Changed to dark text for contrast */
    border: 1px solid #e9ecef; /* Optional: add border for definition */
}

.total-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.total-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.total-change {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.total-change.negative {
    color: var(--error);
}

.total-change.positive {
    color: var(--success);
}

.total-change i {
    margin-right: 0.25rem;
}

.data-coverage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    padding: 0.5rem;
    border-radius: 5px;
}

.coverage-label {
    font-size: 0.8rem;
}

.coverage-value {
    font-weight: 600;
}

/* Scope 3 Content */
.scope3-content {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.emission-category {
    display: none;
    padding: 2rem;
}

.emission-category.active {
    display: block;
}

.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.category-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.category-header h2 i {
    margin-right: 0.75rem;
    color: var(--primary);
}

.category-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 168, 168, 0.2);
}

.form-group small {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .scope3-layout {
        grid-template-columns: 1fr;
    }
    
    .scope3-sidebar {
        position: static;
    }
    
    .category-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .aluminum-visual {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .scope3-sidebar, .scope3-content {
        padding: 1rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value, .stat-label {
        display: inline;
    }
}