[data-bs-theme=dark] {
    --bs-body-bg: #151515;
}

body {
    background: var(--bs-body-bg);
    font-family: "Plus Jakarta Sans", serif;
}

.video-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border-radius: 8px;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.08);
}

.badge-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tag-badge {
    font-size: 0.7rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: none;
}

.h6, h6 {
    font-size: 1.2rem;
    line-height: initial;
    font-weight: 800 !important;
}

.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 7px 7px 0 0;
    border-bottom: 1px solid #383838;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.thumbnail-wrapper .badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    transform: rotate(-3deg);
    font-weight: 900;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0px;
    border-radius: 100px;
}

.form-control {
    border-radius: 8px;
    height: 40px;
    font-size: 0.8rem;
}

.form-control:focus, .form-select:focus {
    border-color: #858585;
    box-shadow: 0 0 0 .25rem rgb(141 141 141 / 25%);
}

.form-select-sm {
    font-size: .8rem;
    border-radius: 8px;
    height: 36px;
}

.navbar-brand {
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-logo {
    height: 20px;
    width: auto;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #343a40;
    color: #ffffff;
}

.pagination .page-link {
    cursor: pointer;
}

button.open-video-btn {
    border-radius: 8px;
    height: 40px;
    color: #151515;
    font-weight: bold;
}

.btn-primary {
    background-color: #00FF7F;
    border-color: #00FF7F;
    border-radius: 8px;
    color: #151515;
}

.btn:hover {
    color: #151515;
    background-color: #00F078;
    border-color: #00F078;
}

.btn:active {
    color: #ffffff;
    background-color: #151515;
    border-color: #151515;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: #ffffff!important;
    background-color: #151515!important;
    border-color: #151515!important;
}

[data-bs-theme="dark"] .btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: #ffffff!important;
    background-color: #151515!important;
    border-color: #ffffff!important;
}

.bg-body {
    --bs-bg-opacity: 1;
    background-color: transparent!important;
    min-height: 60px;
}

.d-flex.align-items-center.gap-2.ms-auto {
    margin-right: -8px!important;
}

.h3, h3 {
    font-weight: 900;
}

/* Logo variants per theme */
[data-bs-theme="light"] .brand-logo-light {
    display: inline-block;
}
[data-bs-theme="light"] .brand-logo-dark {
    display: none;
}

[data-bs-theme="dark"] .brand-logo-light {
    display: none;
}
[data-bs-theme="dark"] .brand-logo-dark {
    display: inline-block;
}

span.badge.text-bg-primary.rounded-pill {
    font-weight: 900;
    padding: 8px 16px;
    text-transform: capitalize;
    letter-spacing: 0px;
    border-radius: 100px;
    background: #00FF91 !important;
    color: #151515 !important;
}

[data-bs-theme="dark"] .text-bg-secondary {
    color: #b4b4b4 !important;
    background-color: transparent!important;
    border: 1px solid #5c5c5c;
    padding: 8px 6px;
    font-weight: 500;
}

[data-bs-theme="light"] .text-bg-secondary {
    color: #b4b4b4 !important;
    background-color: transparent!important;
    border: 1px solid #d0d0d0;
    padding: 8px 6px;
    font-weight: 500;
}

span.badge.bg-primary-subtle.text-primary.badge-category {
    background: #753CFF !important;
    color: #ffffff !important;
}

span.badge.bg-danger-subtle.text-danger.badge-category {
    background: #FF0049 !important;
    color: #ffffff !important;
}   

span.badge.bg-warning-subtle.text-warning.badge-category {
    background: #FCC040 !important;
    color: #ffffff !important;
}

span.badge.bg-success-subtle.text-success.badge-category {
    background: #FF8300 !important;
    color: #ffffff !important;
}

span.badge.bg-secondary-subtle.text-secondary.badge-category {
    background: #999EA6 !important;
    color: #ffffff !important;
}

span.badge.bg-info-subtle.text-info.badge-category {
    background: #00DBFF !important;
    color: #ffffff !important;
}

.small, small {
    font-size: .8em;
}

.form-check-input:checked {
    background-color: #00ff92;
    border-color: #00ff92;
}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem rgb(115 115 115 / 25%);
}

.btn-logout {
    border: none;
}

.btn-logout img {
    height: 20px;
}

.ico-view, .ico-like {
    height: 16px;
    margin-right: 4px;
}


.like-btn {
    color: #5a5a5a!important;
    text-decoration: none!important;
}

.like-btn:hover {
    color: #5a5a5a!important;
    background-color: transparent!important;
    border-color: transparent!important;
    text-decoration: none!important;
}

.account-views {
    position: relative;
    top: 1px;
}

.account-likes {
    position: relative;
    top: -2px;
    color: #dee2e6bf;
}

button.btn.btn-link.btn-sm.p-0.like-btn {
    text-decoration: none;
    color: #5a5a5a;
    position: relative;
    top: 4px;
}

.like-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ico-like {
  width: 16px;
  height: 16px;
}

/* Estado por defecto: solo el corazón de borde visible */
.like-btn .ico-like-outline {
  display: inline-block;
}

.like-btn .ico-like-filled {
  display: none;
}

/* Corazón relleno al hacer hover o cuando el botón está en estado liked */
.like-btn:hover .ico-like-filled,
.like-btn.liked .ico-like-filled {
  display: inline-block;
}

.like-btn:hover .ico-like-outline,
.like-btn.liked .ico-like-outline {
  display: none;
}

.btn-logout {
    background-color: #151515;
    border-color: #151515;
    padding: 2px;
}

.btn-logout:hover {
    background-color: #151515;
    border-color: #151515;
}

.form-switch {
    margin-right: -8px !important;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

[data-bs-theme="light"] .modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #151515;
}

[data-bs-theme="light"] .btn-logout {
    background-color: #ffffff;
    border-color: #ffffff;
    padding: 2px;
}

[data-bs-theme="light"] .btn-logout:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    padding: 2px;
}

[data-bs-theme="dark"] #sign-out-alt { fill: #ffffff; }
[data-bs-theme="light"] #sign-out-alt { fill: #151515; }

[data-bs-theme="light"] .account-likes {position: relative; top: -2px; color: #636363bf;}

[data-bs-theme="dark"] .ico-view { fill: #ffffff; }

[data-bs-theme="dark"] .ico-like-filled { display: none; fill: #ffffff; }
/* [data-bs-theme="dark"] .like-btn:hover .ico-like-filled,
.like-btn.liked .ico-like-filled { display: inline; } */
[data-bs-theme="dark"] .like-btn:hover .ico-like-filled,
[data-bs-theme="dark"] .like-btn.liked .ico-like-filled { display: inline; }

/* [data-bs-theme="dark"] .ico-like-outline { fill: none; stroke: #888888; } */
[data-bs-theme="dark"] .ico-like-outline { fill: #888888; stroke: none; }
[data-bs-theme="light"] .ico-like-outline { fill: #636363; stroke: none; }

/* [data-bs-theme="dark"] .like-btn:hover .ico-like-outline,
.like-btn.liked .ico-like-outline { display: none; } */
[data-bs-theme="dark"] .like-btn:hover .ico-like-outline,
[data-bs-theme="dark"] .like-btn.liked .ico-like-outline { display: none; }

.btn-admin {
    font-weight: bold!important;
    color: #ffffff!important;
    background-color: transparent!important;
    border: 2px solid #ffffff;
    font-size: 14px;
    padding: 5px 11px;
    border-radius: 8px;
}

.btn-admin:hover {
    background-color: #00FF7F!important;
    border: 2px solid #00FF7F;
    color: #151515!important;
}

[data-bs-theme="light"] .btn-admin {
    font-weight: bold!important;
    color: #151515!important;
    background-color: transparent!important;
    border: 2px solid #151515;
    font-size: 14px;
    padding: 5px 11px;
    border-radius: 8px;
}

[data-bs-theme="light"] .btn-admin:hover {
    background-color: #00FF7F!important;
    border: 2px solid #00FF7F;
    color: #151515!important;
}


/* LOGIN */
.wrapper-templet {
    /* background-color: #00FF7F !important; */
    background-image: url('../images/bg-templet.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    .rounded {
        border-radius: 30px !important;
    }

    .welcome {
        background-color: #15151565;
    }

    .blur {
        backdrop-filter: blur(15px);
        background-color: rgba(33, 33, 33, .8); /* por ejemplo */
    }

    .bg-tagline {
        background-image: url("../images/tagline.png");
        background-repeat: no-repeat;
        background-position: bottom;
        background-size: contain;
    }

    p {
        font-weight: 400;
        font-size: 16px;
    }

    h4 {
        font-weight: 900;
    }

    .btn-eye {
        border-color: #dee2e6!important;
    }

    .btn-eye:hover {
        background-color: transparent!important;
        border-color: #dee2e6!important;
    }

    p.small {
        font-size: 0.8rem;
        color: #999EA6;
    }

    p a {
        font-weight: bold;
        color: #999EA6;
        text-decoration: none;
    }

    p a:hover {
        font-weight: bold;
        color: #151515;
        text-decoration: underline;
    }

}

#video-prompts-list pre {
    width: 100%;
    white-space: normal !important;
    font-size: 11px;
}

.home-wrapper {
    .modal-content {
        height: 100vh!important;
    }

    .modal.show .modal-dialog {
        transform: none!important;
        margin: 0!important;
    }

    .modal-xl {
        width: 100%;
        min-height: auto;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    button.accordion-button {
        font-size: 12px;
        font-family: "Plus Jakarta Sans", serif!important;
    }

    .accordion-button {
        padding: 12px;
    }

    .accordion-body {
        padding: 12px;
    }

    .btn-prompt {
        color: #999EA6;
        font-weight: bold;
        font-size: 12px;
        border: 2px solid #999EA6;
        border-radius: 8px;
        padding: 6px 10px;
        margin-top: 10px;
        svg {
            fill:#999EA6!important;
        }
    }

    .btn-prompt:hover {
        color: #151515;
        border: 2px solid #00F078;
        svg {
            fill:#151515!important;
        }
    }

    .accordion-item:last-of-type {
        border-bottom-right-radius: 8px!important;
        border-bottom-left-radius: 8px!important;
    }

    .accordion-item:first-of-type {
        border-top-left-radius: 8px!important;
        border-top-right-radius: 8px!important;
    }

    .accordion-item:first-of-type>.accordion-header .accordion-button {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .accordion-button:not(.collapsed) {
        color: #999EA6;
        background-color: #999EA61c;
    }

    .accordion-button:focus {
        box-shadow: none !important;
    }

    .accordion-item:last-of-type>.accordion-header .accordion-button.collapsed {
        border-bottom-right-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .accordion-item:first-of-type>.accordion-header .accordion-button {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999EA6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); 
    }

    .modal-content {
        border-radius: 0px;
    }

    .modal-body {
        .container-fluid {
            padding: 0;
        }
    }

    .tech-icon {
        width: 30px;
        height: 30px;
        object-fit: contain;
        display: block;
    }

    .tech-icon:not(:first-child) {
        margin-left: 5px;
    }

    /* Contenedor del recurso */
    .resource-chip {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
    transition: background-color 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.1s ease;
    }

    .resource-chip:hover {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgb(213 213 213 / 90%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
    text-decoration: none;
    }

    /* Icono de archivo (circulito gris claro) */
    .resource-file-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    }

    [data-bs-theme="dark"] .resource-file-icon {
    background: #1f2933;
    }

    .resource-file-title {
    font-size: 0.8rem;
    font-weight: 600;
    }

    .resource-file-meta {
    font-size: 0.7rem;
    }

    /* Botón de descarga a la derecha */
    .resource-download-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f3f4f6;
    }

    .resource-download-btn svg {
    display: block;
    }

    [data-bs-theme="dark"] .resource-download-btn {
    background: #111827;
    }

    img.resource-file-icon-img {
        height: 28px;
    }

    #video-resources-list a {
        color: rgb(169 169 169);
    }

    #video-resources-section h6 {
        background: #535353;
        color: #e7e7e7 !important;
        /* display: block; */
        border-radius: 100px;
        width: fit-content;
        padding: 4px 10px;
    }

    #video-prompts-section h6 {
        background: #535353;
        color: #e7e7e7 !important;
        /* display: block; */
        border-radius: 100px;
        width: fit-content;
        padding: 4px 10px;
    }

    #video-prompts-section.hidden {
        display: none !important;
    }
}

/* .footer-logo-wrapper img.footer-logo {
  max-width: 100%;
  max-height: 100%;
  display: block;
} */

/* Estado por defecto: modo claro */
.footer-logo-dark {
  display: none;
}

[data-bs-theme="dark"] .footer-logo-light {
  display: none;
}

[data-bs-theme="dark"] .footer-logo-dark {
  display: inline-block;
}

[data-bs-theme="light"] .footer-logo-dark {
  display: none;
}

/* Opcional: tamaño base del logo */
.footer-logo {
  height: 24px;       /* ajusta el tamaño que quieras */
  width: auto;
  display: inline-block;
}
