body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input, select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
}

.styled-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #6c63ff, #7c4dff);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 4px 12px rgba(108, 99, 255, 0.3);
    margin-bottom: 15px;
}

.styled-button:hover {
    background: linear-gradient(90deg, #7c4dff, #6c63ff);
    transform: translateY(-3px);
}

.styled-button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.styled-select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.styled-select:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
}

.styled-select {
    transition: all 0.3s ease;
}

.styled-select:hover {
    transform: scale(1.02);
}

.input-section {
    display: none;
    transition: all 0.3s ease;
}

.input-section.active {
    display: block;
}

.result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: #e3f2fd;
    padding: 10px;
    border-radius: 10px;
    transition: opacity 0.3s ease;
    display: none;
}

.result.visible {
    display: block;
}

.notice {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.notice.visible {
    display: block;
}

.payroll {
    margin-top: 20px;
    font-size: 16px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

.payroll h3 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #6c63ff;
    padding-bottom: 10px;
    color: #333;
    text-align: center;
}

.payroll ul {
    list-style-type: none;
    padding: 0;
}

.payroll li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.payroll li:last-child {
    border-bottom: none;
}

.payroll li span {
    font-weight: bold;
}

.payroll li .add {
    color: #28a745;
}

.payroll li .subtract {
    color: #dc3545;
}

.payroll li strong {
    color: #ff4757;
    font-weight: bold;
    font-size: 18px;
}

.history-section {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.history-section.visible {
    display: block;
}

.history-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.history-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.history-table:hover {
    transform: scale(1.01);
}

.history-table th, .history-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.history-table th {
    background-color: #6c63ff;
    color: white;
}

.history-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
