body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.content {
    width: 100%;
    margin: 0;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: #e9ecef;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.content h1 {
    text-decoration: None;
    margin-bottom: 10px;
    font-size: 28px;
}

.content a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #007bff;
    font-size: 18px;
}

.content a:hover {
    text-decoration: underline;
}

.table-container {
    flex: 1;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    margin-left: 7%;
    margin-right: 7%;
    margin-bottom: 10px;
    overflow-x: auto;
}

.tabla {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tabla th,
.tabla td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.tabla th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.tabla tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabla th:last-child,
.tabla td:last-child {
    width: 100px;
    text-align: center;
}

.footer {
    width: 86%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-image: url('_occult.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    min-height: 140px;
    height: auto; /* Ensure footer doesn't collapse */
    max-height: 220px;
    box-sizing: border-box;
    z-index: 5;
    background-color: #f5f5f5; /* Fallback */
}

.footer p,
.footer a {
    margin: 5px 0;
    color: #333;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.access-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto; /* Override any left positioning */
    z-index: 15;
    display: flex;
    gap: 10px;
}

#accessButton {
    display: inline-block;
    padding: 6px 12px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#accessButton:hover {
    background-color: #5a6268;
}

#logoutButton {
    display: inline-block;
    padding: 6px 12px;
    background-color: #495057;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#logoutButton:hover {
    background-color: #343a40;
}

#addRowButton {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#addRowButton:hover {
    background-color: #0056b3;
}

.delete-button {
    padding: 5px 10px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.delete-button:hover {
    background-color: #c82333;
}

.edit-button {
    display: none;
}

@media (max-width: 768px) {
    .content {
        padding: 10px;
        min-height: 80px;
    }

    .content h1 {
        font-size: 24px;
    }

    .content a {
        font-size: 16px;
    }

    .table-container {
        padding: 10px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 100px;
    }

    .tabla {
        width: 100%;
        margin: 10px auto;
    }

    .tabla th,
    .tabla td {
        padding: 8px;
        font-size: 14px;
    }

    .footer {
        width: 100%;
        margin: 0;
        min-height: 100px;
        max-height: 160px;
        padding: 10px;
        background-size: contain;
    }

    .access-button-container {
        position: fixed;
        bottom: 10px;
        right: 10px;
        left: auto;
        gap: 8px;
    }

    #accessButton,
    #logoutButton {
        padding: 5px 10px;
        font-size: 12px;
    }
}