/* Main Colors */
:root {
    --primary: #fb6222;
    --dark: #2f3555;
    --light: #ffffff;
}

/* Calculator Container */
.emi-calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    background: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calculator-header {
    text-align: center;
    margin-bottom: 25px;
}

.calculator-header h2 {
    color: var(--dark);
    font-size: 28px;
    margin: 0;
}

/* Input Section */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.input-with-icon {
    position: relative;
}

.currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark);
    font-weight: 600;
}

input[type="number"] {
    width: 100%;
    padding: 14px 14px 14px 30px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
}

input[type="range"] {
    width: 100%;
    margin-top: 10px;
    height: 8px;
    border-radius: 4px;
    background: #e1e5ee;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Toggle Buttons */
.toggle-btn {
    padding: 10px 15px;
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--primary);
    color: var(--light);
}

.tenure-toggle, .interest-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Info Icon */
.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #e1e5ee;
    color: var(--dark);
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

/* Results Section */
.results-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.result-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.result-box:hover {
    transform: translateY(-5px);
}

.result-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--dark);
}

.result-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

/* Reset Button */
#reset-btn {
    width: 100%;
    padding: 14px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#reset-btn:hover {
    background: #1a203a;
}

/* Disclaimer */
.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #fff8f5;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    color: #666;
    border-radius: 0 6px 6px 0;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 500px) {
    .emi-calculator-container {
        padding: 15px;
    }
    
    .results-section {
        grid-template-columns: 1fr;
    }
    
    input[type="number"] {
        padding: 12px 12px 12px 28px;
    }
}