/* Solar Calculator V2 Styles */
.calculator-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.calculator-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.calculator-main {
    padding: 40px 0;
    background: #f8f9fa;
}

.calculator-grid {
    display: grid;
    gap: 30px;
}

.calc-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calc-section h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.section-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Appliance Categories */
.appliance-categories {
    display: grid;
    gap: 30px;
}

.category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.category h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Appliance Items */
.appliance-list {
    display: grid;
    gap: 15px;
}

.appliance-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.appliance-row {
    display: grid;
    grid-template-columns: 200px 1fr auto auto;
    gap: 15px;
    align-items: center;
}

.appliance-name {
    font-weight: 600;
    color: #333;
}

.appliance-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.quantity,
.usage-hours {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Custom Appliance */
.custom-appliance {
    margin-top: 30px;
    padding: 20px;
    background: #f0f4f8;
    border-radius: 8px;
}

.custom-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.custom-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-form button {
    padding: 10px 20px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.custom-form button:hover {
    background: #1e3c72;
}

/* Usage Settings */
.usage-settings {
    display: grid;
    gap: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.setting-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.setting-item small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

/* Results Section */
.results-section {
    background: #f8f9fa;
}

.consumption-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 6px;
}

.summary-item .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.summary-item .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
}

/* Recommendations */
.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.recommendation-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.recommendation-item h4 {
    color: #2a5298;
    margin-bottom: 10px;
}

.recommendation-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.recommendation-item small {
    color: #666;
    font-size: 0.85rem;
}

/* Appliances Summary Table */
.appliances-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.appliances-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.appliances-summary th,
.appliances-summary td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.appliances-summary th {
    background: #f0f4f8;
    font-weight: 600;
    color: #1e3c72;
}

.appliances-summary small {
    color: #666;
    font-size: 0.85rem;
}

.appliances-summary tfoot th {
    background: #1e3c72;
    color: white;
    font-size: 1.1rem;
}

.remove-btn {
    padding: 4px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.remove-btn:hover {
    background: #c82333;
}

.critical-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.non-critical-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.primary-btn,
.secondary-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background: #2a5298;
    color: white;
}

.primary-btn:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

.secondary-btn {
    background: white;
    color: #2a5298;
    border: 2px solid #2a5298;
}

.secondary-btn:hover {
    background: #f0f4f8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .appliance-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .custom-form {
        grid-template-columns: 1fr;
    }
    
    .summary-grid,
    .recommendations {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .appliances-summary {
        overflow-x: auto;
    }
    
    .appliances-summary table {
        min-width: 600px;
    }
}