:root {
    --vintage-red: #d63031;
    --vintage-blue: #0a3d62;
    --vintage-cream: #f9f1e0;
    --vintage-dark: #2d3436;
    --vintage-accent: #b33939;
}

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

.btn-red{
    background-color: #D84040 !important;
    color: white !important;
}


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

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

.list-group-item {
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#products_list .card {
    transition: all 0.3s ease;
}

#products_list .card:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container-login {
    font-family: 'Georgia', serif;
    min-height: 100vh;
    background: linear-gradient(45deg, var(--vintage-blue), var(--vintage-dark));
    display: flex;
    flex-direction: column;
    position: relative;
}

.container-login:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(255, 255, 255, 0.02) 15px,
            rgba(255, 255, 255, 0.02) 30px
        );
    pointer-events: none;
}

.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 5;
}

.logo img {
    height: 6rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.login-card {
    background: var(--vintage-cream);
    padding: 2.5rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--vintage-red);
    position: relative;
    overflow: hidden;
}


.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--vintage-dark);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

h2 {
    color: var(--vintage-red);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Georgia', serif;
}

.login-header p {
    color: var(--vintage-dark);
    font-size: 0.9rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #b8b8b8;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    background-color: white;
    color: var(--vintage-dark);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Georgia', serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--vintage-blue);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.2);
}

button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"] {
    background-color: red;
    border: 2px solid var(--vintage-red);
    color: white;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button[type="submit"]:hover {
    background-color:  var(--vintage-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.forgot-password {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--vintage-dark);
}

.forgot-password a {
    color: var(--vintage-blue);
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.25rem;
    border-bottom: 1px dotted var(--vintage-blue);
}

.forgot-password a:hover {
    color: var(--vintage-red);
    border-bottom-color: var(--vintage-red);
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.google-login, .sso-login {
    background-color: white;
    border: 1px solid #b8b8b8;
    color: var(--vintage-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.google-login:hover, .sso-login:hover {
    background-color: #f0f0f0;
}

.create-account {
    text-align: center;
    font-size: 0.85rem;
    color: var(--vintage-dark);
    margin-top: 1rem;
}

.create-account a {
    color: var(--vintage-blue);
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.25rem;
    border-bottom: 1px dotted var(--vintage-blue);
}

.create-account a:hover {
    color: var(--vintage-red);
    border-bottom-color: var(--vintage-red);
}

@media (max-width: 768px) {
    .container {
        justify-content: center;
        padding: 1rem;
    }
    
    .logo {
        position: static;
        text-align: center;
        margin: 2rem 0;
    }
    
    .login-card {
        padding: 2rem;
    }
}
// ...existing code...


@media (max-width: 768px) {
    .container {
        justify-content: center;
        padding: 1rem;
    }
    
    .logo {
        position: static;
        text-align: center;
        margin: 2rem 0;
    }
    
    .login-card {
        padding: 2rem;
    }
}


.required:after {
    content: " *";
    color: red;
}

.btn-krondoc{
    background-color: #DCC3E2;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-krondoc-black{
    background-color:rgb(180, 123, 196);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-clear{
    background-color: #F8F9FA;
    color: black;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    progress {
        position: relative;
        z-index: 0;
        left: 15px;
        top: 8px;
        height: 25px;
        width: 200px;
        border-radius: 5px;
    }
    
    progress::-webkit-progress-bar {
        background-color: #f0f0f0;
        border-radius: 5px;
    }
    
    progress::-webkit-progress-value {
        background-color: #4CAF50;
        border-radius: 5px;
    }
    
    progress::-moz-progress-bar {
        background-color: #4CAF50;
        border-radius: 5px;
    }

.loading-pulse {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D63A29;
    animation: pulse 1.2s ease-in-out infinite;
    position: relative;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(113, 87, 161, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(113, 87, 161, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(113, 87, 161, 0);
    }
}

/* Badges personalizados - Nueva paleta */
.custom-badge-success {
    background: linear-gradient(45deg, #7E57C2, #5E35B1);  /* Morado profundo */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-badge-warning {
    background: linear-gradient(45deg, #FFB74D, #FF9800);  /* Naranja cálido */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-badge-info {
    background: linear-gradient(45deg, #4DB6AC, #26A69A);  /* Turquesa */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-badge-danger {
    background: linear-gradient(45deg, #F06292, #E91E63);  /* Rosa/Fucsia */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-badge-office {
    background: linear-gradient(45deg, #9575CD, #7986CB);  /* Violeta suave */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-badge-remote {
    background: linear-gradient(45deg, #81C784, #4CAF50);  /* Verde fresco */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

.custom-badge-field {
    background: linear-gradient(45deg, #64B5F6, #2196F3);  /* Azul cielo */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Mejora de efectos visuales */
.badge {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.badge i {
    transition: transform 0.3s ease;
}

.badge:hover i {
    transform: scale(1.2) rotate(5deg);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.btn-light {
    border-color: #dee2e6;
    background-color: #fff;
    transition: all 0.2s ease;
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #cbd3da;
}

.gap-2 {
    gap: 0.5rem !important;
}

/* Estilos para los botones de informes */
.datatable-header .btn-light {
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 0.875rem;
    padding: 0.4375rem 0.875rem;
    transition: all 0.2s ease;
}

.datatable-header .btn-light:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.datatable-header .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

.datatable-header .dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Ajustar espaciado del filtro */
.dataTables_filter {
    margin-right: 1rem;
}

.datatable-buttons {
    display: flex;
    gap: 1rem;
}


.datatable-buttons-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-direction: center;
    justify-content: center;
}

.dataTables_length{
    margin-bottom: auto;
}

.fixed-height-card {
    height: 250px !important; /* Ajusta esta altura según necesites */
}

/* Hacer que el contenido de la card sea scrolleable */
.fixed-height-card .card-body {
    height: calc(100% - 56px); /* Resta la altura del header */
    overflow-y: auto;
}

/* Estilizar la barra de scroll */
.fixed-height-card .card-body::-webkit-scrollbar {
    width: 6px;
}

.fixed-height-card .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fixed-height-card .card-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.nav_custom_hover:hover {
    background-color: #a981ee9c !important;
}
