/* Styles for new modules and enhancements */

/* Divider for new modules section */
.modules-divider {
    width: 100%;
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.modules-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.modules-divider-label {
    display: inline-block;
    padding: 0 20px;
    background-color: white;
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Carbon Emissions Estimator */
.emissions-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.co2-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.emissions-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
    width: 100%;
}

.emissions-detail-item {
    padding: 10px 15px;
    margin: 5px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.emissions-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

.emissions-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.emissions-note a:hover {
    text-decoration: underline;
}

/* SDG/ESG Oversight Panel */
.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sustainability-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.sustainability-item.active {
    background-color: rgba(40, 167, 69, 0.1);
}

.sustainability-item.inactive {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--gray-color);
}

.indicator-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
}

.active .indicator-icon {
    background-color: #28a745;
    color: white;
}

.inactive .indicator-icon {
    background-color: #e9ecef;
    color: #adb5bd;
}

.indicator-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Master Planning Insight */
.planning-insight-content {
    padding: 20px;
    background-color: rgba(0, 86, 179, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.insight-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.insight-note {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
}

/* Fallback styling */
.fallback-mode {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    color: #6c757d;
}

.fallback-message {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 10px 0;
}

.fallback-message p {
    margin: 0;
    color: var(--gray-color);
}

.fallback-message .icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Animation for new modules */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.new-module {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .sustainability-grid {
        grid-template-columns: 1fr;
    }
    
    .emissions-details {
        flex-direction: column;
    }
    
    .emissions-detail-item {
        width: 100%;
        margin: 5px 0;
    }
    
    .co2-value {
        font-size: 2rem;
    }
    
    .insight-text {
        font-size: 1rem;
    }
}
