﻿/* ==========================================
   TU OVERLAY COMPONENT
   ========================================== */

/* Etiqueta: <div id="tuOverlay" class="tu-overlay">
   ID: tuOverlay
   Class: tu-overlay
*/
.tu-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 65px;
    height: 0;
    z-index: 1000;
    overflow: hidden;
    transition: height 0.45s ease;
    pointer-events: none;
}

    /* Clase de estado para mostrar el overlay animado */
    .tu-overlay.show {
        height: calc(100vh - 65px);
        pointer-events: auto;
    }

/* Etiqueta: <div class="tu-window">
   Class: tu-window
*/
.tu-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 21px 21px 0 0;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    margin-top: 10px;
    overflow: hidden; /* Ya no hace scroll */
}

/* Etiqueta: <div class="tu-header">
   Class: tu-header
*/
.tu-drag-area {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
}

    .tu-drag-area:active {
        cursor: grabbing;
    }

.tu-drag-pill {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0,0,0,.25);
}
#tuDragHandle {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}
#tuHeader {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}
/* Etiqueta: <div class="tu-header">
   Class: tu-header
*/
.tu-header {
    flex-shrink: 0;
    background-color: transparent;
    margin-top: 5px;
    z-index: 10;
    height: 50px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 16px;
}
    .tu-header:active {
        cursor: grabbing;
    }
/* Etiqueta: <span id="txtHeaderTu" class="txt-header">
   ID: txtHeaderTu
   Class: txt-header
*/
.txt-header {
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}

/* Etiqueta: <button id="btnIconTu" class="tu-icon">
   ID: btnIconTu
   Class: tu-icon
*/
.tu-back {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: none;
    padding: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Etiqueta: <div class="tu-content">
   Class: tu-content
*/
.tu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 10px;
}
/* ==========================================
   SCROLLBAR - TU CONTENT
   ========================================== */

/* Etiqueta: <div class="tu-content">
   Class: tu-content
*/
.tu-content {
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
}

    .tu-content::-webkit-scrollbar {
        width: 8px;
    }

.hide-scrollbar {
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

.visible-scrollbar {
    scrollbar-width: thin;
}

    .visible-scrollbar::-webkit-scrollbar {
        width: 8px;
    }
    /* Motores WebKit (Chrome, Edge, Safari, Opera) - Barra completa */
    .tu-content::-webkit-scrollbar {
        width: 4px;
        height: 4px; /* Por si llega a aparecer scroll horizontal */
    }

    /* Motores WebKit - Carril o fondo del scroll */
    .tu-content::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Motores WebKit - Barra arrastrable */
    .tu-content::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 999px;
        transition: background .2s ease;
    }

        /* Motores WebKit - Barra arrastrable en estado Hover */
        .tu-content::-webkit-scrollbar-thumb:hover {
            background: #8f8f8f;
        }

    /* Motores WebKit - Esquina interna de scrollbar */
    .tu-content::-webkit-scrollbar-corner {
        background: transparent;
    }

    /* Motores WebKit - ELIMINA POR COMPLETO LAS FLECHAS */
    .tu-content::-webkit-scrollbar-button {

        width: none !important;
        height: none !important;
    }
/* Etiqueta: <div class="demo-card">
   Class: demo-card
*/
.demo-card {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}
/* Etiqueta: <h3>
*/
    .demo-card h3 {
        margin: 0 0 8px;
    }
/* Etiqueta: <p>
*/
    .demo-card p {
        margin: 0;
        color: #666;
    }