/* Modern pill tabs */
.nav {
    position: relative;
}

.nav .tab-pill {
    background: transparent;
    border: none;
    color: #898a8f;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1;
}

.nav .tab-pill:hover {
    background: rgba(247, 148, 29, 0.1);
    color: #f7941d;
    cursor: pointer;
}

.nav .tab-pill.active {
    background: rgb(255, 255, 255) !important;
    color: #f7941d !important;
}

/* Sliding background indicator */
.nav::before {
    content: '';
    position: absolute;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
    left: var(--indicator-left, 0);
    top: var(--indicator-top, 0);
    width: var(--indicator-width, 0);
    height: var(--indicator-height, 0);
}

.nav .tab-pill .tab-text {
    color: inherit;
    font-size: 1.1rem;
}

/* Dark mode styles */
[data-bs-theme="dark"] .nav .tab-pill {
    color: #92929f;
}

[data-bs-theme="dark"] .nav .tab-pill:hover {
    background: rgba(247, 148, 29, 0.15);
    color: #f7941d;
}

[data-bs-theme="dark"] .nav .tab-pill.active {
    background: rgba(247, 148, 29, 0.2) !important;
    color: #f7941d !important;
}

[data-bs-theme="dark"] .nav::before {
    background: rgba(247, 148, 29, 0.2);
}

.nav .tab-pill i {
    color: inherit;
}

/* Nav container styling */
.nav.bg-light {
    background-color: #f9f9f9 !important;
}

[data-bs-theme="dark"] .nav.bg-light {
    background-color: #1c1c1e !important;
}

/* Loading overlay */
.unsubscribed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .nav .tab-pill .tab-text {
        display: none;
    }
    
    .nav .tab-pill i {
        margin: 0 !important;
    }
    
    .nav {
        width: 100%;
    }
    
    .nav-item {
        flex: 1;
    }
    
    .nav .tab-pill {
        width: 100%;
        text-align: center;
    }
}