body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #003399;
    margin-top: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0055b3;
    background-image: linear-gradient(135deg, #0055b3 0%, #003399 100%);
}

.login-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card .header {
    margin-bottom: 25px;
}

.login-card h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
    color: #003399;
}

.login-card p {
    color: #777;
    font-size: 1.1em;
}

.error {
    background-color: #ffe0e0;
    color: #cc0000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #cc0000;
}

.login-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
    color: #003399;
    margin-top: 15px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #ffcc00;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.login-form button[type="submit"] {
    width: 100%;
    background-color: #ffcc00;
    color: #003399;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

.login-form button[type="submit"]:hover {
    background-color: #ffc400;
    transform: translateY(-2px);
}


.dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #003399;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.top-bar h1 {
    color: #ffcc00;
    font-size: 1.8em;
}

.top-bar .user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar .user strong {
    color: #ffcc00;
}

.sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.section {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #ffcc00;
}

.section h2 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #0055b3;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

table thead tr {
    background-color: #f0f8ff;
    color: #003399;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #eee;
    vertical-align: middle;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

.no-entries {
    text-align: center !important;
    font-style: italic;
    color: #999;
}

table img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.add-form {
    background-color: #f7f9fc;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #0055b3;
}

.add-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #003399;
}

.add-form input[type="text"],
.add-form input[type="file"],
.add-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.add-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto;
    padding-right: 25px;
}

.hidden {
    display: none;
}


.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s, background-color 0.3s;
    border: 1px solid transparent;
}

.btn:hover {
    opacity: 0.9;
}

.logout {
    background-color: #ff6666;
    color: white;
}

.logout:hover {
    background-color: #ff4d4d;
}

.delete {
    background-color: #dc3545;
    color: white;
}

.delete:hover {
    background-color: #c82333;
}

.primary {
    background-color: #0055b3;
    color: white;
    border: none;
    margin-top: 15px;
}

.primary:hover {
    background-color: #004494;
}

.link {
    background-color: #ffcc00;
    color: #003399;
    padding: 6px 10px;
}

.link:hover {
    background-color: #ffc400;
}