/* 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.2); /* Increased from 0.1 to 0.2 */
    color: #f7941d;
    cursor: pointer;
}

.nav .tab-pill.active {
    background: rgb(255, 255, 255) !important;
    color: #f7941d !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added subtle shadow for depth */
}

/* Sliding background indicator */
/* Remove transition from base style */
.nav::before {
    content: '';
    position: absolute;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    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);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add transition only when initialized */
.nav.nav-initialized::before {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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.25); /* Increased from 0.15 to 0.25 */
    color: #f7941d;
}

[data-bs-theme="dark"] .nav .tab-pill.active {
    background: #f7941d!important;/* Increased from 0.2 to 0.35 */
    color: #ffffff !important;

}

[data-bs-theme="dark"] .nav::before {
    background: rgb(247, 149, 29); /* Increased from 0.2 to 0.35 */
}

.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;
    }
}