/* styles.css */
body {
    background-color: #f4f8fc;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Contenedor del login */
.login-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    color: #007bff;
    margin-bottom: 20px;
}

.login-container .form-label {
    font-weight: 600;
}

.login-container .form-control {
    border-radius: 5px;
}

.login-container .btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px;
    border-radius: 5px;
}

.login-container .btn-primary:hover {
    background-color: #0056b3;
}

/* Secciones de carga y gestión de documentos */
.upload-section,
.manage-section {
    margin-top: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;  /* Limitar el ancho */
    margin-left: auto;
    margin-right: auto;
}

/* Títulos */
.upload-section h2,
.manage-section h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

/* Formulario */
.upload-section form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

/* Etiquetas */
.upload-section label {
    font-weight: 600;
    display: block;
}

/* Campos de texto y archivo */
.upload-section input[type="text"],
.upload-section input[type="file"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;  /* Ancho del 100% dentro de su contenedor */
    max-width: 400px;  /* Limitar el tamaño para que no abarque todo */
    margin-bottom: 15px; /* Espacio entre los campos */
}

/* Botón "Subir" */
.upload-section button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;  /* Ancho completo, pero con un tamaño moderado */
}

/* Para pantallas grandes */
@media (min-width: 1024px) {
    .upload-section form {
        flex-direction: row; /* Mantiene todo en una fila */
    }

    .upload-section input[type="text"],
    .upload-section input[type="file"] {
        flex: 1; /* Distribuye el espacio equitativamente */
        max-width: 400px;  /* Limita el tamaño para evitar que se expandan demasiado */
    }

    .upload-section button {
        width: 100%;  /* Botón en un renglón aparte */
    }
}

/* Para pantallas medianas (tablets) */
@media (max-width: 1023px) {
    .upload-section form {
        flex-direction: column; /* Apila en columnas en móviles y tablets */
        align-items: stretch;
    }

    .upload-section input[type="text"],
    .upload-section input[type="file"],
    .upload-section button {
        width: 100%; /* Asegura que todos los elementos ocupen el 100% del contenedor */
        max-width: none;
    }
}

/* Lista de documentos */
.manage-section ul {
    list-style: none;
    padding: 0;
}

.manage-section ul li {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.manage-section ul li a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.manage-section ul li a:hover {
    text-decoration: underline;
}

/* Información del usuario */
.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ajuste del iframe */
iframe {
    width: 100%;
    height: 100vh;
    border: none;
}


ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.documento-info {
    flex-grow: 1; /* Hace que el texto ocupe el espacio restante */
}

.acciones {
    min-width: 120px; /* Espacio fijo para los enlaces */
    text-align: right;
}

.acciones a {
    margin-left: 10px; /* Espacio entre los enlaces */
    text-decoration: none;
    color: blue;
}
