/* ==============================================================
   Custom Premium Styles for Internal Pegasus Management
   ============================================================== */

/* -----------------------------------------
   Premium Nav Tabs (Segmented Control)
   ----------------------------------------- */
.custom-premium-tabs {
    background-color: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    display: inline-flex;
    gap: 4px;
    border: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.custom-premium-tabs .nav-item {
    margin: 0;
}
.custom-premium-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    border: none !important;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 14px;
}
.custom-premium-tabs .nav-link:hover:not(.active) {
    color: #1e293b;
    background: rgba(255,255,255,0.6);
}
.custom-premium-tabs .nav-link.active {
    color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* -----------------------------------------
   DataTables Premium Skeleton Logic
   ----------------------------------------- */
/* Hide the real table when pending */
.dt-pending table,
.dt-pending .dataTables_wrapper {
    display: none !important;
}

/* Hide the skeleton when ready */
.dt-ready > .dt-skeleton,
:not(.dt-pending) > .dt-skeleton {
    display: none !important;
}

/* Skeleton Layout */
.dt-skeleton {
    min-width: 1000px;
    width: 100%;
    overflow: hidden;
}

.dt-skeleton-head,
.dt-skeleton-row {
    display: grid;
    align-items: center;
}

.dt-skeleton-head {
    padding: 16px 25px;
    background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
    border-bottom: 2px solid #bfdbfe;
}

.dt-skeleton-body {
    padding: 0 25px 8px;
}

.dt-skeleton-row {
    min-height: 65px;
    border-bottom: 1px solid #f1f5f9;
}

.dt-skeleton-head span,
.dt-skeleton-row span:not(.skel-text):not(.skel-badge) {
    background-color: #cbd5e1;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Generic Skeleton Elements */
.skel-text, .skel-badge {
    background-color: #e2e8f0;
    border-radius: 4px;
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
}
.skel-text {
    height: 14px;
}
.skel-badge {
    height: 24px;
    border-radius: 20px;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* -----------------------------------------
   DataTables Loading Overlay
   ----------------------------------------- */
.dataTables_wrapper .dataTables_processing {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
    z-index: 20;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_processing > div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
