/* Calculator Container */
.calculator-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 600px;
    max-width: 100%;
    padding: 20px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Header */
.calculator-container h2 {
    text-align: center;
    color: #333;
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: bold;
}

.period {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Input Form */
.calculator-container form > table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.calculator-container form > table td {
    padding: 8px;
    vertical-align: middle;
}

.calculator-container form > table td:first-child {
    width: 40%;
    font-size: 14px;
    color: #444;
}

/* Input Fields */
.calculator-container input[type="text"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

/* Buttons */
.calculate-btn, .clear-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.calculate-btn {
    background-color: #4CAF50;
    color: white;
}

.clear-btn {
    background-color: #f44336;
    color: white;
}

.calculate-btn:hover {
    background-color: #45a049;
}

.clear-btn:hover {
    background-color: #da190b;
}

/* Results Section */
.results-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table td {
    padding: 6px 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Align numbers right */
.results-table td:nth-child(2),
.results-table td:last-child {
    text-align: right;
    font-family: monospace;
    white-space: nowrap;
}

/* Deductions Section */
.deductions-header td {
    padding-top: 15px !important;
    font-weight: bold;
}

.deduction-item td:first-child {
    padding-left: 20px;
    color: #666;
}

/* Total Deductions */
.total-deductions td {
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-weight: bold;
}

/* Net Pay */
.net-pay td {
    border-top: 1px solid #eee;
    padding-top: 10px;
    padding-bottom: 15px;
    font-weight: bold;
    font-size: 15px !important;
}

/* PAYE Information Section */
.paye-info-header td {
    border-top: 2px solid #eee;
    padding-top: 15px;
    font-weight: bold;
    color: #333;
}

.paye-info td {
    color: #666;
}

/* Error State */
.calculator-container input.error {
    border-color: #f44336;
    background-color: #fff8f8;
}

/* Loading State */
.calculator-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 650px) {
    .calculator-container {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    .calculator-container form > table td:first-child {
        width: 50%;
    }

    .calculator-container input[type="text"] {
        font-size: 13px;
    }

    .results-table td {
        font-size: 13px;
    }

    .calculate-btn, .clear-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
}
