/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container Styling */
.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
}

/* Header Styling */
h1, h2, h3 {
    text-align: center;
    color: #007BFF;
    margin-bottom: 20px;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
}

form input, form textarea, form select, form button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

form input:focus, form textarea:focus, form select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

table th {
    background-color: #007BFF;
    color: white;
    text-align: center;
}

table td {
    text-align: center;
}

table img {
    max-width: 50px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Button Links */
a.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

a.button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #555;
}

/* Additional Styles for Compact Design */
input[type="number"] {
    width: 60px;
    text-align: center;
}

button.small {
    padding: 5px 10px;
    font-size: 14px;
}

table .action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.action-buttons a, .action-buttons button {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    table th, table td {
        font-size: 12px;
        padding: 8px;
    }

    form input, form textarea, form select, form button {
        font-size: 14px;
        padding: 8px;
    }

    a.button {
        font-size: 14px;
        padding: 8px 15px;
    }
}