.uk-taxcalc-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.uk-taxcalc-form {
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.uk-taxcalc-result {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 0;
    min-height: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    padding: 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #1f2937;
    display: block;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.uk-taxcalc-form h2,
.uk-taxcalc-result h2 {
    color: #111827;
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.uk-taxcalc-result h2 {
    color: #111827;
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.result-section {
    line-height: 1.5;
    font-size: 1rem;
}

.result-section p {
    margin: 0.75rem 0;
    color: #374151;
    font-size: 1rem;
}

.result-section h3,
.result-section h4 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
}

th {
    background-color: #f9fafb;
    font-weight: 500;
    text-align: left;
    color: #374151;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .uk-taxcalc-container {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .uk-taxcalc-form,
    .uk-taxcalc-result {
        padding: 1.25rem;
    }
    
    .uk-taxcalc-result {
        min-height: 400px;
        overflow-y: auto;
    }
    
    .form-group input[type="number"],
    .form-group select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: 16px;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Utility Classes */
.text-2xl {
    font-size: 1rem;
}

.font-semibold {
    font-weight: 600;
}

.text-blue-600 {
    color: #2563eb;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-gray-800 {
    color: #1f2937;
}

.text-red-600 {
    color: #dc2626;
}

.text-lg {
    font-size: 1rem;
}

.text-md {
    font-size: 1rem;
}

.font-bold {
    font-weight: 700;
}

.bg-gray-100 {
    background-color: #f9fafb;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.rates-thresholds {
    padding: 0.5rem 0;
    margin-top: 1.5rem;
}

.rates-thresholds h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.rates-thresholds ul {
    margin: 0;
    padding-left: 1.5rem;
}

.rates-thresholds ul li {
    font-size: 1rem;
}