body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    width: 220px;
    position: fixed;
    background-color: #2c3e50;
    padding-top: 20px;
    color: white;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background-color: #1abc9c;
}

.main-content {
    margin-left: 220px;
    /* deja este margen para el sidebar */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centra el contenido dentro */
}

.main-content ul {
    text-align: left;
    display: inline-block;
}

h2 {
    color: #333;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table thead {
    background-color: #007bff;
    color: white;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: left;
}

/* Botones */
button, a.button {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    margin: 10px 0;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover, a.button:hover {
    background-color: #0056b3;
}

/* Form */
form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    color: #333;
}

form input, form select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Mensajes */
p.error {
    color: #e74c3c;
    font-weight: bold;
}

p.success {
    color: #2ecc71;
    font-weight: bold;
}

.logo {
    display: block;
    margin: 20px auto;
    max-width: 160px;
    height: auto;
}


.gestion-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.gestion-links a {
    display: block;
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.gestion-links a:hover {
    background-color: #0056b3;
}

.form-login {
    max-width: 400px;
    margin: 80px auto;
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-login h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-login input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-login button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-login button:hover {
    background-color: #0056b3;
}


