/* Logo */
.logo {
    height: 100px;
    width: auto;
}

/* Botón de cerrar sesión */
.logout-btn {
    margin-left: 10px;
    display: inline-block;
    height: 50px;
    width: auto;
}

.logout-btn img {
    height: 100%;
    width: auto;
    vertical-align: middle;
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* Reducción de tamaño de la contenedora del logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 5px 10px;
}

.user-greeting {
    background-color: #f3f3f3;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.version-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 300;
    text-align: center;
}

.logout-btn:hover img {
    transform: scale(1.1);
}

/* Estilo de botones */
.btn {
    background-color: #c72819; /* Rojo oscuro */
    border: 1px solid #c72819; /* Borde rojo oscuro */
    color: white;
}

.w-100 {
    width: 32% !important;
}

.btn:hover {
    background-color: #b81c1a;
    border-color: #b81c1a;
    transform: translateY(-3px);
}

/* Estilo de enlaces en el header */
header a {
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    transition: 0.3s ease;
}

header a:hover {
    color: #e63946;
    text-decoration: none;
}

/* Información del usuario */
.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0 10px;
    margin-right: 550px;
    margin-top: 20px;
}

.user-info.right {
    align-items: flex-end;
}

/* Mensajes flash */
.flash-message {
    padding: 6px 20px;
    border-radius: 8px;
    margin: 1px 0;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 1;
    animation: fadeOut 5s forwards;
}

.flash-message {
    background-color: #f44336;
    color: #fff;
    border: 2px solid #b71c1c;
    max-width: 644px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.flash-error {
    background-color: #fa7d74;
    color: #020000;
    border: 1px solid #b71c1c;
}

.flash-message p {
    margin: 0;
}

/* Colores según el tipo de mensaje */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #644a00;
    border: 1px solid #ffeeba;
}

.alert-error, .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilo para el formulario dentro de la pestaña */
.tab-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #fffdfd;
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    min-height: 300px; /* Mínima altura para el formulario */
}

/* Mejor visualización de los inputs */
.tab-pane .form-control {
    background-color: #ffffff;
    border: 1px solid #ffe0db;
    padding: 15px;
    font-size: 1rem;
    color: #495057;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%; /* Asegura que el input ocupe todo el ancho */
    max-width: 400px; /* Máximo ancho para un mejor control en dispositivos grandes */
}

.tab-pane .form-control:focus {
    border-color: #c72819;
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(199, 40, 25, 0.25);
}

.tab-pane .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tab-pane .form-control::placeholder {
    color: #aaa;
}

.tab-pane .mb-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.tab-pane .form-label {
    width: 100%;
    max-width: 400px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.tab-pane .form-control {
    width: 100%;
    max-width: 400px;
}

td.text-center {
    color: #020000;
    background-color: #f1f1f1;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
}

.titulo {
    text-align: center;
    font-size: 2em;
    margin-top: 30px;
    color: #2c3e50;
}

.tabla-contenedor {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.tabla-logs {
    width: 90%;  /* Ajuste de ancho para mejor visualización */
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.tabla-logs thead {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

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

.tabla-logs tr:hover {
    background-color: #fd9292;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.version-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 300;
    font-size: 14px;
    text-align: center;
}

.text-success {
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
}

.text-warning {
    font-weight: bold;
    font-size: 1.05em;
}

/* Animación para que desaparezca suavemente */
@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Mejor centrado del formulario */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh; /* Asegura que el formulario se centre en toda la pantalla */
    background-color: #f4f4f4;
}
