* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 300;
}

.calculator-wrapper {
    padding: 30px;
}

.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #1e3c72;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.card h3 {
    color: #2a5298;
    font-size: 1.1em;
    margin-bottom: 15px;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.info-box small {
    color: #1565c0;
    font-size: 0.9em;
    line-height: 1.5;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn-calculate,
.btn-reset {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-reset {
    background: #f44336;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

.btn-reset:active {
    transform: translateY(0);
}

.results-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #667eea;
}

.result-group {
    margin-bottom: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.result-row:hover {
    border-left-color: #667eea;
    transform: translateX(5px);
}

.result-row.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1.05em;
    border-left: none;
}

.result-row.total {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    font-size: 1.2em;
    padding: 15px;
    margin-top: 15px;
}

.tax-slab-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.tax-slab-info h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.tax-slab-info ul {
    list-style: none;
    padding-left: 0;
}

.tax-slab-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.tax-slab-info li:last-child {
    border-bottom: none;
}

.tax-breakdown-table {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    overflow-x: auto;
}

.tax-breakdown-table h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.tax-breakdown-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tax-breakdown-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tax-breakdown-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.tax-breakdown-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.tax-breakdown-table tbody tr:hover {
    background-color: #f5f7fa;
}

.tax-breakdown-table td {
    padding: 12px;
    color: #555;
}

.tax-breakdown-table tfoot {
    background: #f8f9fa;
    border-top: 2px solid #667eea;
}

.tax-breakdown-table tfoot td {
    padding: 15px 12px;
    font-size: 1.05em;
    color: #1e3c72;
}

.tax-breakdown-table .nil-tax {
    color: #4caf50;
    font-weight: 500;
}

.tax-breakdown-table .tax-amount {
    color: #f44336;
    font-weight: 600;
}

footer {
    background: #1e3c72;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer p {
    opacity: 0.9;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .calculator-wrapper {
        padding: 15px;
    }

    header h1 {
        font-size: 1.6em;
    }

    .button-container {
        flex-direction: column;
    }

    .btn-calculate,
    .btn-reset {
        width: 100%;
    }

    .result-row {
        flex-direction: column;
        gap: 5px;
    }
}