/* Estilos base */
body {
    font-family: 'Roboto', sans-serif;
    background: var(--background-body),
                url('../img/pared_vn.jpg');
    background-size: cover;
    background-position: left top;  /* Posiciona la imagen arriba y a la izquierda */
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgb(94, 94, 94), rgba(206, 205, 205), rgb(152, 151, 151), rgb(173, 173, 173), rgb(103, 103, 103));
}

.header-title {
    flex-grow: 1; /* Permite que el título ocupe el espacio disponible */
    text-align: center; /* Centra el texto */
    
} 
h1 {
    color: #B76E79;
}
h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
}

.container {
    /* transform: scaleX(-1); */ /* Comentado para quitar el efecto espejo */
    width: 95%;
    max-width: 1000px; /* Aumentado para un diseño más amplio */
    margin: 40px auto;
    padding: 0px; /* Aumentado para más espacio interno */
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}
/* Estilo del título */
.card-header h3 {
    font-size: 2.5rem; /* Aumentado para mayor visibilidad */
    color: #6f1855; /* Color atractivo */
    margin-bottom: 30px; /* Espaciado inferior */
}

/* Estilo de las etiquetas */
label {
    font-size: 1rem; /* Aumentado para mayor legibilidad */
    margin-bottom: 10px; /* Espaciado inferior */
}

/* Estilo de los botones */
.btn {
    background-color: #6f1855; /* Color de fondo del botón */
    border: none; /* Sin borde */
    transition: background-color 0.3s ease; /* Transición suave */
    font-size: 1rem; /* Aumentado para mayor legibilidad */
    padding: 15px; /* Aumentado para más espacio interno */
    width: 100%; /* Botón ocupa todo el ancho */
}

.btn:hover {
    background-color: #b94670; /* Color al pasar el ratón */
}

/* Estilo de los inputs */
.form-control {
    border-radius: 5px; /* Bordes redondeados */
    border: 1px solid #ccc; /* Borde gris claro */
    margin-bottom: 20px; /* Espaciado inferior */
    padding: 15px; /* Aumentado para más espacio interno */
    font-size: 1rem; /* Aumentado para mayor legibilidad */
}

.form-control:focus {
    border-color: #6f1855; /* Color del borde al enfocar */
    box-shadow: 0 0 5px rgba(111, 24, 85, 0.5); /* Sombra al enfocar */
}

/* Estilo del contenedor de inicio de sesión */
.login-container {
    width: 100%;
    max-width: 800px; /* Aumentado para más anchura */
    margin: 100px auto; /* Más espacio superior */
    padding: 60px; /* Más padding interno */
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); /* Sombra */
}

/* Estilo del título */
.login-title {
    font-size: 2.5rem; /* Tamaño del texto */
    color: #6f1855; /* Color del texto */
    text-align: center; /* Centrar el texto */
    margin-bottom: 30px; /* Espaciado inferior */
}

/* Estilo de las etiquetas */
.login-label {
    font-size: 1.5rem; /* Tamaño del texto */
    margin-bottom: 10px; /* Espaciado inferior */
}

/* Estilo de los inputs */
.login-input {
    border-radius: 5px; /* Bordes redondeados */
    border: 1px solid #ccc; /* Borde gris claro */
    margin-bottom: 20px; /* Espaciado inferior */
    padding: 15px; /* Espacio interno */
    font-size: 1.5rem; /* Tamaño del texto */
    width: 100%; /* Ancho completo */
}

/* Estilo del botón */
.login-button {
    font-size: 1.5rem; /* Tamaño del texto */
    padding: 15px; /* Espacio interno */
    width: 100%; /* Ancho completo */
    background-color: #6f1855; /* Color de fondo */
    color: white; /* Color del texto */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s; /* Transición suave */
}

.login-button:hover {
    background-color: #b94670; /* Color al pasar el ratón */
}
/* Sistema de pestañas */
.nav-tabs {
    margin-bottom: 20px;
}

/* Estilos específicos para la pestaña de ofertas */
#offers {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ajustes específicos para la tabla de ofertas */
#offers .table {
    width: 100%;
    table-layout: fixed;
}

#offers .table th,
#offers .table td {
    padding: 8px;
    font-size: 0.85rem;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
}

/* Anchos de columna específicos ajustados */
#offers .table th:nth-child(1), #offers .table td:nth-child(1) { width: 12%; } /* Título */
#offers .table th:nth-child(2), #offers .table td:nth-child(2) { width: 15%; } /* Descripción */
#offers .table th:nth-child(3), #offers .table td:nth-child(3) { width: 15%; } /* Servicios */
#offers .table th:nth-child(4), #offers .table td:nth-child(4) { width: 8%; }  /* Tipo */
#offers .table th:nth-child(5), #offers .table td:nth-child(5) { width: 8%; }  /* Precio */
#offers .table th:nth-child(6), #offers .table td:nth-child(6) { width: 10%; } /* Fecha Inicio */
#offers .table th:nth-child(7), #offers .table td:nth-child(7) { width: 10%; } /* Fecha Fin */
#offers .table th:nth-child(8), #offers .table td:nth-child(8) { width: 7%; }  /* Estado */
#offers .table th:nth-child(9), #offers .table td:nth-child(9) { width: 15%; } /* Acciones */

/* Ajustes para los controles dentro de la tabla */
#offers .table input,
#offers .table select,
#offers .table textarea {
    width: 100%;
    padding: 4px;
    font-size: 0.85rem;
}

#offers .table textarea {
    height: 36px;
    resize: vertical;
}

/* Lista de servicios */
.services-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

/* Ajustes para móvil */
@media (max-width: 428px) {
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 10px;
    }

    #offers {
        padding: 8px;
    }

    #offers .table {
        display: block;
        overflow-x: auto;
    }

    #offers .table th,
    #offers .table td {
        padding: 4px;
        font-size: 0.75rem;
        min-width: 80px; /* Asegura un ancho mínimo para las celdas */
    }

    /* Ocultar algunas columnas en móvil */
    #offers .table th:nth-child(6),
    #offers .table td:nth-child(6),
    #offers .table th:nth-child(7),
    #offers .table td:nth-child(7) {
        display: none;
    }

    #addOfferForm {
        padding: 8px;
    }
}

/* Switches */
.form-switch {
    padding-left: 2.5em;
}

.form-switch .form-check-input {
    width: 2em;
    height: 1em;
    margin-left: -2.5em;
}

/* Ajustes para la tabla */
.table {
    font-size: 0.9rem;
}

.table td, 
.table th {
    padding: 0.4rem;
    vertical-align: middle;
}

/* Formularios más compactos */
.form-group {
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Botones más pequeños */
.btn {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-check {
    margin-bottom: 5px;
}

textarea.form-control {
    min-height: 100px;
}

select[multiple] {
    height: auto;
    min-height: 100px;
}

/* Ajuste para el contenedor responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: scroll;
    }
    
    #offers .table {
        min-width: 1000px; /* Asegura que la tabla tenga un ancho mínimo */
    }
}

/* Estilos para las pestañas */
.nav-tabs .nav-link {
    cursor: pointer;
}

.tab-pane {
    padding: 20px 0;
}

/* Asegurar que el contenido de las pestañas sea visible */
.tab-pane.active {
    display: block !important;
}

/* Estilos responsivos para móviles */
@media (max-width: 767px) {
    /* Ajustes generales */
    .admin-container {
        padding: 10px;
        margin-top: 60px;
    }

    /* Ajustes para las pestañas */
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        border-bottom: none;
    }

    .nav-tabs .nav-item {
        width: 50%;
        margin-bottom: 5px;
    }

    .nav-tabs .nav-link {
        padding: 8px;
        font-size: 14px;
        text-align: center;
        margin: 2px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }

    /* Ajustes para las tablas */
    .table {
        font-size: 14px;
    }

    .table thead {
        display: none; /* Ocultar encabezados en móvil */
    }

    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 10px;
    }

    .table tbody td {
        display: block;
        text-align: right;
        padding: 5px;
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }

    /* Ajustes para los formularios */
    .form-control {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* Ajustes para los botones */
    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: flex-end;
    }

    .action-buttons .btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* Ajustes para los modales */
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    /* Ajustes para las alertas */
    .alert {
        padding: 10px;
        margin-bottom: 10px;
        font-size: 14px;
    }
}

/* Ajustes para tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .admin-container {
        padding: 15px;
        margin-top: 70px;
    }

    .nav-tabs .nav-link {
        padding: 10px 15px;
    }

    .table {
        font-size: 15px;
    }

    .action-buttons .btn {
        padding: 5px 10px;
    }
}

/* Ajustes para tablets y pantallas más grandes */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto;
        width: 100%; /* Cambiado de 50% a 100% */
    }
}

.col-md-4 {
    padding-right: 5px; /* Ajusta el padding derecho */
    padding-left: 5px;  /* Ajusta el padding izquierdo */
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgb(94, 94, 94), rgba(206, 205, 205), rgb(152, 151, 151), rgb(173, 173, 173), rgb(103, 103, 103));
    position: sticky;
    background-size: 200% 110%; 
    animation: shine;
    padding: 30px 0;
    text-align: center;

    .contentFooter {
        display: flex;
        margin: 0 auto;
        width: 50%;
        justify-content: space-between;

        .redes, .contacto {
            img {
                width: 60px;
                height: auto;
                margin: 0 5px;
            }
        }

        .contacto {
            a {
                color: #0056b3;
            }
        }
    }
