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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
}

main {
    max-width: 1100px;
    margin: 0 auto;
}

.vat-rate-control {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vat-rate-control label {
    font-weight: 600;
    color: #2c3e50;
}

.vat-rate-control input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.vat-rate-control input:focus {
    outline: none;
    border-color: #3498db;
}

.vat-rate-control span {
    color: #7f8c8d;
    font-weight: 600;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .calculator-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.calculator-card h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.description {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.calc-form {
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

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

.input-wrapper input {
    flex: 1;
    padding: 14px 50px 14px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.2s ease;
    width: 100%;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3498db;
}

.input-wrapper input::placeholder {
    color: #bdc3c7;
}

.currency {
    position: absolute;
    right: 14px;
    color: #7f8c8d;
    font-weight: 600;
    pointer-events: none;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
    font-weight: 500;
}

.btn-calculate {
    width: 100%;
    padding: 14px;
    /*background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);*/
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-calculate:active {
    transform: translateY(0);
}

.result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.result-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.result-label {
    font-weight: 600;
    color: #34495e;
    font-size: 1rem;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.example {
    background: #fffbf0;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #f39c12;
}

.example h3 {
    font-size: 1rem;
    color: #e67e22;
    margin-bottom: 10px;
    font-weight: 600;
}

.example p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.example ul {
    list-style: none;
    padding-left: 0;
}

.example li {
    font-size: 0.9rem;
    color: #555;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.example li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #f39c12;
    font-weight: bold;
}

.reset-container {
    text-align: center;
    margin-bottom: 30px;
}

.btn-reset {
    padding: 12px 40px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.3);
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.6rem;
    }

    .calculator-card {
        padding: 20px;
    }

    .calculator-card h2 {
        font-size: 1.2rem;
    }

    .input-wrapper input {
        font-size: 1rem;
        padding: 12px 45px 12px 12px;
    }

    .result-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .calculator-card {
        padding: 18px;
    }

    .vat-rate-control {
        padding: 12px 15px;
    }
}

body.add-color-body{
    background: #EEEEEE !important;
}