/* Loan EMI Calculator - Main Styles */
.lec-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lec-header {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.lec-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.lec-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.lec-form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lec-input-group {
    margin-bottom: 25px;
}

.lec-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lec-input-with-icon {
    position: relative;
    margin-bottom: 15px;
}

.lec-input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 18px;
}

.lec-input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lec-input-with-icon input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.lec-slider-container {
    margin-top: 10px;
}

.lec-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 4px;
    outline: none;
    margin: 10px 0;
}

.lec-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #3498db;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.lec-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.lec-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.lec-tenure-options {
    margin-bottom: 15px;
}

.lec-radio-group {
    display: flex;
    gap: 20px;
}

.lec-radio-group input[type="radio"] {
    display: none;
}

.lec-radio-group label {
    padding: 8px 20px;
    background: #ecf0f1;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lec-radio-group input[type="radio"]:checked + label {
    background: #3498db;
    color: white;
}

.lec-button-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.lec-calculate-btn, .lec-reset-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.lec-calculate-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
}

.lec-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.lec-reset-btn {
    background: #ecf0f1;
    color: #34495e;
}

.lec-reset-btn:hover {
    background: #e0e6ed;
    transform: translateY(-2px);
}

.lec-results-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lec-results-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px;
    text-align: center;
}

.lec-results-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 22px;
}

.lec-results-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: #7f8c8d;
}

.lec-placeholder-content i {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.lec-placeholder-content p {
    margin: 0;
    font-size: 16px;
}

.lec-results-content {
    padding: 20px;
}

.lec-result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.lec-result-item:hover {
    transform: translateX(5px);
}

.lec-result-icon {
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 22px;
}

.lec-result-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.lec-result-value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2ecc71;
}

.lec-emi .lec-result-icon {
    background: #3498db;
}

.lec-total-interest .lec-result-icon {
    background: #e74c3c;
}

.lec-total-payment .lec-result-icon {
    background: #2ecc71;
}

.lec-breakdown {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.lec-breakdown-item, .lec-breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e6ed;
}

.lec-breakdown-total {
    border-bottom: none;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
}

.lec-breakdown-label {
    color: #34495e;
}

.lec-breakdown-value {
    color: #2c3e50;
    font-weight: 600;
}

.lec-breakdown-total .lec-breakdown-value {
    color: #2ecc71;
    font-size: 20px;
}

.lec-chart-container {
    margin-top: 30px;
    text-align: center;
}

.lec-footer {
    margin-top: 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

.lec-footer i {
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lec-calculator-container {
        padding: 20px;
    }
    
    .lec-form-container {
        padding: 20px;
    }
    
    .lec-button-container {
        flex-direction: column;
    }
    
    .lec-header h2 {
        font-size: 24px;
    }
    
    .lec-result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .lec-result-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .lec-calculator-container {
        padding: 15px;
    }
    
    .lec-input-with-icon input {
        padding: 12px 12px 12px 40px;
    }
    
    .lec-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .lec-result-value {
        font-size: 24px;
    }
}