/* ============================================
   TAB DESIGN ENHANCEMENTS - MODERN UX/UI
   ============================================ */

/* Tab Container */
.tab-style1 {
    margin-bottom: 2rem;
}

/* Tab Navigation - Modern Design */
.tab-style1 .nav-tabs {
    border: none !important;
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    padding-bottom: 1rem !important;
}

.tab-style1 .nav-tabs::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent) !important;
    border-radius: 2px !important;
}

/* Tab Items */
.tab-style1 .nav-tabs .nav-item {
    margin: 0 !important;
    border: none !important;
}

/* Tab Links - Modern Design */
.tab-style1 .nav-tabs .nav-link {
    border: none !important;
    border-radius: 12px !important;
    padding: 0.75rem 2rem !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%) !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 2px solid transparent !important;
    /* Override any text clipping effects from other CSS */
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #4b5563 !important;
    text-fill-color: #4b5563 !important;
}

.tab-style1 .nav-tabs .nav-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 0 !important;
}

.tab-style1 .nav-tabs .nav-link:hover {
    color: #667eea !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
}

.tab-style1 .nav-tabs .nav-link:hover::before {
    opacity: 0.05 !important;
}

/* Active Tab - Modern Design */
.tab-style1 .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    border-color: transparent !important;
    transform: translateY(-2px) scale(1.05) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure text is visible on active tab */
.tab-style1 .nav-tabs .nav-link.active,
.tab-style1 .nav-tabs .nav-link.active * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-fill-color: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
}

.tab-style1 .nav-tabs .nav-link.active::before {
    opacity: 1 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    z-index: 1 !important;
}

.tab-style1 .nav-tabs .nav-link.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid #667eea !important;
    z-index: 2 !important;
}

/* Tab Content */
.tab-content {
    margin-top: 2rem !important;
}

.tab-pane {
    animation: fadeIn 0.4s ease-in !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove Green Colors */
.tab-style1 .nav-tabs .nav-link.active,
.tab-style1 .nav-tabs .nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

.tab-style1 .nav-tabs .nav-link.active::after {
    border-top-color: #667eea !important;
}

/* Force white text on active tab - highest priority */
.tab-style1 .nav-tabs .nav-link.active,
.tab-style1 .nav-tabs .nav-link.active span,
.tab-style1 .nav-tabs .nav-link.active a,
body .tab-style1 .nav-tabs .nav-link.active,
html body .tab-style1 .nav-tabs .nav-link.active,
.tab-style1 .nav-tabs .nav-link.active * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-fill-color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    /* Override any background-clip text effects */
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

/* Ensure text is above background gradient */
.tab-style1 .nav-tabs .nav-link {
    color: #4b5563 !important;
}

.tab-style1 .nav-tabs .nav-link.active {
    color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 767px) {
    .tab-style1 .nav-tabs {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .tab-style1 .nav-tabs .nav-link {
        width: 100% !important;
        text-align: center !important;
        padding: 0.875rem 1.5rem !important;
    }

    .tab-style1 .nav-tabs .nav-link.active::after {
        display: none !important;
    }
}

/* Smooth Transitions */
.tab-style1 .nav-tabs .nav-link,
.tab-style1 .nav-tabs .nav-link::before,
.tab-style1 .nav-tabs .nav-link::after {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

