html {
  font-size: 14px;
}

div#main {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.background-color-wu {
    background-color: #212a33;
    border-color: #000;
}

    .background-color-wu.form-control {
        background-color: #212a33;
        color: #fff;
        border: hidden;
        border-bottom: solid;
        border-bottom-width: thin;
        border-bottom-color: #000;
    }

        .background-color-wu.form-control.input-validation-error {
            border-bottom-color: #ff0000;
        }

        .background-color-wu.form-control:focus {
            outline: none;
            box-shadow: none;
        }


        .background-color-wu.form-control.valid:focus {
            border-bottom-color: #4cff00;
        }

.background-color-nav {
    background-color: #212a33;
}


.action-button-color {
    color: #212a33;
}

.input-color-wu {
    color: #ffd806;
}

.btn-login-wu {
    color: #000;
    background-color: #ffd806;
    border-color: #ffd806;
    border-radius: 16px;
}

    .btn-login-wu:hover {
        color: #000;
        background-color: #e0ac08;
        border-color: #e0ac08;
        border-radius: 20px;
    }

    .navbar-nav li:hover > ul.dropdown-menu {
    display: block;
}
.dropdown-submenu {
    position:relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top:-6px;
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
}
.btn-fixed {
    min-width: 70px;
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    height: auto;
}
.save-btn {
    padding: 4px 8px;
}

.skeleton-loader{
    width: 400px;
    height: 225px;
    background-color: #eee;
    background-size: 200% 100%;
    border-radius: 8px;
}

#preview-container {
    max-width: 400px;
    aspect-ratio: 16 / 9;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

#preview-container img,
#preview-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

#contenidos-source, #contenidos-destino {
    display: flex;
    min-width: 100%;
    align-items: center;
}
.drop-zone-carrusel {
    min-height: 300px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    gap: 1rem;
    align-items: center;
    scroll-behavior: smooth;
}

.contenido-item {
    display: inline-block;
    min-width: 250px;
    max-width: 250px;
    flex: 0 0 auto;
}

.contenido-item img,
.contenido-item video {
    width: 100%;
    height: auto;           
    max-height: 250px;      
    border-radius: 6px;
    display: block;
    object-fit: contain;    
}
.btn-remove {
    background-color: red;
    border-radius: 25%;
    z-index: 2;
}
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-container {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    min-height: 300px;
}

.custom-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    gap: 10px;
    white-space: nowrap;
    height: 300px;
    min-height: 300px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

#carousel-top, #carousel-bottom {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    gap: 10px;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    white-space: nowrap;
    height: 350px;
    min-height: 350px;
    border-radius: 8px;
}

.custom-carousel-item {
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    width: 250px;
    height: 300px; /* Altura fija para todos los items */
    padding: 5px;
    box-sizing: border-box;
    background: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden; /* Evita que el contenido se salga */
}

.custom-carousel-item .media-container {
    width: 100%;
    height: 250px; /* Altura fija para el contenedor de medios */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Fondo negro para videos */
}

.custom-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para ver toda la imagen */
    pointer-events: none;
    display: block;
}

.custom-carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para videos también */
}

.custom-carousel-item .duration-controls {
    width: 100%;
    margin-top: 5px;
    padding: 0 5px;
    box-sizing: border-box;
}

.custom-carousel-item input.contenido-duration {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ui-sortable-placeholder {
    width: 250px;
    height: 300px; /* Misma altura que los items */
    background: #ddd;
    visibility: visible !important;
    flex-shrink: 0;
    border-radius: 4px;
}

.disabled-item {
    position: relative;
    cursor: not-allowed;
}

.disabled-item::after {
    content: "✓ Seleccionado";
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 10;
}


/* Estilos para la barra de scroll */
.custom-carousel::-webkit-scrollbar {
    height: 8px;
}

.custom-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.custom-carousel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para Sidebar */
a.hr-link-finite.submenu-link {
    height: 1px !important;
    margin: 7px auto !important;
    padding: 0 !important;
    color: inherit !important;
    background-color: currentColor !important;
}
