/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

/* Contenedor general */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Título principal */
h1, h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #1a202c;
}

/* Bienvenida */
p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Menú de navegación */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.menu a {
    background-color: #2d3748;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.menu a:hover {
    background-color: #4a5568;
}

/* Botón de logout */
.logout {
    text-align: center;
    margin-top: 30px;
}

.logout a {
    color: #e53e3e;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #e53e3e;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logout a:hover {
    background-color: #e53e3e;
    color: #fff;
}

/* Tabla */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 900px;
}

thead {
    background-color: #2d3748;
    color: #fff;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Botón editar */
a.btn-editar {
    color: #3182ce;
    text-decoration: none;
    font-weight: bold;
}

a.btn-editar:hover {
    text-decoration: underline;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu a {
        width: 100%;
        text-align: center;
    }

    h1, h2 {
        font-size: 1.5rem;
    }
}
