body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Theme toggle button styles */
.theme-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1000;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.3s, color 0.3s;
}
.theme-toggle.dark {
    background: #222;
    color: #f0f2f5;
    border-color: #444;
}

/* Dark theme styles */
body.dark-theme {
    background-color: #181a1b;
    color: #e0e0e0;
}
.container.dark-theme {
    background: #23272b;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
h1.dark-theme {
    color: #90caf9;
}
.links.dark-theme a {
    background: #333;
    color: #fff;
}
.links.dark-theme a:hover {
    background: #1976d2;
}
form.dark-theme {
    background: #23272b;
    color: #e0e0e0;
}
form.dark-theme label {
    color: #e0e0e0;
}
form.dark-theme input,
form.dark-theme textarea {
    background: #181a1b;
    color: #e0e0e0;
    border: 1px solid #444;
}
form.dark-theme button {
    background: #1976d2;
}
form.dark-theme button:hover {
    background: #1565c0;
}
table.dark-theme {
    background: #23272b;
    color: #e0e0e0;
}
th.dark-theme {
    background-color: #1976d2;
    color: #fff;
}
tr.dark-theme:nth-child(even) {
    background-color: #23272b;
}
a.dark-theme {
    color: #90caf9;
}
.alert-success.dark-theme {
    color: #c3e6cb;
    background-color: #155724;
    border-color: #218838;
}
.alert-danger.dark-theme {
    color: #f5c6cb;
    background-color: #721c24;
    border-color: #c82333;
}
.button-link.dark-theme {
    background: #333;
    color: #fff;
    border-color: #444;
}
.button-link.dark-theme.logout {
    background-color: #c82333;
}
.credit.dark-theme {
    color: #e0e0e0;
}
.credit .author.dark-theme {
    color: #90caf9;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

h1 {
    text-align: center;
    color: #0056b3;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.links a:hover {
    background: #0056b3;
}

form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="date"],
form input[type="password"],
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

form button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: #fff;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background: #218838;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.button-link {
    display: inline-block;
    margin: 25px 5px 0 0;
    padding: 10px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: 1px solid transparent;
    margin-right: 10px; /* Add spacing between buttons */
}

.button-link:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

.button-link.logout {
    background-color: #dc3545;
}

.button-link.logout:hover {
    background-color: #c82333;
}

/* Developer credit footer */
.credit {
    text-align: center;
    color: #000; /* Keep 'Developed by' black */
    margin: 16px 0 30px 0;
    font-size: 0.95rem;
}

.credit .author {
    color: rgb(0, 72, 255); /* Colored name */
    font-weight: 600;
}

/* Narrow the filter container controls */
.filter-container,
.filter-conatiner {
    width: max-content;        /* Shrink to content width */
    margin: 10px auto;         /* Center horizontally */
    display: flex;             /* Lay out items in a row */
    align-items: center;
    gap: 10px;                 /* Space between items */
    flex-wrap: wrap;           /* Wrap on small screens */
}
