/* حاسبة الفاتورة الكهربائية - Styles */

.electricity-calculator-container {
    max-width: 550px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Cairo', 'Tajawal', 'Arial', sans-serif;
    direction: rtl;
}

.calculator-card {
    background: linear-gradient(135deg, #8b8b8b 0%, #5a5a5a 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.calculator-title {
    color: white;
    text-align: center;
    font-size: 32px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.calculator-form {
    background: #e8e8e8;
    padding: 30px;
    border-radius: 10px;
}

.form-description {
    text-align: center;
    color: #444;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.calculation-type {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

.usage-type {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.usage-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.usage-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.residential-label {
    color: #0066cc;
}

.commercial-label {
    color: #e74c3c;
}

.input-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.result-container {
    margin-top: 25px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    animation: slideIn 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    background: white;
    padding: 25px 20px;
    border-bottom: 3px solid #e8e8e8;
}

.result-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.result-row span:first-child {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
}

.result-row span:last-child {
    color: #333;
    font-size: 16px;
    text-align: right;
}

.tier-number {
    color: #e74c3c !important;
}

.result-details {
    padding: 25px 20px;
    background: white;
}

.detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-value {
    color: #e74c3c;
    font-weight: bold;
    font-size: 17px;
    text-align: left;
}

.detail-label {
    color: #333;
    font-size: 16px;
    text-align: right;
}

.total-row {
    border-bottom: none;
    border-top: 3px solid #e8e8e8;
    margin-top: 12px;
    padding-top: 18px;
}

.total-row .detail-value {
    font-size: 20px;
    color: #e74c3c;
}

.total-row .detail-label {
    font-weight: bold;
    font-size: 17px;
}

.result-note {
    margin: 0;
    padding: 18px 20px;
    font-size: 14px;
    color: #555;
    text-align: center;
    line-height: 1.8;
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .electricity-calculator-container {
        padding: 10px;
    }
    
    .calculator-card {
        padding: 20px 15px;
    }
    
    .calculator-form {
        padding: 20px 15px;
    }
    
    .calculation-type,
    .usage-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .calculator-title {
        font-size: 24px;
    }
    
    .result-row,
    .detail-row {
        grid-template-columns: 100px 1fr;
        gap: 10px;
    }
    
    .result-row span:first-child,
    .detail-value {
        font-size: 15px;
    }
    
    .result-row span:last-child,
    .detail-label {
        font-size: 14px;
    }
    
    .total-row .detail-value {
        font-size: 17px;
    }
}