/* --- Mobile Bottom Bar --- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.bottom-bar__pages {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    height: 52px;
}

.bottom-bar__pages::-webkit-scrollbar {
    display: none;
}

.bottom-bar__page {
    min-width: 100vw;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 var(--space-md);
    gap: var(--space-xs);
}

.bottom-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    font-size: 10px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    flex: 1;
}

.bottom-bar__btn i {
    font-size: 20px;
}

.bottom-bar__btn.active {
    color: var(--text-primary);
}

.bottom-bar__btn:active {
    background: var(--bg-2);
}

.bottom-bar__btn--info {
    cursor: default;
}

.bottom-bar__filters {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    justify-content: space-evenly;
}

.filter-btn--small {
    padding: var(--space-xs) var(--space-sm);
    font-size: 12px;
}

/* Bottom bar dots */
.bottom-bar__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-bottom: calc(var(--space-xs) + var(--safe-bottom));
    padding-top: 2px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: background var(--transition-fast);
}

.dot.active {
    background: var(--text-primary);
}

/* --- Mobile Column Indicator --- */
.kolom-indicator {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--text-secondary);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    pointer-events: none;
}

[data-theme="light"] .kolom-indicator {
    background: rgba(255, 255, 255, 0.8);
}

.kolom-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kolom-indicator__name {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Mobile Search Bar --- */
.mobile-search {
    position: fixed;
    bottom: var(--bottom-bar-height);
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 110;
    animation: slideUp var(--transition-normal) ease-out;
}

.mobile-search__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.mobile-search__close:hover {
    background: var(--bg-2);
}

.mobile-search__input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
}

.mobile-search__input:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- Mobile specific toast position --- */
@media (max-width: 1023px) {
    .toast-container {
        top: var(--space-md);
        left: var(--space-md);
        right: var(--space-md);
    }

    .toast {
        max-width: none;
    }

    /* Bottom sheet full screen on mobile */
    .bottom-sheet {
        max-height: 85vh;
    }

    /* Analysis tabs scrollable */
    .analysis-tabs {
        padding: var(--space-sm) var(--space-md);
    }

    .analysis-tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 12px;
    }

    /* Settings full width */
    .settings-container {
        padding: var(--space-md);
    }
}

/* Hide desktop elements on mobile */
@media (max-width: 1023px) {
    .status-bar {
        display: none !important;
    }

    .top-nav {
        display: none !important;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 1024px) {
    .bottom-bar {
        display: none !important;
    }

    .kolom-indicator {
        display: none !important;
    }

    .mobile-search {
        display: none !important;
    }
}
