body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

/* 슬라이더 스타일 */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: var(--input-border);
    outline: none;
    margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-color);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: background 0.3s;
}

.input-group small {
    font-size: 0.8rem;
    color: #888;
}

button {
    width: 100%;
    margin-top: 10px;
}

.secondary-btn {
    background-color: #666;
    margin-top: 10px;
}

.result-area {
    margin-top: 20px;
    text-align: left;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.deduction {
    color: #e57373;
}

[data-theme="dark"] .deduction {
    color: #ff8a80;
}

.total {
    font-weight: bold;
}

.final {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}
