/* Base styles - Dark Mode by default */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #121212; /* Unified dark background */
    color: #ffffff; /* Light text for dark mode */
}

header {
    background-color: #1e1e1e; /* Consistent dark header background */
    color: #ffffff;
    padding: 15px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation Menu Styles */
nav {
    background-color: #1e1e1e;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center-align the menu items */
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #444444; /* Hover effect for navigation links */
}

/* Main content area */
main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #121212; /* Unified content background */
    width: 100%;
}

section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h2 {
    margin-top: 0;
    color: #ffffff;
    text-align: center;
}

/* Form styles */
form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

form label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
}

select, button {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
    padding: 8px 12px;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

select:focus, button:focus {
    outline: none;
    border-color: #888888;
}

button:hover {
    background-color: #444444;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #444444;
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #333333;
}

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

tr:nth-child(odd) {
    background-color: #2c2c2c;
}

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

/* Footer styles */
footer {
    background-color: #1e1e1e;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em; /* Adjust font size for tablets */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav a {
        display: block;
        text-align: center;
    }

    table th, table td {
        font-size: 0.9em;
    }

    form {
        flex-direction: column;
        gap: 15px;
    }

    button, select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em; /* Smaller font size for phones */
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
    }

    table th, table td {
        font-size: 0.8em;
    }

    form label {
        flex-direction: column;
        align-items: flex-start;
    }
}
