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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: transparent;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: transparent;
}

.calculator-card {
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 1000px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.right-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    height: 40px;
    width: auto;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.price-display {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    margin-right: 5px;
    color: #666;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff9900;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff9900;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    -moz-appearance: none;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .currency {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    color: #666;
    z-index: 1;
}

.input-wrapper .percent {
    position: absolute;
    right: 12px;
    font-size: 1rem;
    color: #666;
    z-index: 1;
}

input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #ff9900;
}

.input-wrapper input[type="number"] {
    padding-left: 35px;
}

.input-wrapper:has(.percent) input[type="number"] {
    padding-right: 35px;
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #ff9900;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.checkbox {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}

.checkbox-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0;
}

.balloon-payment-group {
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.balloon-payment-group.show {
    opacity: 1;
    max-height: 300px;
    display: flex !important;
}

.balloon-percentage-display {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    gap: 10px;
}

.balloon-amount {
    color: #ff9900;
    font-size: 1.2rem;
}

.balloon-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.balloon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.balloon-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    -moz-appearance: none;
    border: none;
}



.result-card {
    background: transparent;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.result-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.highlight {
    color: #ff9900;
    font-weight: 700;
}



.chart-section {
    background: transparent;
    border-radius: 12px;
    padding: 25px;
}

.chart-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

#balanceChart {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.chart-legend {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    background: #ff9900;
    border-radius: 2px;
    margin-right: 8px;
}



@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-card {
        padding: 25px;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
}
