/* Loan EMI Calculator Styles */
.lec-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.lec-calculator-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.lec-calculator-card:hover {
    transform: translateY(-5px);
}

.lec-calculator-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.lec-calculator-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.lec-calculator-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.lec-calculator-body {
    padding: 30px;
}

.lec-input-group {
    margin-bottom: 30px;
}

.lec-input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.lec-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.lec-input-with-icon i {
    position: absolute;
    left: 15px;
    color: #667eea;
    font-size: 18px;
    z-index: 1;
}

.lec-input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lec-input-with-icon input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lec-input-suffix {
    position: absolute;
    right: 15px;
    color: #718096;
    font-weight: 500;
}

.lec-slider-container {
    position: relative;
    padding-top: 10px;
}

.lec-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 3px;
    outline: none;
}

.lec-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.lec-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lec-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.lec-input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.lec-input-half {
    flex: 1;
}

.lec-tenure-type {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
    border: 2px solid #e2e8f0;
}

.lec-tenure-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #718096;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lec-tenure-btn.active {
    background: #667eea;
    color: white;
}

.lec-button-group {
    display: flex;
    gap: 15px;
    margin: 40px 0 30px;
}

.lec-calculate-btn, .lec-reset-btn {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    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, #667eea 0%, #764ba2 100%);
    color: white;
}

.lec-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.lec-reset-btn {
    background: #f8fafc;
    color: #718096;
    border: 2px solid #e2e8f0;
}

.lec-reset-btn:hover {
    background: #e2e8f0;
    color: #4a5568;
}

.lec-results.hidden {
    display: none;
}

.lec-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.lec-results-header h3 {
    color: #2d3748;
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lec-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lec-result-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lec-result-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.lec-result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.lec-result-icon.emi {
    background: linear-gradient(135deg, #667eea20 0%, #667eea 100%);
    color: #667eea;
}

.lec-result-icon.interest {
    background: linear-gradient(135deg, #ed64a620 0%, #ed64a6 100%);
    color: #ed64a6;
}

.lec-result-icon.total {
    background: linear-gradient(135deg, #48bb7820 0%, #48bb78 100%);
    color: #48bb78;
}

.lec-result-content h4 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
}

.lec-result-value {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.lec-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.lec-summary h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lec-summary-details {
    display: grid;
    gap: 10px;
}

.lec-summary-details p {
    margin: 0;
    color: #4a5568;
    display: flex;
    justify-content: space-between;
}

.lec-summary-details span {
    font-weight: 600;
    color: #2d3748;
}

.lec-loading {
    text-align: center;
    padding: 40px;
}

.lec-loading.hidden {
    display: none;
}

.lec-spinner {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.lec-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lec-calculator-footer {
    background: #f8fafc;
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

.lec-calculator-footer i {
    color: #667eea;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .lec-calculator-body {
        padding: 20px;
    }
    
    .lec-input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .lec-button-group {
        flex-direction: column;
    }
    
    .lec-results-grid {
        grid-template-columns: 1fr;
    }
    
    .lec-calculator-header h2 {
        font-size: 24px;
    }
}