/* GENERAL*/
#main-container {background-color: white;padding: 2rem;position: relative;}
h1 {}
h1+p {margin: 0 0 2rem;}
form {margin: 0 0 5rem;}
form .mb-3 {margin-bottom: 1.5rem !important;}
img#logo {width: 600px;display: block;margin: -2rem 0 1rem -2rem;/* position: absolute; *//* top: 0; *//* left: 0; */}
label {font-weight: bold;display: block;}


/* RADIO */

.type-radio .form-check-inline,
.type-checkbox .form-check-inline {
    position: relative;
    padding: 0;
    margin: 0;
}
.type-radio .form-check-inline input[type="radio"],
.type-checkbox .form-check-inline input[type="checkbox"] {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translate(0%, -50%);
    opacity: 1;
    z-index: 1;
    margin: 0;
    cursor: pointer;
    float: unset;
    /* vertical-align: middle; */
}
.type-radio .form-check-inline input[type="radio"]:checked[type=radio]{}
.type-radio input+label,
.type-checkbox input+label {
    font-weight: normal;
    padding: 0.5rem 1rem 0.5rem 2rem;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 0.3rem;
    vertical-align: middle;
    margin: 0.25rem 1rem 0.25rem 0;
}
.type-radio .form-check-inline input[type="radio"]:checked + label,
.type-checkbox .form-check-inline input[type="checkbox"]:checked + label {
    background-color: #eff3ff;
    /* padding: 0.5rem 1rem 0.5rem 2rem; */
    /* color: white; */
    /* border-width: 2px; */
    vertical-align: middle;
    border-color: #0d6efd;
}


/* STARS */
.type-stars .star-rating {
    direction: rtl;
    display: inline-flex;
}
.type-stars .star-rating input[type="radio"] {
    /* display: none; */
    /* visibility: hidden; */
    width: 2px;
    /* height: 0; */
    opacity: 0;
}
.type-stars .star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    line-height: 0.7;
}
.type-stars .star-rating label:hover {
    color: #ccc;
}
.type-stars .star-rating input[type="radio"]:checked ~ label {
    color: #0d6efd;
}



/* SORT */
.type-sort .draggable {
    cursor: move;
    display: flex;
    align-items: center;
}
.type-sort .draggable.ui-sortable-helper {
    background-color: #f0f0f0;
    border: 2px dashed #0d6efd;
    opacity: 0.9;
}

.type-sort .draggable.ui-sortable-placeholder {
    background-color: #e9ecef;
    border: 2px dashed #0d6efd;
    height: 40px; /* Asegúrate de que la altura sea consistente con los elementos arrastrables */
    visibility: visible !important;
}

.type-sort .draggable::before {
    content: attr(data-pos);
    font-weight: bold;
    margin-right: 10px;
}
.type-sort .draggable::after {
    content: ""; /* Icono de barras para arrastrar (Font Awesome) */
    position: absolute;
    right: 20px;
    background-image: url('bars.svg');
    width: 20px;
    aspect-ratio: 1/1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* margin-right: 10px; */
    opacity: 0.7;
    cursor: move;
}
.type-sort .draggable:hover::after {
    opacity: 0.5;
}

/* Agregar estos estilos al final de styles.css */

/* SORT - Opción Otros */
.type-sort .otros-item {
    display: flex;
    align-items: center;
    position: relative;
}

.type-sort .otros-item .otros-label {
    cursor: pointer;
    flex: 0 0 auto;
}

.type-sort .otros-item .otros-input {
    display: none;
    margin-left: 10px;
    flex: 1;
    min-width: 200px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.type-sort .otros-item.ui-sortable-helper .otros-input {
    display: none !important;
}

.type-sort .otros-item::before {
    content: attr(data-pos);
    font-weight: bold;
    margin-right: 10px;
}

.type-sort .otros-item:hover {
    background-color: #f8f9fa;
}

/* Ajustes para móvil */
@media screen and (max-width:768px){
    .type-sort .otros-item .otros-input {
        min-width: 120px;
        font-size: 0.8rem;
    }
}


@media screen and (max-width:768px){
    #main-container {width:calc(100% - 30px);padding: 1rem;margin-top: 2rem !important;}
    img#logo {width:100%;margin: -1rem 0 1rem -1rem;}
    .type-sort .draggable::after {
        right: 10px;
        width:15px;
    }
    
}