/* استایل تب‌های پایین صفحه */
.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid var(--gray-light);
    padding: 0.5rem 0;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.7;
}

.tab.active {
    opacity: 1;
}

.tab:not(.disabled):hover {
    background-color: rgba(74, 107, 255, 0.05);
}

.tab.disabled {
    cursor: not-allowed;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.tab-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark-color);
}

.tab.active .tab-text {
    color: var(--primary-color);
}

.tab.active .tab-icon {
    color: var(--primary-color);
}

.tab.disabled .tab-icon,
.tab.disabled .tab-text {
    color: var(--gray);
}

.badge {
    position: absolute;
    top: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--warning-color);
    color: var(--dark-color);
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: bold;
}

/* تطبیق با صفحه اصلی */
.container {
    padding-bottom: 80px; /* فضای کافی برای تب‌های پایین */
}

/* انیمیشن‌ها */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tab.active .tab-icon {
    animation: pulse 2s infinite;
}

/* استایل برای صفحات مختلف */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* استایل برای صفحه موبایل */
@media (max-width: 768px) {
    .bottom-tabs {
        padding: 0.25rem 0;
    }
    
    .tab {
        padding: 0.5rem 0.25rem;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .tab-text {
        font-size: 0.7rem;
    }
    
    .badge {
        font-size: 0.5rem;
        padding: 0.05rem 0.3rem;
    }
}

/* استایل برای صفحه دسکتاپ */
@media (min-width: 769px) {
    .bottom-tabs {
        max-width: 500px;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
    }
}