#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%);
}

/* ========================================
   ANIMACIONES MODERNAS PARA LOGIN
   ======================================== */

/* Animación de entrada del formulario */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Formulario animado */
.login-form-animated {
    animation: slideInUp 0.6s ease-out;
}

/* Card con sombra animada */
.login-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Logo animado */
.logo-animated {
    animation: fadeIn 0.8s ease-out, pulse 2s ease-in-out 0.8s;
}

/* Inputs con animación */
.input-group-animated {
    animation: fadeIn 0.8s ease-out;
}

.animated-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.animated-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 91, 184, 0.2);
    border-color: #4c5bb8;
}

.animated-input:hover:not(:focus) {
    border-color: #e0e0e0;
}

/* Iconos con animación */
.form-control-feedback-icon i {
    transition: all 0.3s ease;
}

.animated-input:focus ~ .form-control-feedback-icon i {
    color: #4c5bb8 !important;
    transform: scale(1.1);
}

/* Botón animado */
.animated-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 91, 184, 0.3);
}

.animated-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 91, 184, 0.4);
}

.animated-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 91, 184, 0.3);
}

/* Efecto de onda en el botón */
.animated-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.animated-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading spinner para el botón */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animated-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.animated-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Labels con animación */
.form-label {
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-group-animated:focus-within .form-label {
    color: #4c5bb8;
    transform: translateX(2px);
}

/* Link animado */
.link-dark {
    position: relative;
    transition: all 0.3s ease;
}

.link-dark::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #4c5bb8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.link-dark:hover::after {
    width: 100%;
}

.link-dark:hover {
    color: #4c5bb8 !important;
}

/* Animación de entrada escalonada */
.input-group-animated:nth-child(4) {
    animation-delay: 0.1s;
}

.input-group-animated:nth-child(5) {
    animation-delay: 0.2s;
}

.mb-3:has(.animated-button) {
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.text-center:last-child {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-card:hover {
        transform: translateY(-2px);
    }
    
    .animated-button:hover::before {
        width: 200px;
        height: 200px;
    }
}

#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;
}

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

#profile_username{
    color: white;
}

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

.gallery-container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

.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;
}

/* 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 */

  .icon_button {
    border: solid;
    display: flex;
    flex-direction: column;
    height: fit-content;
    aspect-ratio: 1;
    place-content: center;
    border-radius: 0.6rem;
    outline: solid #727272 0.1rem;
  }

