:root {
    --primary-blue: #007AFF;
    --pill-bg: #E8F3FF;
    --text-inactive: #8E8E93;
    --text-active: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Sahifalar (Demosi) */
.pages-wrapper {
    display: flex;
    width: 400vw;
    height: 100vh;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.page {
    width: 100vw;
    height: 100vh;
    padding-top: 80px;
    text-align: center;
}

.page h2 {
    color: #333;
    font-weight: 600;
}

/* TAB BAR ASOSI */
.tab-bar-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    height: 70px;
    background: #FFFFFF;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px;
    /* MUHIM: Ekranni qotirish, faqat JS ishlashi uchun */
    touch-action: none; 
    cursor: pointer;
    z-index: 100;
}

/* Suyuqlik Qatlami (Faqat pilllar shu yerda bo'ladi) */
.liquid-background {
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    filter: url('#ios-gooey');
    pointer-events: none; /* Sichqoncha/barmoq unga ta'sir qilmasligi kerak */
}

/* Suyuqlik Kapsulalari */
.pill {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: var(--pill-bg);
    border-radius: 40px;
    will-change: transform, width;
    transform-origin: center;
}

/* Drag qilinayotganda barmoqqa ergashadigan qism */
.drag-pill {
    opacity: 0; /* Boshida ko'rinmaydi */
}

/* NAV CONTENT (Ikonkalar) */
.nav-content {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 10;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-inactive);
    transition: color 0.3s ease;
}

.icon-wrapper {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* AKTIV DIZAYN */
.nav-item.active {
    color: var(--primary-blue);
}

.nav-item.active .icon-wrapper svg {
    fill: var(--primary-blue);
    stroke: none;
    transform: scale(1.15) translateY(-2px);
}

.nav-item.active .icon-wrapper img {
    border-color: var(--primary-blue);
    transform: scale(1.1) translateY(-2px);
}