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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Tax info section */
.tax-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.tax-info h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 12px;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tax-table th,
.tax-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.tax-table th {
    background: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.tax-table tbody tr:last-child td {
    border-bottom: none;
}

.tax-table tbody tr:hover {
    background: #f1f3f5;
}

/* Input section */
.input-section {
    margin-bottom: 30px;
}

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

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #27ae60;
    color: #fff;
}

.btn-secondary:hover {
    background: #219a52;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Results section */
.results-section {
    margin-top: 30px;
}

.results-section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 16px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}

.results-table th,
.results-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.results-table th {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
}

.results-table td:not(:first-child) {
    font-variant-numeric: tabular-nums;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr.row-bonus {
    background: #eafaf1;
    font-weight: 600;
}

.results-table tbody tr.row-bonus:hover {
    background: #d4efdf;
}

.results-table tfoot {
    font-weight: 700;
}

.results-table tfoot td {
    background: #f1f3f5;
    border-top: 2px solid #2c3e50;
    font-size: 0.95rem;
}

.results-table tfoot td:first-child {
    text-align: left;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        border-radius: 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        min-width: unset;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 8px 6px;
    }
}
