body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin: 20px auto;
	margin-bottom: 50px; /* Add sufficient margin to avoid overlap */
}

h2 {
    color: #333;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="password"],
textarea,
select,
button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

button {
    background: #4db2ec;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #00caee;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow-x: auto; /* Added for responsiveness */
    display: block;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 15px;
    text-align: left;
    box-sizing: border-box;
}

th {
    background-color: #f2f2f2;
}

a {
    color: #4db2ec;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    text-align: center;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Added for responsiveness */
}

.actions input[type="submit"] {
    padding: 10px 15px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.actions .save {
    background-color: #ffa723;
}

.actions .reject {
    background-color: #dc3545;
}

.actions .accept {
    background-color: #28a745;
}

.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.back-button {
    padding: 10px 20px;
    background-color: #ffa723;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    border-radius: 5px;
    border: 1px solid #ffa723;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.back-button:hover {
    background-color: white;
    color: #ffa723;
    border: 1px solid #ffa723;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* Optional style */
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 280px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -140px; /* Use half of the width (width/2) to center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.error-label {
    color: red; /* Make the Error text red */
    cursor: pointer; /* Change cursor to indicate interactiveness */
}

@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    table, th, td {
        display: block;
        width: 100%;
    }

    th, td {
        padding: 10px;
        text-align: left;
    }

    th::before, td::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        width: 50%;
    }

    th {
        background-color: #fff;
    }

    td {
        border-top: none;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }

    .actions {
        flex-direction: column;
    }

    .actions input[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
    }
}

.actions {
    margin-bottom: 20px;
}

.action-link {
    margin-right: 15px;
    padding: 10px 20px;
    background-color: #4db2ec;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.action-link:hover {
    background-color: #00caee;
}

.pagination {
    display: flex;
    justify-content: center; /* Center the pagination buttons */
    flex-wrap: wrap; /* Allow the buttons to wrap onto multiple lines if necessary */
    gap: 5px; /* Space between the pagination buttons */
    margin-top: 20px;
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #ffa723;
    transition: background-color 0.3s ease;
	border-radius: 4px;
}

.pagination-link.active {
    background-color: #ffa723;
    color: white;
	font-weight: bold;
}

.pagination-link:hover {
    background-color: #0056b3;
    color: white;
	cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 13px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer .footer-links a {
    margin: 0 15px;
    color: #4db2ec;
    text-decoration: none;
    font-weight: bold;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #6c757d;
}
