/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #000;
    line-height: 1.5;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c20000;
    padding: 10px 20px;
    color: white;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header .menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.container {
    display: flex;
    flex-direction: row;
}

.sidebar {
    width: 350px;
    background-color: #333;
    color: white;
    padding: 15px;
    display: block;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin: 10px 0;
    cursor: pointer;
}

main {
    flex: 1;
    padding: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table thead {
    background-color: #333;
    color: white;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table tbody tr:nth-child(even) {
    background-color: #fff;
}

button.edit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

button.delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

button.edit:hover {
    background-color: #0056b3;
}

button.delete:hover {
    background-color: #a71d2a;
}

footer {
    background-color: #c20000;
    color: white;
    text-align: center;
    padding: 10px 20px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.logo-footer {
    font-size: 24px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 350px;
        background-color: #333;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    header .menu-toggle {
        display: block;
    }

    .container {
        flex-direction: column;
    }
}
