:root {
  --primary-color: #18243E;
  --secondary-color: #18243E;
  --accent-color: #7cb342;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    padding: 2rem 1rem;
}

.sidebar h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.main-content {
    padding: 1rem 1rem;
    background-color: var(--light-bg);
    min-height: 100vh;
    border-radius: 15px;
}

.calculator-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
    text-align: center;
}
.card-header h1{
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.card-header i{
    background-color: #7cb342;
    color: #fff;
    font-size: 2.5rem;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.card-header small {
    display: block;
    color: #f0f0f0;
}
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 194, 0.25);
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-calculate {
    background: linear-gradient(135deg, var(--accent-color), #8bc34a);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 179, 66, 0.3);
    color: white;
}

.results-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    height: fit-content;
}

.result-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--accent-color);
}

.result-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
}

.chart-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-top: 2rem;
}

.alert-custom {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    border: none;
    border-radius: 10px;
    color: #2d3436;
}

@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .calculator-card, .results-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

.range-container {
    margin-top: 10px;
}

.range-slider {
    width: 100%;
    height: 15px !important;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    accent-color: var(--accent-color);
}

.range-slider::-webkit-slider-thumb {
  background: #aed36e;
}
.range-slider::-moz-range-thumb {
  background: #aed36e;
}
.range-slider::-ms-thumb {
  background: #aed36e;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color) !important;
    cursor: pointer;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}