body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    line-height: 1.6;
    color: #333;
    padding-bottom: 2rem;
}

.container {
    max-width: 100%;
    padding: 1rem;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.logo {
    font-size: 1.1rem;
    color: #2e7d32;
    font-weight: 600;
}

.watermark {
    font-size: 1.5rem;
    position: relative;
    bottom: 1rem;
    right: 1rem;
    color: rgba(0, 0, 0, 0.1);
    align-self: flex-end;
}

.status-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 5px;
    white-space: nowrap;
    border: 1px solid #ccc;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 0.2rem 0.2rem 0;
}

.status-btn.selected {
    color: white;
    border-color: transparent;
}

.status-btn.normal.selected {
    background-color: #2e7d32;
}

.status-btn.sick.selected {
    background-color: #ff9800;
}

.status-btn.public.selected {
    background-color: #2196f3;
}

.status-btn.leave.selected {
    background-color: #9c27b0;
}

.status-btn.absent.selected {
    background-color: #f44336;
}

.table-container {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.attendance-table {
    min-width: 500px;
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
}

.attendance-table th {
    font-size: 0.8rem;
    background-color: #f9fafb;
}

.attendance-table td:first-child {
    min-width: 120px;
    max-width: 120px;
    word-break: keep-all;
    white-space: nowrap;
}

#dateQuery input {
    padding: 0.3rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 0.5rem;
}

#dateQuery button {
    padding: 0.3rem 0.6rem;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#dateQuery button:hover {
    background-color: #226026;
}

button.action-btn {
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    font-weight: 500;
}

button.action-btn.confirm {
    background-color: #2e7d32;
    color: white;
}

button.action-btn.confirm:hover {
    background-color: #226026;
}

button.action-btn.export {
    background-color: #2196f3;
    color: white;
}

button.action-btn.export:hover {
    background-color: #1769aa;
}

button.action-btn.export-abnormal {
    background-color: #f44336;
    color: white;
}

button.action-btn.export-abnormal:hover {
    background-color: #c62828;
}

.footer {
    text-align: center;
    margin-top: 2rem;
}