/* css/hidden-tab.css */
/* ========== HIDDEN TAB COMPONENTS ========== */
/* Bekerja bersama anti-zoom.css yang sudah ada */

/* Tambahkan di akhir hidden-tab.css atau inline di HTML */
.brand-tabs {
    display: none !important;
}

/* ============================================
   HIDDEN TAB COMPONENTS - MODEL PITA (RIBBON)
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --ribbon-primary: #e74c3c;
    --ribbon-secondary: #c0392b;
    --ribbon-accent: #f1c40f;
    --ribbon-text: white;
    --ribbon-shadow: rgba(0,0,0,0.2);
    --ribbon-width: 100px;
    --ribbon-height: 40px;
    --ribbon-tab-width: 60px;
    --transition-smooth: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== CONTAINER UTAMA ===== */
.hidden-tab-container {
    position: absolute;
    top: 150px;
    left: -50px;
    z-index: 200;
    display: flex;
    align-items: center;
    transition: left 0.3s var(--transition-smooth);
    pointer-events: none;
}

.hidden-tab-container.preview .preview-extension { opacity: 1; transform: translateX(0); }

.hidden-tab-container.preview, .hidden-tab-container.active { left: -10px; }


/* ===== MODEL PITA (RIBBON) ===== */
.hidden-tab-icon {
    width: var(--ribbon-tab-width);
    height: var(--ribbon-height);
    background: linear-gradient(135deg, var(--ribbon-primary), var(--ribbon-secondary));
    border-radius: 0 30px 30px 0;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    position: relative;
    z-index: 2;
}


/* LIPATAN PITA DI PREVIEW */

.preview-extension::before { content: ''; }

.preview-extension::after { content: ''; }



.preview-text {
    font-weight: bold;
    font-size: 14px;
}

/* ===== TAB INDICATOR (DI DALAM PITA) ===== */
.tab-indicator {
    position: absolute;
    top: -15px;
    right: -5px;
    background: var(--ribbon-accent);
    color: var(--ribbon-secondary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid white;
}

/* ===== VARIASI 2: PITA DENGAN EKOR ===== */
.hidden-tab-container.style-2 .hidden-tab-icon {
    border-radius: 0 20px 0 20px;
}

.hidden-tab-container.style-2 .preview-extension {
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    padding-right: 35px;
}

/* ===== VARIASI 3: PITA DOUBLE LIPAT ===== */
.hidden-tab-container.style-3 .hidden-tab-icon {
    background: linear-gradient(135deg, var(--ribbon-primary), #d35400);
    transform: skewX(-10deg);
    transform-origin: left;
}

.hidden-tab-container.style-3 .hidden-tab-icon i {
    transform: skewX(10deg);
}

.hidden-tab-container.style-3 .preview-extension {
    transform: skewX(-10deg);
    transform-origin: left;
    padding-left: 25px;
    padding-right: 30px;
}

.hidden-tab-container.style-3 .preview-extension * {
    transform: skewX(10deg);
}

/* ===== SWIPE AREA ===== */
.swipe-area {
    position: absolute;
    top: 120px;
    left: 0;
    width: 80px;
    height: 120px;
    z-index: 200;
    background: transparent;
    cursor: grab;
}

/* ===== HIDDEN TAB CONTENT (MENU) ===== */
.hidden-tab-content {
    position: absolute;
    top: 120px;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 60%;
    background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    z-index: 201;
    transition: left 0.3s var(--transition-smooth);
    padding: 20px 20px 20px;
    color: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
}

.hidden-tab-content.show {
    left: 0;
}

.hidden-tab-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: blue;
}

/* ===== PREVIEW EXTENSION ===== */
.preview-extension {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    height: 60px;
    border-radius: 0 20px 20px 0;
    margin-left: -90px;
    padding-left: 25px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s var(--transition-smooth);
    z-index: 203;  /* Sama dengan container.active */
    color: white;
    white-space: nowrap;
    box-shadow: 5px 0 20px rgba(231, 76, 60, 1);
    pointer-events: none;
}

.hidden-tab-container.preview.active {
    z-index: 203;
}



/* Header Menu */


/* Menu Items */

.menu-items {
font-size: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.menu-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(10px);
}

.menu-item.active {
    background: var(--primary-soft, #fee9e7);
    color: var(--primary, #e74c3c);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 12px;
    font-weight: 600;
}


.menu-item.active i {
    color: var(--primary, #e74c3c);
}



.menu-item i {
    font-size: 24px;
    width: 30px;
    text-align: center;
}

/* Close Hint */
.close-hint {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    border-radius: 30px;
    margin: 0 20px;
}

.close-hint i {
    animation: swipeUp 1.5s infinite;
}

@keyframes swipeUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Swipe Hint */
.swipe-hint {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    z-index: 50;
    pointer-events: none;
}

.swipe-hint i {
    animation: swipeRight 1.5s infinite;
}

@keyframes swipeRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}



/* Di navigation-menu-container, atur ukuran menu */

.navigation-menu-container .hidden-tab-icon {
    width: 70px;  /* Ubah sesuai keinginan */
    height: 70px;
}

.navigation-menu-container .preview-extension {
    height: 70px;  /* Ubah sesuai keinginan */
    font-size: 14px;
}

.navigation-menu-container .hidden-tab-content {
    width: 200px;  /* Ubah lebar menu */
}

.navigation-menu-container .swipe-area {
    width: 80px;  /* Ubah area swipe */
    height: 120px;
}


.popup-section.jenis-filter-grid { background: yellow; }


