*{
    margin: 0;
    padding: 0;
}

body {
    font-family: Nunito, Helvetica, sans-serif;

}
/* Layout para pantallas grandes (Tu código original) */
.container {
  display: grid;
  color: white;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto; /* Puedes simplificar esto a 'auto' */
  min-height: 100vh;
  overflow-y: auto;
  grid-template-areas:
      "header header header header header"
      "sidebar content content content content"
      "sidebar content content content content"
      "sidebar content content content content"
      /* ... demás filas de 'sidebar' y 'content' ... */
      "footer footer footer footer footer";
  gap: 1em;
}

/* Layout para pantallas pequeñas (Corregido) */
@media (width < 400px) {
  .container { /* ¡Selector corregido! */
    grid-template-columns: 1fr; /* Una sola columna para apilar */
    grid-template-rows: auto; /* Filas automáticas */
    grid-template-areas:
      "header"
      "content" /* El contenido se apila */
      "sidebar"
      "footer";
  }
}

.container header{
    background-color: bisque;
    grid-area: header;
    font-size: 18px;
    color: black;
}
.container .nav{
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    align-items: center;
}
.logo{
   align-items: center;
}
.logo > img{
    height: 70px;
    width: auto;
    align-items: center;
}
.item {
    display: flex;
    list-style-type: none;
    align-items: center;
    gap: 30px;
    
}
.nav-menu-item{
    text-decoration: none;
    color: black;
    align-items: center;

}
.container main{
    background-color:lightblue;
    grid-area:content;
    color: black;
    display: flex;
    justify-content: center;
    text-align: center;
    padding-top: 10px;
}
.login-form {
    width: auto;
    height: auto;
    margin: auto;
    margin-top: 30px;
    background-color: #f5d16eee;
    border-radius: 10px;
    color: black;
    box-shadow: 0 4px 30px black;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ingresar{
    display: flex;
    justify-content: center;
}
.login-email {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.login-email input {
    width: 370px;
    height: 30px;
    border-radius: 7px;
    display: flex;
}

.login-password {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.login-password input {
    width: 350px;
    height: 30px;
    border-radius: 7px;
}
.login-enviar{
    display: flex;
    justify-content:center;
}
.login-enviar input{
    width: 200px;
    height: 35px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 7px;
    font-size: 18px;
    transition-duration: 0.4s;
    cursor: pointer;
    
}
.login-enviar input:hover{
    background-color: #595555;
    color: #f5d1f5;
}

.login-message {
    padding: 30px;
    text-align: right;
}
.pass-forgot{
    text-align: right;
}
.reset-password{
    display: flex;
    justify-content: right;
}
.reset-password input {
    width: 200px;
    height: 30px;
    font-size: 15px;
    border-radius: 8px;
}


.form-register {
    width: auto;
    height: auto;
    margin: auto;
    margin-top: 10px;
    background-color: #26577C;
    padding: 10px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 30px black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-items: center;
}

.form-register h3 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.register-username {
    padding: 10px 30px;
    display: flex;
}

.register-username input {
    width: 375px;
    height: 30px;
    border-radius: 8px;
}

.register-mail {
    padding: 10px 30px;
    display: flex;
    gap: 10px;
}

.register-mail input {
    width: 370px;
    height: 30px;
    border-radius: 8px;
}
.register-depto {
    padding: 10px 30px;
    display: flex;
    gap: 10px;
}
.register-depto input {
    width: 375px;
    height: 30px;
    border-radius: 8px;
}
.register-password {
    padding: 5px 30px;
    display: flex;
    gap: 10px;
}

.register-password input {
    width: 335px;
    height: 30px;
    border-radius: 8px;
}

.register-re_password {
    padding: 10px 30px;
    display: flex;
    gap: 10px;
}

.register-re_password input {
    width: 350px;
    height: 30px;
    border-radius: 8px;
}

.register-submit {
    margin-top: 20px;
    height: 30px;
}
.register-submit{
    display: flex;
    justify-content: center;
}
.register-submit input {
    width: 200px;
    height: 40px;
    font-size: 15px;
    border-radius: 8px;
    transition-duration: 0.4s;
    cursor: pointer;   
}
.register-submit input:hover{
    background-color: #595555;
    color: #f5d1f5;
}
.error-register{
    width: auto;
    height: auto;
    color: red;
    font-style: bold;
}
.data-user{
    color: black;
}
/* Datos de container create*/

.create-container{
 width: 60vw;
 height: 300px;
 color: black;
display: flex;
flex-direction: column;
row-gap: 10px;
}
.datos-user{
    width: 60vw;
    height: auto;
    padding: 20px 0px;
    background-color: burlywood;
    border: 1px solid blue;
    display: flex;
    font-size: bold;
    justify-content:space-around;
    gap: 20px;
}
.form-create-container{
   width: 60vw;
   height: 400px;
   background-color: azure;
   border: 1px solid blue;
}
.form-create-container h3{
    text-align: center;
}
.create-title{
    padding: 10px 10px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    gap: 10px;
}
.create-submit{
    padding-left: 550px;
    padding-bottom: 20px;
}
.create-submit input{
    width: 100px;
    height: 40px;
    border-radius: 3px;
    background-color:darkgoldenrod;
    transition-duration: 0.4s;
    cursor: pointer;   
}
.create-submit input:hover{
    background-color: #595555;
    color: #f5d1f5;
}
.create-descrp{
    padding: 20px 10px;
    display: flex;
    gap: 10px;
}
.create-descrp textarea{
    width: 350px;
    height: 100px;
}
/*Datos editar -admin*/

.editar-container{
 width: 60vw;
 height: 400px;
 color: black;
display: flex;
flex-direction: column;
row-gap: 10px;
}

.form-editar-container{
   width: 60vw;
   height: 380px;
   background-color: azure;
   border: 1px solid blue;
}
.form-editar-container h3{
    text-align: center;
}
.editar-title{
    padding-top: 20px;
    text-align: center;
}
.editar-submit{
   text-align: right;
   padding-bottom: 30px;
   padding-right: 70px;
}
.editar-submit input{
    width: 100px;
    height: 40px;
    border-radius: 3px;
    background-color:darkgoldenrod;
    transition-duration: 0.4s;
    cursor: pointer;  
}
.editar-submit input:hover{
    background-color: #595555;
    color: #f5d1f5;
}
.editar-descrp{
    padding: 50px 150px;
    display: flex;
    gap: 10px;
}
.editar-descrp textarea{
    width: 350px;
    height: 100px;
}
.editar-status{
    text-align: center;
 
}
.editar-asig{
    text-align: center;
    padding-top: 20px;
}


/*Datos Tabla*/
.container-table{
    width: 100%;
    box-sizing: border-box;
    color:black;
    background-color: bisque;
    box-shadow: 0 0 20px #333;
    display: grid;
    grid-template-columns:   repeat(6,1fr);
    grid-template-rows: 10px;
    word-wrap: break-word;
    gap: 10px;
}
/*ahora acomodaremos el titulo de la tabla*/
.table-title{
    grid-column-start: 1;
    grid-column-end: 7;
    height: 50px;
    background-color: chocolate;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
}
.table-header {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1em;
}
    
.table-item{
    padding: 10px;
    display: flex;
    background-color: white;
    border-radius: 7px;
    border: 1px solid #000;
    justify-content: center;
    align-items: center;
}
/* Tabla de Admin*/
.container-table-admin{
    /* Deja un poco de margen para que se vea bien en el contenedor */
    width: 95%; /* Cambiamos 90vw a 95% del contenedor main */ 
    max-width: 1200px; /* Opcional: poner un ancho máximo para pantallas gigantes */
    margin: 20px auto; /* Centrar la tabla */
    
    color:black;
    background-color: rgb(236, 202, 160);
    box-shadow: 0 0 20px #7c7b7b;
    display: grid;
    /* Mantenemos la definición de columnas que da el ancho a la descripción */
    grid-template-columns: 1fr 1fr 1fr 1fr 4fr 1fr 1fr 1fr 1fr; 
    grid-template-rows: auto; 
    word-wrap: break-word;
}
/*ahora acomodaremos el titulo de la tabla (Modificado para abarcar 10 columnas)*/
.table-title-admin{
    grid-column-start: 1;
    grid-column-end: 10; /* DE 10 AHORA ES 10 */
    height: 50px;
    background-color: rgb(172, 136, 111);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
}

/*... (mantener .table-header-admin igual) ...*/
.table-header-admin {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1em;
    gap: 5px;
}

/* NUEVA CLASE PARA LA DESCRIPCIÓN */
.table-item-descrp{
    padding: 10px;
    text-align: left; /* Alineamos a la izquierda para mejor lectura de texto largo */
    background-color: white; /* Para distinguirlo */
    border: 1px solid #7c7b7b;
    border-radius: 7px;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Asegura el ajuste de líneas */
    font-size: 0.9em; /* Fuente un poco más pequeña */
}
.table-item-admin{
    padding: 10px;
    display: flex;
    border: 1px solid #7c7b7b;
    border-radius: 7px;
    justify-content: center;
    align-items: center;
}


.button-tarea{
background-color: darkgoldenrod;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
.butn-div{
    padding: 20px 0px;
    border-top: 30px;
}
.button-area{
text-decoration: None;
color: black;
font-size: 15px;
}

.container aside{
    background-color: lightcyan;
    grid-area: sidebar; 
}
.logos{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    gap: 45px;
}
.logos > img{
    height: 130px;
    width: auto;
}
 .container footer{
    background-color:lightslategray;
    grid-area: footer;
    display: flex;
    color: black;
    justify-content: space-around;
    align-items: center;
}
/***********************************************/
.flash-message {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    opacity: 0.9; /* Un poco de transparencia */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Asegura que el mensaje en sí también esté sobre el formulario */
}

/* Clases de ejemplo para diferentes tipos de mensaje */
.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Si usas la categoría por defecto 'message' para errores */
.flash-message.message, .form-error {
    color: #856404; /* Texto Amarillo/Naranja */
    background-color: #fff3cd; /* Fondo Amarillo Claro */
    border-color: #ffeeba; /* Borde Amarillo */
}
/* Asegura que el formulario no cubra el mensaje si ambos tienen z-index altos */
form {
    position: relative; /* Para que el contenedor del formulario no interfiera con el posicionamiento del flash */
    z-index: 1; /* Menor que el z-index del mensaje flash */
}
