/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}
label {
    font-weight: bold;
}


.wrapper {
    width: 100%;
    max-width: 100%;
    padding: 5px; /* Padding to ensure spacing around the content */
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Specific margin for larger screens */
@media (min-width: 769px) {
    .container {
        margin: 20px auto;
    }
}

h1, h2 {
    color: #444;
    margin-bottom: 20px;
    text-align: center;
}

form, .filter-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="date"]:focus, textarea:focus, select:focus {
    border-color: #007bff;
}

button[type="submit"], a.button {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    text-decoration: none;
}

button[type="submit"]:hover, a.button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

th, td {
    padding: 12px;
    text-align: left;
    word-wrap: break-word;
}

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.pagination {
    text-align: center;
}

.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 15px; /* Padding to create space on mobile devices */
        margin: 0 auto; /* Ensure it's centered */
    }

    h1, h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select, button[type="submit"], a.button {
        font-size: 15px;
        padding: 10px;
    }

    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 10px;
    }

    .pagination a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px; /* Padding to create space on smaller mobile devices */
        margin: 0 auto; /* Ensure it's centered */
    }

    h1, h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select, button[type="submit"], a.button {
        font-size: 12px;
        padding: 8px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 6px;
    }

    .pagination a {
        font-size: 12px;
        padding: 4px 8px;
    }
}
