/*
Theme Name: SIP Calculator Pro
Description: Advanced, highly customizable, modern theme with Chart.js integration.
Author: Custom Build
Version: 2.0
*/

:root {
    --primary-color: #0056b3;
    --accent-color: #27ae60;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents mobile shaking */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Modern Calculator Layout */
.calc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    padding: 30px;
    margin-top: 20px;
}

.calc-inputs { flex: 1 1 500px; }
.calc-visuals { flex: 1 1 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Range Sliders */
.input-group { margin-bottom: 25px; }
.input-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.number-input {
    width: 120px; padding: 8px 12px; border: 1px solid #dfe6e9; border-radius: 6px; font-size: 16px; font-weight: bold; color: var(--primary-color); text-align: right; outline: none;
}
input[type=range] {
    -webkit-appearance: none; width: 100%; background: transparent; margin-top: 10px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: var(--primary-color); cursor: pointer; margin-top: -8px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 6px; cursor: pointer; background: #dfe6e9; border-radius: 3px;
}

/* Results Area */
.result-box { width: 100%; margin-top: 20px; padding: 20px; background: #f8f9fa; border-radius: 8px; }
.result-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 16px; }
.result-total { font-size: 22px; font-weight: bold; color: var(--primary-color); border-top: 2px solid #dfe6e9; padding-top: 10px; margin-top: 10px; }

/* Chart Container */
.chart-container { width: 100%; max-width: 300px; margin: 0 auto 20px; }

@media (max-width: 768px) {
    .calc-wrapper { padding: 20px; }
    .number-input { width: 100px; }
}