
.background-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(66, 133, 244, 0.3);
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(234, 67, 53, 0.3);
    bottom: -200px;
    right: -200px;
}

/* Estilo para el formulario de cristal */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Estilos para los inputs */
.form-floating {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    border-color: #21abe3;
}

/* Botón de login */
.btn-login {
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #21abe3, #0099ff);
    border: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 171, 227, 0.3);
}

/* Iconos */
.bi {
    transition: all 0.3s ease;
}

.form-floating .bi {
    color: #6c757d;
    margin-right: 0.5rem;
}

/* Link olvidaste contraseña */
.forgot-link {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #21abe3;
    text-decoration: underline;
}

/* Estilos para mensajes de error y alertas */
#alert-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #333;
}

.alert i {
    font-size: 1.2rem;
}

.alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Estilos para validación de campos */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Animación para el botón de login cuando está procesando */
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkbox personalizado */
.form-check-input {
    cursor: pointer;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #21abe3;
    border-color: #21abe3;
}

.login-container {
    background-color: #fff4d7;
    background: url("/assets/images/talega/layers/BACKGROUND_01_V1.png");
    min-height: 100vh;
}

.form-floating {
    margin-bottom: 1rem;
}

.brand-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.btn-login {
    padding: 0.75rem;
    font-weight: 500;
}

.forgot-link {
    text-decoration: none;
}

@media (max-width: 768px) {
    .order-md-last {
        margin-top: 2rem;
    }
}



#loadable_content{
    display: none;
}

img{
    object-fit: cover;
    object-position: center;
}

.content {
    margin-bottom: 50px;
}

#accordion_collapsed{
    background-color: white;
}

.min_width_max{
    min-width: max-content;
}

.pagination{
    display: flex;
    flex-wrap: wrap;
}

.pagination > * {
    margin-top: 0.5rem;
}

.swal2-actions{
    gap: 0.5rem;
}

.swal2-actions>button+button{
    margin: 0;
}

tr.odd{
    background-color: ghostwhite;
}

#user_image{
    border: solid 2px rgba(255, 255, 255, 0.85);
}


.secondary_background{
    background: linear-gradient(135deg, #5D7280, #0a0a0a 200%);
}

#id_lang_flags_container img{
    object-fit: contain;
}

.visualization_mode_card{
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.visualization_mode_content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.visualization_mode_img {
    width: 100%;
}

/* BOTONES DEL INDEX */
.buttons_section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    place-content: center;
}

.button_container {
    text-align: center;
}

.button_container button {
    font-size: 2.25rem;
    font-weight: 500;
    padding: 2rem;
    border: solid white 0.3rem;
    border-radius: 4rem;
    color: white;
    background: radial-gradient(at 50% -150%, #ffc69e, #D25600);
    box-shadow: black 0px 0px 0px 0px;
}

.button_container button:hover:not(:active) {
    scale: 1.02;
    transition: 0.2s;
}
/* //BOTONES DEL INDEX */

.profile_image{
    aspect-ratio: 1;
}

.cls-hidden {
    display: none;
}

#create_group_form{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#create_group_name{
    max-width: 20rem;
}

#create_group_button{
    width: fit-content;
}

#delivery_cost_container{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#delivery_cost_container input{
    width: 5rem;
}

#min_payment_container{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#min_payment_container input{
    width: 5rem;
}

#modify_group_buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#profile_username{
    color: #1F2937;
}

#profile_button:hover #profile_username{
    color: black;
}

.gallery-item {
    position: relative;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}

.image-container {
    position: relative;
    /* margin-bottom: 10px; */
    margin: 0 20px 0 0px;
}

.delete-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red; /* Puedes ajustar el color según tus preferencias */
    cursor: pointer; /* Hace que el cursor cambie a una mano cuando pasa sobre el icono de borrar */
}

.image-container:hover .delete-icon {
    display: block;
}

#performance_range_select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: center;
    padding: 0 0.3rem;
}

/* ANALYTICS - TOP PRODUCTS */
.top_products_img_container{
    border: solid #d83f13;
    border-radius: 25%;
    overflow: hidden;
  }
  
  .top_products_img_container img{
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  
  .product_div {
    padding: 1rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
  }
  
  .top_products_info_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .top_products_total{
    font-weight: bold;
    margin: 0;
  }
  
  .top_products_category{
    color: grey;
  }
  
  .top_products_name{
    font-weight: bold;
  }
  /* end ANALYTICS - TOP PRODUCTS */

  .alert_custom {
    --alert-color: #35bade;
    --alert-bg: #35bade20;
    --alert-border-color: #35bade;
    --alert-link-color: #003f6e;
    --alert-link-hover-color: #003f6e;
  }

  .restaurant_only {
    display: none;
  }

  /* Estilos para campos de validación */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Estilos para galería de imágenes */
#gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
}

.image-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.image-overlay i {
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.image-overlay i:hover {
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.image-container:hover img {
    transform: scale(1.05);
}

.btn-close-custom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(220, 53, 69, 1); /* Rojo translúcido */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 14px;
  cursor: pointer;
  opacity: 1;
  transition: background 0.3s ease;
}

.btn-close-custom:hover {
  background: rgba(200, 35, 51, 1); /* Más oscuro al pasar el mouse */
}

.btn-close-custom i {
  pointer-events: none; /* Evita interferencias con clics */
  font-size: 32px;
}