
body {
    background-color: #2980b9 !important;
}
/* Styles for welcome pages - first page*/
.welcome{
    
    h3{
        font-size: 1.5rem;
        text-align: center;
        margin-top: 10px;
        
    }
    ul{
        text-align: center;
        padding: 1% 3%;
        margin-top: 10%;
        
    }
    li{
        margin-top: 1%;
        
    }
    img{
        border: 2px solid black;
    }
    .menu{
        border: 2px solid black;
        border-radius: 10px;
        
    }
}
/* Styles for the dashboard page */
.hero{
    background-image: url("/imagenes/hero/hero.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 120%;
    display: flex;
    align-items: end;
    justify-content: flex-end;
    margin-top: -3%;
    
    img{
        width: 60%;
        padding: 2% 1%;
        border-radius: 10px;
        background-color: rgba(80, 80, 80, 0.3); padding: 20px;
        
    }
    .content{
        padding: 2% 0%;
    }
    .card{
        background-color: transparent;
        align-items: center;
        border: none;
        max-width: 80vh;
        a{
            color: white;
            text-decoration: none;
            background-color: rgba(80, 80, 80, 0.3);
            border-radius: 10px;
            padding: 10px 20px;
        }
    }
}
table{
    background-color: whitesmoke;
}
/*Accesos Rapidos*/
    .accesos{
        top: 10%;
        left: 5%;
        display: flex;
        gap: 20px;
        flex-direction: row;
        margin-top: 1.5%;
        justify-content: center;
    }
    .logos{
            width: 15vh;
            height: auto;
            border-radius: 10px;
            transition: transform 0.3s ease;
        }
.body{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Three columns */
    padding: 2% 10%;
    text-align: center;
    gap: 20px;
    .card{
        border-radius: 10px;
        img{
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }
        p{
            padding: 1%;
        }
    }
}

/* Styles for the directory page */
.directorio{
    width: 100%;
    display: grid;
    grid-template-columns: auto auto auto auto auto; /* Three columns */
    grid-auto-rows: 1fr;
    gap: 15px;
    padding: 10px;
    justify-items: center;
    align-items: center;
    text-align: center;
    place-items: center;
}
.card_directorio{
    background-color: aliceblue;    
    border: 2px solid black;
    border-radius: 10px;   
    width: 100%;
    padding: auto;
    font-size: 1rem;
    
}
.user-card{
    padding: 3%;
}
.buscador{
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 10px;
}
label{
        margin-right: 10px;
        margin-top: 8px;
    }
    input{
        border-radius: 10px;
    }
    .acciones {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}

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


/**SGC Styles**/

/* --- Contenedor principal de las tarjetas (Flexbox) --- */
.sgc {
    display: flex; /* Habilita Flexbox */
    flex-wrap: wrap; /* Permite que las tarjetas salten a la siguiente línea si no caben */
    gap: 20px; /* Espacio entre las tarjetas */
    justify-content: center; /* Centra las tarjetas horizontalmente en el contenedor */
    padding: 20px;
    width: 100%;
}

/* --- Estilos para cada tarjeta individual --- */
.card_sgc {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 280px; /* Ancho fijo para cada tarjeta */
    text-align: center;
    box-sizing: border-box; /* Incluye padding y borde en el ancho */
}

/* --- Estilos para el botón dentro de la tarjeta (Flexbox) --- */
.user-card {
    display: flex; /* Habilita Flexbox para el botón */
    flex-direction: column; /* Coloca el SVG y el texto uno debajo del otro */
    align-items: center; /* Centra horizontalmente el SVG y el texto */
    justify-content: center; /* Centra verticalmente si el botón tiene espacio extra */
    width: 100%; /* El botón ocupa todo el ancho de la tarjeta */
    padding: 15px 10px;
    border: none;
    background-color: transparent; /* Fondo transparente para el botón */
    cursor: pointer;
    text-decoration: none; /* Elimina el subrayado por defecto de los enlaces */
    color: inherit; /* Hereda el color del texto */
}

.user-card:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* --- Estilos para el SVG dentro del botón --- */
.user-card svg {
    width: 60px; /* Ajusta el tamaño del SVG */
    height: auto; /* Mantiene la proporción */
    margin-bottom: 10px; /* Espacio entre el SVG y el texto */
    fill: #74C0FC; /* Asegura el color del SVG */
}

/* --- Estilos para el enlace dentro del botón --- */
.user-card a {
    text-decoration: none; /* Quita el subrayado del enlace */
    color: #333; /* Color del texto del enlace */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

.user-card a:hover {
    color: #007bff; /* Color al pasar el ratón */
}

@media screen and (max-width: 768px) {
    .directorio {
        grid-template-columns: 1fr; /* Two columns on smaller screens */
    }
    .card_directorio {
        width: 100%; /* Adjust width for smaller screens */
        padding: 5px; /* Adjust padding for smaller screens */
        font-size: 1rem;
    }
    
}

.power{
    background-color: aliceblue;
}


@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center; /* Center align items */
    }
    
    .body {
        grid-template-columns: 1fr; /* Single column layout on smaller screens */
    }
    .card {
        margin-bottom: 20px; /* Add spacing between cards */
    }
    
}


/* Styles for the SGC Page */
.sgc_interno {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between cards */    
    padding: 20px;

    .background-oscuro {
        background-image: url("../imagenes/SGC/construccion.webp");
        background-size: cover;
        background-position: center;
        filter: brightness(0.6); /* Oscurece la imagen */
        height: 100vh;
        position: relative;
    }
    .background-rh {
        background-image: url("../imagenes/SGC/rh.webp");
        background-size: cover;
        background-position: center;
        filter: brightness(0.6); /* Oscurece la imagen */
        height: 100vh;
        position: relative;
    }

    .background-adfi {
        background-image: url("../imagenes/SGC/adfi.webp");
        background-size: cover;
        background-position: center;
        filter: brightness(0.6); /* Oscurece la imagen */
        height: 100vh;
        position: relative;
    }
    .background-comercial {
        background-image: url("../imagenes/SGC/comercial.webp");
        background-size: cover;
        background-position: center;
        filter: brightness(0.6); /* Oscurece la imagen */
        height: 100vh;
        position: relative;
    }

    .contenido-texto {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-align: center;
        font-size: 2rem;
        filter: brightness(1); /* Restaura brillo del texto */
    }


    .roles{
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto auto;
        gap: 20px; /* Space between cards */
        
        
        .roles_cards{
            background-color: #1d4ed8;
            place-items: center;
            text-align: center;
            border-radius: 10px;
        }
        .user_card{
            
            padding: 10px;
            margin-bottom: -30%;
            a{
                font-size: larger;
                color: white;
            }
            
        }
    }
}

/* Styles for the Presupestos Section */
.presup{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8f9fa; /* Light background for contrast */

    .boton{
        border: black 2px solid;
        border-radius: 10px;
        padding: 10px 20px;
        background-color: whitesmoke; /* Bootstrap primary color */

    }
}


/* Estilos generales para el contenedor */
.edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f8f9fa;
  gap: 20px;
}

.adminsgc h2 {
  color: #0055aa;
  margin-bottom: 1rem;
}

/* Contenedor dividido en dos columnas */
.form-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Columnas izquierda y derecha */
.form-left,
.form-right {
  flex: 1 1 400px;
  max-width: 500px;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 80, 160, 0.2);
}

/* Estilos para etiquetas e inputs dentro de ambas columnas */
.form-left label,
.form-right label {
  display: block;
  margin-bottom: 0.5rem;
  color: #0055aa;
  font-weight: bold;
}

.form-left input[type="text"],
.form-left input[type="date"],
.form-left input[type="file"],
.form-left select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #a0c4ff;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-right input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Botón */
.send {
  background-color: #0077cc;
  color: white;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  border-color: #005fa3;
  margin-top: 1rem;

  /* Centrado horizontal */
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 200px; /* o el ancho que prefieras */

}

button:hover {
  background-color: #005fa3;
}
.dropdown-checkbox {
  margin-bottom: 1rem;
  width: 100%;
}

.dropdown-toggle {
  background-color: #0077cc;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  padding: 1rem;
  background-color: #f1f1f1;
  border-radius: 5px;
  margin-top: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 80, 160, 0.1);
}

.dropdown-content label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}
/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .form-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Styles for the SGC Documentos Page ALL*/
.allsgc {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-family: 'Segoe UI', sans-serif;
}

thead {
    background-color: #2c3e50;
    color: #fff;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f4f4f4;
}

.send {
    background-color: #3498db;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send a {
    color: white;
    text-decoration: none;
}
button{
    background-color: #3498db;
    color: white;
    padding: 10px 16px;
}

.send:hover {
    background-color: #2980b9;
}

/* Edit SGC*/

/* Nueva clase específica para Tableros BI */
.tablerosbi {
    width: 100%;
    display: grid;
    /* Crea columnas automáticas de mínimo 220px */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 25px;
    justify-items: center;
}

/* Color del título de la categoría (fuera de la tarjeta) */
.titulo-categoria-bi h2 {
    color: #ffffff !important; /* Blanco puro */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Color del nombre del reporte (dentro de la tarjeta) */
.nombre-reporte {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important; /* Cambiado a blanco */
    margin-bottom: 15px;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3); /* Mejora legibilidad */
}

/* Ajuste de la tarjeta para que el fondo no opaque el texto blanco */
.card_bi {
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente claro */
    backdrop-filter: blur(5px); /* Efecto de cristal esmerilado */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.card_bi:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.user-card-bi {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.nombre-reporte {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    min-height: 2.5em; /* Alinea los botones aunque el nombre sea largo */
}

.accion-reporte a {
    display: inline-block;
    background-color: #2980b9;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.accion-reporte a:hover {
    background-color: #1c5982;
}
/* Forzar color claro en los títulos de categoría */
.titulo-categoria-bi h2 {
    color: #ffffff !important;
}

/* Forzar color blanco en los nombres de los tableros */
.tablerosbi .card_bi .nombre-reporte {
    color: #ffffff !important; /* Blanco puro */
    font-weight: bold;
    text-align: center;
}

/* Por si el nombre está dentro de un enlace o tiene herencia extra */
.tablerosbi .card_bi .user-card-bi, 
.tablerosbi .card_bi .user-card-bi div {
    color: #ffffff !important;
}

/* Estilo del botón "Ver" para que resalte */
.accion-reporte a {
    background-color: #ffffff !important;
    color: #2980b9 !important; /* Letra azul sobre botón blanco */
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
