/* Estilo general */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Sidebar */
.sidebar {
        width: 250px;
        background-color: #2c3e50;
        height: auto; /* Cambiar de 100vh a auto */
        position: fixed;
        top: 0;
        left: 0;
        color: white;
        padding: 20px 10px;
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #81ecec;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #636e72;
}

/* Bot¨®n de men¨² para m¨®viles */
.menu-toggle {
    display: none;
    background-color: #2d3436;
    color: white;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15;
}

.menu-toggle.active + .sidebar {
    display: block;
}

/* Contenido principal */
.main-content {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-top: 60px;
}

.main-content h1 {
    margin-bottom: 20px;
    color: #0984e3;
}

/* Tablas Responsivas */
.table-container {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
}

table th, table td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}

table th {
    background-color: #2c3e50;
    color: white;
}

table td input[type="radio"] {
    margin: 0 auto;
    display: block;
}

table td {
    background-color: #ffffff;
    color: #333;
}

.table-container::-webkit-scrollbar {
    height: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #0984e3;
    border-radius: 10px;
}

/* Formulario */
form {
    background-color: #ffffff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #0984e3;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #74b9ff;
}

/* Estilo para los botones de acciones en la lista */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.actions a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    background-color: #3498db;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
    white-space: nowrap;
}

.actions a:hover {
    background-color: #1abc9c;
    transform: scale(1.1);
}

.actions .delete {
    background-color: #e74c3c;
}

.actions .delete:hover {
    background-color: #c0392b;
}

.actions .edit {
    background-color: #f39c12;
}

.actions .edit:hover {
    background-color: #e67e22;
}

.actions .generate-report {
    background-color: #2ecc71;
}

.actions .generate-report:hover {
    background-color: #27ae60;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        background-color: #0984e3;
        color: white;
        border: none;
        padding: 10px;
        font-size: 18px;
        border-radius: 50%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        z-index: 1000;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        height: auto;
        z-index: 999;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    form {
        padding: 10px 20px;
    }

    .actions a {
        padding: 8px 10px;
        font-size: 14px;
    }
}

