body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

h1, h2 {
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    padding: 20px;
    display: inherit;
    background-color: white;   
}
td form {
    background: none;
}

input[type="text"], input[type="password"], input[type="number"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="submit"] {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

input[type="submit"]:hover {
    background: #2980b9;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #fff;
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

nav {
    margin: 20px 0;
}

nav a {
    margin-right: 10px;
    background: #3498db;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
}

nav a:hover {
    background: #2980b9;
    text-decoration: none;
}

p {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f5f5f5;
}
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
select {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
nav {
    margin: 20px 0;
    position: relative;
}

nav a, .dropbtn {
    margin-right: 10px;
    background: #3498db;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

nav a:hover, .dropbtn:hover {
    background: #2980b9;
    text-decoration: none;
}

nav a.active {
    background-color: #2974a6;
}
nav a.active:hover {
    background-color: #1d4f71;
}
nav a.dropdown_active{
    background-color: #d9d9d9;
}
nav a.dropdown_active:hover{
    background-color: #b3b3b3;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background: #f9f9f9;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.number-input {
    width: 120px; /* Adjust this value as needed */
    flex-grow: 0; /* Prevent the input from growing */
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap; /* Allow wrapping if screen is too narrow */
}

.form-row h2 {
    margin: 0;
    margin-right: 10px;
    white-space: nowrap;
    margin-bottom: 5px; /* Add some space below the header if it wraps */
}

.input-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple inputs */
    gap: 10px; /* Add space between wrapped inputs */
    align-items: center;
}

.input-group input[type="number"] {
    flex-grow: 1;
    margin-right: 10px;
}

.input-group input[type="number"]:last-child {
    margin-right: 0;
}

.button-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.button-row input[type="submit"] {
    margin-right: 10px;
}
.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination a, .pagination strong {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
}
.pagination strong {
    font-weight: bold;
}















/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    nav {
        flex-direction: column;
    }

    nav a, .dropbtn {
        margin: 5px 0;
        padding: 10px;
        text-align: center;
    }

    .dropdown-content {
        position: absolute;
        box-shadow: none;
        width: 100%;
    }

    .dropdown-content a {
        padding: 10px;
        text-align: center;
    }
    .form-row {
        align-items: flex-start;
    }

    .form-row h2 {
        margin-bottom: 10px;
    }
    .input-group {
        flex-direction: column;
    }
    .input-group input[type="number"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .menu-icon {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
    }
    .menu-items {
        display: none;
        width: 100%;
        background-color: #3498db; /* Match your existing nav background color */
        position: absolute;
        top: 100%;
        left: 0;
    }
    .menu-items.active {
        display: block;
    }
    nav {
        top: 0;
        left: 0;
        width: 100%;
        background-color: #3498db; /* Match your existing nav background color */
        z-index: 1000;
        height: 45px;
        margin: 0 0 10px 0;
    }
    nav a, .dropbtn {
        display: block;
        margin: 10px 0;
    }
    nav div.dropdown{
        display: block;
    }
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
    }
    .dropdown-content.active {
        display: block;
    }
    tr td form {
        padding: 10px;
    }
    .pagination a, .pagination strong {
        padding: 3px 4px;
        font-size: 14px;
    }
}
