body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

.header {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.actions {
    position: absolute;
    top: 20px;
    right: 20px;
}

.actions button {
    margin-left: 10px;
    padding: 8px 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.actions button:hover {
    background: #218838;
}

.controls {
    margin: 20px;
    text-align: center;
}

.controls input,
.controls select {
    padding: 8px;
    margin: 0 10px;
    width: 200px;
}

.table-container {
    margin: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background: #eee;
}

button.editBtn,
button.deleteBtn {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.editBtn {
    background: #007bff;
    color: white;
}

.deleteBtn {
    background: #dc3545;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 20px;
}

.modal-content form input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
}

.modal-actions button {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-actions button[type="submit"] {
    background: #28a745;
    color: white;
}

.modal-actions button[type="button"] {
    background: #6c757d;
    color: white;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 14px;
    background: #eee;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
}

.pagination a.active {
    background: #333;
    color: #fff;
}
