/* Estilos generales del dashboard */
.dashboard-container {
    display: flex;
    flex-direction: row;
    margin: 20px;
    gap: 20px; /* Espacio entre sidebar y contenido */
}

.dashboard-sidebar {
    width: 250px;
    background: #007bff;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 40px); /* Ajusta la altura para que se extienda a lo largo de la vista */
    overflow-y: auto; /* Agrega scroll si el contenido es largo */
}

.dashboard-sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.dashboard-sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dashboard-sidebar nav ul li {
    margin-bottom: 10px;
}

.dashboard-sidebar nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s, padding-left 0.3s;
}

.dashboard-sidebar nav ul li a:hover {
    background: #0056b3;
    padding-left: 20px; /* Agrega un efecto de desplazamiento */
}

/* Estilos del contenido del dashboard */
.dashboard-content {
    flex: 1;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: auto; /* Asegura que el contenido no se desborde */
}

.dashboard-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.dashboard-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Estilos del botón */
.dashboard-content a.rounded-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.dashboard-content a.rounded-button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        gap: 0; /* Elimina el espacio entre sidebar y contenido en móviles */
    }

    .dashboard-sidebar {
        width: 100%;
        margin-bottom: 20px;
        height: auto; /* Ajusta la altura en móviles */
    }
}

/* Estilos del header */
header {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #cce5ff;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        margin-top: 10px;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* Estilos del modal (popup) */
.modal {
    display: none; /* Ocultamos el modal por defecto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close {
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    margin-top: 20px;
}

.modal-body select {
    display: block;
    width: 100%;
    margin-bottom: 15px; /* Espacio entre las listas */
}

.modal-body button {
    background-color: #007bff;
    color: white;
    padding: 8px 16px; /* Tamaño más pequeño del botón */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-body button:hover {
    background-color: #0056b3;
}

/* Estilos para el contenedor del modal y su contenido */
.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content form select {
    margin-bottom: 10px; /* Espacio entre los selects */
}

/* Estilos para botones dentro de la tabla */
.button {
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 5px 2px;
    cursor: pointer;
    border-radius: 5px;
}

.button-add {
    background-color: #28a745; /* Verde */
}

.button-edit {
    background-color: #007bff; /* Azul */
}

.button-delete {
    background-color: #dc3545; /* Rojo */
}

.button-submit {
    background-color: #17a2b8; /* Cian */
}

.button-cancel {
    background-color: #6c757d; /* Gris */
}

/* Estilos de la tabla */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th, .user-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.user-table th {
    background-color: #343a40;
    color: white;
}

.user-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.user-table tr:hover {
    background-color: #ddd;
}
