/* ---------- General ---------- */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

h2, h3 {
    color: #333;
}

/* ---------- Tables ---------- */
table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #ff4d4d;
    color: #fff;
    font-weight: bold;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ---------- Buttons ---------- */
a.button, button {
    padding: 6px 12px;
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    margin: 2px;
    transition: background 0.3s;
}

a.button:hover, button:hover {
    background-color: #e60000;
}

/* ---------- Forms & Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    padding: 8px 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* ---------- Search Box ---------- */
form input[type="text"] {
    width: 250px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
}

form input[type="text"]:focus {
    border-color: #ff4d4d;
    box-shadow: 0 0 5px rgba(255,77,77,0.5);
}

form button {
    padding: 6px 12px;
    border-radius: 20px;
}

/* ---------- Pagination ---------- */
.pagination {
    margin: 10px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 2px;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination a.active {
    background-color: #ff4d4d;
    color: #fff;
    border: 1px solid #ff4d4d;
}

.pagination a:hover {
    background-color: #e60000;
    color: #fff;
    border: 1px solid #e60000;
}

/* ---------- Modals ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 100px;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
    table, input, select, textarea, button {
        width: 100%;
    }

    .modal-content {
        width: 90%;
    }

    form input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ---------- Status Badges ---------- */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.status-approved {
    background-color: #28a745; /* Green */
}

.status-rejected {
    background-color: #dc3545; /* Red */
}

.status-pending {
    background-color: #ffc107; /* Yellow/Orange */
    color: #333;
}
