/* General Styling & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Professional Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-bottom: 2px solid #0055ff;
    background:  #2f304a;
    animation: blueBorderPulse 2s infinite alternate;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: nowrap; 
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #F5F7FA; 
    opacity: 0.8;
    font-size: 11px; 
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
}

.nav-links li a:hover,
.nav-links li a.active {
   color: #ffffff;
    opacity: 1;
    border: 1px solid rgba(0, 136, 255, 0.5);
    background: rgba(0, 136, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3) inset;
    text-shadow: 0 0 8px #0088ff;
}


/* Main Section Layout */
.pub-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header Wrapper with Glowing Circular Badges */
.pub-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

@media (max-width: 900px) {
    .pub-header-wrapper {
        flex-direction: column;
    }
}

.pub-header {
    flex-grow: 1;
    text-align: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.08);
}

.section-title {
    font-size: 1.5rem;
    color: #16324F;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.section-title .icon {
    margin: 0 5px;
}

/* Glowing Circular Badges (Left & Right) */
.glow-circle {
    width: 110px;
    height: 110px;
    background: #0f172a;
    border: 3px solid #0088ff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
    animation: pulseGlow 2s infinite alternate;
    flex-shrink: 0;
}

.count-num {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}

.count-label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 136, 255, 0.3); }
    100% { box-shadow: 0 0 22px rgba(0, 136, 255, 0.7); }
}

/* Main Category Switcher (Tabs) */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: #ffffff;
    color: #16324F;
    border: 2px solid #cbd5e1;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #0088ff;
    color: #0088ff;
}

.tab-btn.active {
    background: #0088ff;
    color: #ffffff;
    border-color: #0088ff;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

/* Search and Horizontal Pagination Bar */
.filter-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.05);
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box input {
    width: 280px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #0088ff;
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.2);
}

/* Pagination Navigation Container */
.pagination-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover,
.page-btn.active-page {
    background: #0088ff;
    color: #ffffff;
    border-color: #0088ff;
}

/* Sections Display Control */
.content-section {
    display: none;
}

.content-section.active-section {
    display: block;
}

/* Supervisor Table Cards */
.sup-table-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(0, 136, 255, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(22, 50, 79, 0.08);
    transition: all 0.3s ease;
}

.sup-table-card:hover {
    border-color: #0088ff;
    box-shadow: 0 6px 20px rgba(0, 136, 255, 0.2);
}

.sup-row {
    display: grid;
    grid-template-columns: 60px 1fr 150px 160px;
    gap: 15px;
    align-items: center;
}

@media (max-width: 900px) {
    .sup-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.sup-col h4 {
    font-size: 1.05rem;
    color: #16324F;
    font-weight: 800;
    margin-bottom: 6px;
}

.sup-col p {
    font-size: 0.9rem;
    color: #475569;
}

.badge-role {
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
}

.badge-duration {
    background: #f1f5f9;
    color: #1e293b;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

/* Line Glow Animation */
.line-glow {
    position: relative;
    overflow: hidden;
}

.line-glow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0088ff, transparent);
    animation: lineMove 3s linear infinite;
}

@keyframes lineMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Section Divider */
.section-divider {
     width: 100%;
    background: linear-gradient(90deg, transparent, #D6A84F, transparent); 
    box-shadow: 0 2px 10px rgba(214, 168, 79, 0.5); 
    margin-top: 0 px;
}
@media (max-width: 900px) {
    .pub-section .pub-header-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .pub-section .glow-circle {
        width: clamp(66px, 12vw, 90px) !important;
        height: clamp(66px, 12vw, 90px) !important;
        flex: 0 0 auto !important;
        padding: 5px !important;
        border-width: 2px !important;
    }

    .pub-section .pub-header {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        padding: 8px 3px !important;
    }

    .pub-section .section-title {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1px !important;
        font-size: clamp(0.55rem, 2.6vw, 0.95rem) !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
    }

    .pub-section .section-title .icon {
        font-size: clamp(0.7rem, 3.2vw, 1rem) !important;
        margin: 0 1px !important;
    }

    .pub-section .count-num {
        font-size: clamp(0.55rem, 2.5vw, 0.8rem) !important;
    }

    .pub-section .count-label {
        font-size: clamp(0.33rem, 1.7vw, 0.48rem) !important;
        line-height: 1.05 !important;
        text-align: center !important;
    }
}

@media (max-width: 520px) {
    .pub-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pub-section .pub-header-wrapper {
        gap: 5px !important;
    }

    .pub-section .glow-circle {
        width: clamp(48px, 17vw, 66px) !important;
        height: clamp(48px, 17vw, 66px) !important;
        padding: 3px !important;
    }
}
@media (max-width: 520px) {
    .pub-section .tab-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .pub-section .tab-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        padding: 8px 5px !important;
        font-size: clamp(0.65rem, 3vw, 0.85rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: normal !important;
    }
}
