/* Custom Bootstrap Navigation Tabs Styles - Compact Version */

.custom-nav-tabs {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Compact Header */
.tab-header-compact {
    margin-bottom: 10px !important;
}

.tab-group-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Tab Navigation Styles - More Compact */
.custom-nav-tabs .nav-tabs {
    border-bottom: none;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.custom-nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    margin-right: 3px;
    border-radius: 4px;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.custom-nav-tabs .nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05); /* biru lembut */
}

.custom-nav-tabs .nav-link.active {
    color: #007bff;
    border: none;
    border-bottom: 3px solid #2297B4; /* biru muda-tua sesuai preferensi */
    font-weight: 600;
}

/* Fading line under tabs */
.fading-line {
    height: 2px;
    background: linear-gradient(to right, #007bff, transparent);
    width: 100%;
    position: relative;
    top: -2px;
    z-index: 1;
}

/* Tab content area - Reduced padding */
.tab-content {
    padding: 5px 0 5px 0;
    min-height: 50px;
}

.tab-content-inner {
    animation: fadeIn 0.3s ease;
}

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

/* Button Container - Centered below content */
.tab-button-container {
    padding: 15px 0 5px 0;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.tab-action-btn {
    background: linear-gradient(135deg, #007bff, #2297B4); /* biru → biru muda-tua */
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    min-width: 180px;
}

.tab-action-btn:hover {
    background: linear-gradient(135deg, #2297B4, #0056b3); /* biru muda-tua → biru lebih tua */
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.tab-action-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.tab-action-btn:hover i {
    transform: translateX(4px);
}

/* Loading spinner */
.spinner-border.text-danger {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-nav-tabs {
        padding: 12px;
    }
    
    .tab-header-compact {
        margin-bottom: 8px !important;
    }
    
    .tab-group-title {
        font-size: 1.2rem;
    }
    
    .custom-nav-tabs .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin-right: 2px;
    }
    
    .tab-action-btn {
        padding: 8px 20px;
        min-width: 160px;
        font-size: 0.9rem;
    }
    
    .tab-button-container {
        padding: 12px 0 3px 0;
        margin-top: 12px;
    }
}

/* For very small screens */
@media (max-width: 576px) {
    .custom-nav-tabs .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .flex-grow-1.ms-3 {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
    }
    
    .custom-nav-tabs .nav-tabs {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .custom-nav-tabs .nav-item {
        flex: 1;
        text-align: center;
    }
    
    .tab-action-btn {
        width: 90%;
        max-width: 250px;
    }
}