/* ==========================================================================
   SISTEM MayaHEP POLIMAS - MODERN EDITORIAL DESIGN SYSTEM
   Inspirasi: ICTeX / High-End Campus Editorial (Merah Crimson & Deep Ink)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Identiti Rasmi Politeknik & POLIMAS (Hitam, Merah, Oren) */
    --primary: #A6192E;               /* Merah Crimson Rasmi POLIMAS */
    --primary-hover: #8C1224;         /* Crimson Dalam */
    --primary-dark: #660A18;
    --primary-light: #FDF2F4;         /* Soft Crimson Tint */
    --primary-border: #F8C8D0;

    /* Polimas Accent Palette (Selaras Crimson Rasmi) */
    --poly-orange: var(--primary);           /* Diselaraskan kepada Crimson POLIMAS */
    --poly-orange-hover: var(--primary-hover);
    --poly-orange-light: var(--primary-light);
    --poly-orange-border: var(--primary-border);
    --poly-orange-glow: rgba(166, 25, 46, 0.25);

    /* Politeknik Deep Ink Charcoal Black */
    --poly-black: #0B0E14;            /* Hitam Politeknik */
    --poly-charcoal: #0F172A;
    --ink: #0F172A;                   /* Executive Slate 900 */
    --ink-light: #1E293B;             /* Elevated Slate Surface */
    --paper: #F8FAFC;                 /* Clean Executive Neutral Background (Slate-50) */
    --surface: #FFFFFF;               /* Card White */
    --line: #E2E8F0;                  /* Crisp Clean Divider Line */
    --line-dark: rgba(255, 255, 255, 0.12);

    /* Aksen TVET & Prestij */
    --accent-gold: #0F172A;
    --gold: #0F172A;
    --accent-amber: var(--primary);
    --bg-page: var(--paper);

    /* Teks */
    --text-primary: #0B0E14;
    --text-secondary: #4A4D57;
    --text-muted: #737785;
    --text-inverse: #FFFFFF;

    /* Status Semantik */
    --success: #15803D;
    --success-bg: #F0FDF4;
    --success-border: #BBF7D0;
    --success-text: #14532D;

    --warning: #B45309;
    --warning-bg: #FFFBEB;
    --warning-border: #FDE68A;
    --warning-text: #78350F;

    --danger: #B91C1C;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
    --danger-text: #7F1D1D;

    /* Tipografi */
    --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Bentuk Geometri Moden & Tegas (Hapuskan Pil Bulat) */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 8px;               /* Ditukar kepada 8px (border-radius tegas korporat) */

    /* Bayang Halus Premium */
    --shadow-subtle: 0 1px 2px rgba(11, 14, 20, 0.04);
    --shadow-card: 0 4px 16px -2px rgba(11, 14, 20, 0.05), 0 1px 3px rgba(11, 14, 20, 0.03);
    --shadow-hover: 0 12px 30px -4px rgba(166, 25, 46, 0.14), 0 4px 10px rgba(11, 14, 20, 0.04);
}

/* Selaras semua lencana & butang tanpa pil bulat */
.rounded-pill {
    border-radius: var(--radius-sm) !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--font-body);
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background-color: var(--paper);
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Tipografi Display Berkarakter */
h1, h2, h3, .h1, .h2, .h3, .display-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.15;
}

h1, .h1 { font-size: clamp(1.85rem, 3.2vw, 2.4rem); }
h2, .h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
h3, .h3 { font-size: clamp(1.18rem, 1.8vw, 1.45rem); font-weight: 700; }
h4, .h4 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); }
h5, .h5 { font-size: 0.95rem; font-weight: 700; font-family: var(--font-body); }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-primary, .text-primary-custom { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #FFFFFF !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/* Penyelarasan Butang & Hover Standard MayaHEP (Tiada Glitch Warna Hitam) */
.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: #CBD5E1 !important;
    background-color: transparent !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-outline-secondary:hover, 
.btn-outline-secondary:focus, 
.btn-outline-secondary:active {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-border) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.12);
}
.btn-outline-secondary:hover i,
.btn-outline-secondary:focus i {
    color: var(--primary) !important;
}

.btn-outline-danger {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: transparent !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-outline-danger:hover, 
.btn-outline-danger:focus, 
.btn-outline-danger:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(166, 25, 46, 0.25);
}
.btn-outline-danger:hover i,
.btn-outline-danger:focus i,
.btn-outline-danger:active i {
    color: #FFFFFF !important;
}

.btn-outline-dark {
    color: var(--text-primary) !important;
    border-color: #CBD5E1 !important;
    background-color: transparent !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-outline-dark:hover, 
.btn-outline-dark:focus, 
.btn-outline-dark:active {
    background-color: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.btn-outline-dark:hover i,
.btn-outline-dark:focus i {
    color: #FFFFFF !important;
}

.btn-outline-light {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-outline-light:hover, 
.btn-outline-light:focus, 
.btn-outline-light:active {
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #0F172A !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.btn-outline-light:hover i,
.btn-outline-light:focus i {
    color: #DC2626 !important;
}

.btn-light {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: var(--text-primary) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-light:hover, 
.btn-light:focus, 
.btn-light:active {
    background-color: #FFFFFF !important;
    border-color: var(--primary-border) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.1);
}

/* Butang Berkonsepkan Pill Pintar & Tegas */
.btn-primary-custom, .btn-poly {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(166, 25, 46, 0.2);
    cursor: pointer;
}
.btn-primary-custom:hover, .btn-poly:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(166, 25, 46, 0.3);
}

.btn-secondary-custom {
    background-color: var(--surface);
    border: 1.5px solid var(--line);
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
    cursor: pointer;
}
.btn-secondary-custom:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-border);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.btn-outline-poly {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.18s ease;
}
.btn-outline-poly:hover {
    background-color: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-orange-custom {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(166, 25, 46, 0.25);
    cursor: pointer;
}
.btn-orange-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(166, 25, 46, 0.35);
}

/* Hero Section (Executive Slate & Polimas Red with Real Campus Image) */
.hero-editorial {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 16, 26, 0.90) 50%, rgba(166, 25, 46, 0.85) 100%),
                url('../images/polimas_gate.jpg') center center / cover no-repeat;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 4.5vw, 56px) 0 clamp(36px, 4.2vw, 52px);
    border-bottom: 3.5px solid var(--primary);
}
.hero-editorial .badge-pill,
.hero-badge-pill {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hero-editorial .hero-heading {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.7vw, 2.45rem);
    font-weight: 800;
    line-height: 1.22;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
    word-break: normal;
    overflow-wrap: normal;
}
/* MayaHEP Dual Brand Styling: MAYA (Merah-Oren) + HEP (Putih Bersih / Kontras) */
.brand-maya {
    background: linear-gradient(135deg, #EF4444 0%, #F97316 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #EF4444 !important;
    font-weight: 800 !important;
    display: inline-block;
}
.brand-hep {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 800 !important;
    display: inline-block;
}
.brand-hep-dark {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
    font-weight: 800 !important;
    display: inline-block;
}

.hero-editorial .hero-heading .brand-maya {
    background: linear-gradient(135deg, #EF4444 0%, #F97316 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #EF4444 !important;
    display: inline-block;
    font-weight: 800;
}
.hero-editorial .hero-heading .brand-hep {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 800;
    display: inline-block;
}
.hero-editorial .hero-lead {
    font-size: clamp(0.95rem, 1.18vw, 1.08rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 530px;
    margin-bottom: 2rem !important;
}

/* Hero Glass Outline Buttons with High-Contrast Pristine Hover */
.btn-hero-glass,
.hero-editorial .btn-outline-light {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}
.btn-hero-glass:hover,
.btn-hero-glass:focus,
.hero-editorial .btn-outline-light:hover,
.hero-editorial .btn-outline-light:focus {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #0F172A !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.btn-hero-glass:hover i,
.btn-hero-glass:focus i,
.hero-editorial .btn-outline-light:hover i,
.hero-editorial .btn-outline-light:focus i {
    color: #DC2626 !important;
}

/* Hero General Info Card (Kemas, Berstruktur & Moden) */
.hero-general-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 1.6rem 1.65rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.hero-general-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1.05rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.18s ease;
}
.hero-general-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}
.hero-general-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.hero-general-icon,
.hero-general-icon.icon-red,
.hero-general-icon.icon-amber,
.hero-general-icon.icon-blue {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
}
.hero-general-item:hover .hero-general-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}
.hero-general-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.hero-general-desc {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

/* Info Board Sidebar in Hero */
.hero-sign-board {
    background: rgba(14, 18, 26, 0.90);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.6);
    position: relative;
}
.hero-sign-board::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}
.hero-sign-board .sign-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 0.65rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}
.hero-sign-board .sign-row:last-child {
    border-bottom: none;
}
.hero-sign-board .sign-row dt {
    font-weight: 700;
    color: #94A3B8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}
.hero-sign-board .sign-row dd {
    margin: 0;
    color: #FFFFFF;
    font-weight: 600;
}

.hero-sign-board .sign-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-sign-board .sign-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.85rem;
}
.hero-sign-board .sign-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Editorial Sign Board Component */
.sign {
    margin: 0;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: var(--ink);
    padding: 8px 0;
}
.sign::before {
    content: "";
    position: absolute;
    left: 22px;
    top: -10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--ink);
}
.sign-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}
.sign-row:first-child {
    border-top: 0;
}
.sign dt {
    font-weight: 700;
    font-size: 0.825rem;
    color: #94A3B8;
}
.sign dd {
    margin: 0;
    font-weight: 500;
    font-size: 0.85rem;
    color: #FFFFFF;
}
.sign-light {
    background: #FFFFFF;
    border: 1.5px solid var(--line);
    color: var(--text-primary);
}
.sign-light::before {
    display: none;
}
.sign-light .sign-row {
    border-top-color: var(--line);
}
.sign-light dt {
    color: var(--text-muted);
}
.sign-light dd {
    color: var(--text-primary);
}

/* Ticker Rasmi MayaHEP (Executive Slate - Tenang, Jelas & Berintegriti) */
.announcement-bar {
    background: #0F172A;
    color: #FFFFFF;
    padding: 0.65rem 0;
    font-size: 0.86rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.portal-ticker-badge {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.32rem 0.85rem;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 2px 6px rgba(166, 25, 46, 0.3);
}
.portal-ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent 0%, black 1.5%, black 98.5%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 1.5%, black 98.5%, transparent 100%);
}
.portal-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-slide 34s linear infinite;
    will-change: transform;
}
.portal-ticker-track:hover {
    animation-play-state: paused;
}
@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.portal-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #FFFFFF;
    padding: 0 1.25rem;
}
.portal-ticker-cat {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.18rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.portal-ticker-sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    font-size: 0.88rem;
    margin: 0 0.5rem;
    user-select: none;
}
.announcement-badge {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Public Navigation Bar */
.public-navbar {
    background: #0F172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3.5px solid var(--primary);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.public-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}
.public-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 3px;
}
.public-brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.public-brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}
.public-nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    transition: all 0.18s ease;
}
.public-nav-link:hover {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.public-nav-link.active {
    color: #FFFFFF !important;
    background-color: var(--primary) !important;
    font-weight: 700;
}

/* Service Cards (Gaya Papan Projek ICTeX-Inspired) */
.editorial-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.85rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.editorial-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
}
.editorial-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}
.editorial-card-badge.badge-red,
.editorial-card-badge.badge-orange,
.editorial-card-badge.badge-ink,
.editorial-card-badge.badge-gold {
    background: #0F172A;
    color: #FFFFFF;
}
.editorial-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}
.editorial-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Section Divider with Center Badge (Sleek Institutional Divider) */
.section-divider-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 2.75rem 0 2rem;
    width: 100%;
}
.section-divider-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #CBD5E1;
    z-index: 1;
}
.section-divider-badge {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 0.35rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #475569;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 4 Teras Strip Cards (Gaya Bento Eksklusif Bertema POLIMAS) */
.pillar-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 1.45rem 1.35rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1.5px solid #E2E8F0;
    border-top: 4px solid var(--primary) !important;
}
.pillar-card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    border-top-color: var(--primary) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pillar-card.pillar-red,
.pillar-card.pillar-orange,
.pillar-card.pillar-blue,
.pillar-card.pillar-black,
.pillar-card.pillar-dark {
    background: #FFFFFF;
    border-color: #E2E8F0;
    border-top: 4px solid var(--primary) !important;
}

.pillar-card .pillar-icon,
.pillar-card.pillar-red .pillar-icon,
.pillar-card.pillar-orange .pillar-icon,
.pillar-card.pillar-blue .pillar-icon,
.pillar-card.pillar-black .pillar-icon,
.pillar-card.pillar-dark .pillar-icon,
.pillar-icon {
    width: 38px;
    height: 38px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.pillar-card:hover .pillar-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.pillar-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pillar-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Page Header & Breadcrumb */
.page-header {
    margin-bottom: 1.5rem;
}
.page-header .eyebrow {
    font-family: var(--font-body);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.72rem;
}
.page-header .page-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.page-header .page-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Content Container Card */
.content-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.content-card-header {
    padding: 1rem 1.35rem;
    border-bottom: 1.5px solid var(--line);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content-card-body {
    padding: 1.35rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}
.stat-card .stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}
.stat-card .stat-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.stat-card .stat-footer-link {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    transition: color 0.15s ease;
}
.stat-card .stat-footer-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.stat-card.stat-red {
    border-top: 3.5px solid var(--primary);
}
.stat-card.stat-emerald {
    border-top: 3.5px solid #059669;
}
.stat-card.stat-orange,
.stat-card.stat-gold {
    border-top: 3.5px solid var(--poly-orange);
}
.stat-card.stat-ink {
    border-top: 3.5px solid var(--poly-black);
}

/* Status Teks Bersih & Berwarna - Tiada Kotak / Border (Natural Human-Readable Status) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 !important;
    font-size: 0.825rem;
    font-weight: 700;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: none !important;
    letter-spacing: 0.01em;
}
.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-badge.status-lulus {
    color: #16A34A !important;
}
.status-badge.status-lulus::before {
    background-color: #16A34A;
    box-shadow: none;
}
.status-badge.status-semakan {
    color: #D97706 !important;
}
.status-badge.status-semakan::before {
    background-color: #D97706;
    box-shadow: none;
}
.status-badge.status-tidaklengkap {
    color: #EA580C !important;
}
.status-badge.status-tidaklengkap::before {
    background-color: #EA580C;
    box-shadow: none;
}
.status-badge.status-ditolak {
    color: #DC2626 !important;
}
.status-badge.status-ditolak::before {
    background-color: #DC2626;
    box-shadow: none;
}
.status-badge.status-neutral {
    color: #475569 !important;
}
.status-badge.status-neutral::before {
    background-color: #64748B;
    box-shadow: none;
}
.status-badge.status-aktif {
    color: #16A34A !important;
}
.status-badge.status-aktif::before {
    background-color: #16A34A;
    box-shadow: none;
}
.status-badge.status-tidakaktif {
    color: #94A3B8 !important;
}
.status-badge.status-tidakaktif::before {
    background-color: #94A3B8;
    box-shadow: none;
}

/* Modern Clean Table */
.table-modern {
    margin-bottom: 0;
    width: 100%;
}
.table-modern thead th {
    background-color: #FAFAF8;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 0.85rem;
    border-top: none;
    border-bottom: 1.5px solid var(--line);
    white-space: nowrap;
}
.table-modern tbody td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-primary);
    font-size: 0.85rem;
    vertical-align: middle;
}
.table-modern tbody tr {
    transition: background-color 0.12s ease;
}
.table-modern tbody tr:hover {
    background-color: #FFF9FA !important;
}
.table-modern tbody td.text-center,
.table-modern tbody td:last-child {
    white-space: nowrap;
}

/* Form Controls */
.form-control-modern, .form-select-modern {
    background-color: #FFFFFF;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.95rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.15s ease;
}
.form-control-modern:focus, .form-select-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.12);
    outline: none;
}

/* Quick Filter Chips */
.filter-chip {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--line);
    background-color: #FFFFFF;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}
.filter-chip:hover {
    border-color: var(--primary-border);
    color: var(--primary);
    background-color: var(--primary-light);
}
.filter-chip.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

/* Admin Application Shell */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--paper);
}

.admin-sidebar {
    width: 260px;
    background-color: var(--ink);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar-header {
    height: 68px;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.admin-sidebar-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 6px;
    padding: 2px;
}
.admin-sidebar-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: #FFFFFF;
    letter-spacing: -0.015em;
    line-height: 1.1;
}
.admin-sidebar-subtitle {
    font-size: 0.68rem;
    color: #94A3B8;
}

.admin-sidebar-nav {
    padding: 0.85rem 0.85rem;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.admin-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
.admin-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
.admin-sidebar-heading {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #64748B;
    padding: 0.4rem 0.75rem 0.2rem;
    margin-top: 0.5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.52rem 0.85rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 0.15rem;
    position: relative;
}
.sidebar-link i {
    width: 18px;
    font-size: 0.95rem;
    text-align: center;
    color: #64748B;
    transition: color 0.15s ease;
}
.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #F8FAFC;
}
.sidebar-link:hover i {
    color: #CBD5E1;
}
.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
    font-weight: 700;
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3.5px;
    background-color: #EF4444;
    border-radius: 0 3px 3px 0;
}
.sidebar-link.active i {
    color: #EF4444;
}

.admin-sidebar-footer {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0A0F1D;
}

.admin-main-wrapper {
    margin-left: 260px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 68px;
    background-color: #FFFFFF;
    border-top: none;
    border-bottom: 1px solid var(--line);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-content {
    padding: 1.75rem;
    flex-grow: 1;
}

.btn-dark-custom {
    background-color: var(--ink);
    border: 2px solid var(--ink);
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(11, 14, 20, 0.25);
    cursor: pointer;
}
.btn-dark-custom:hover {
    background-color: #1E293B;
    border-color: #1E293B;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 14, 20, 0.35);
}

/* Floating Back to Top Button (Diletakkan di Sebelah Kanan Atas Telegram - Saiz Sama 52px) */
.back-to-top-btn {
    position: fixed;
    bottom: 144px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: #FFFFFF;
    color: var(--text-primary);
    border: 1.5px solid var(--line);
    box-shadow: 0 6px 18px rgba(11, 14, 20, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 22px rgba(166, 25, 46, 0.3);
}

/* Floating Support Duo (Executive Slate Telegram + POLIMAS Crimson Chatbot) */
.telegram-trigger-btn {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #0F172A;
    color: #38BDF8 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    text-decoration: none !important;
    cursor: pointer;
    z-index: 1045;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.telegram-trigger-btn:hover {
    transform: scale(1.08) translateY(-2px);
    background: #0284C7;
    color: #FFFFFF !important;
    border-color: #38BDF8;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}
.telegram-trigger-btn:active {
    transform: scale(0.96);
}

/* Chatbot UI Trigger (POLIMAS Crimson) */
.chatbot-trigger-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--primary);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 18px rgba(166, 25, 46, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-trigger-btn:hover {
    transform: scale(1.08) translateY(-2px);
    background-color: var(--primary-hover);
    box-shadow: 0 8px 24px rgba(166, 25, 46, 0.5);
}

/* Floating Tooltip Label */
.floating-btn-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #0F172A;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1060;
}
.floating-btn-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #0F172A;
}
.telegram-trigger-btn:hover .floating-btn-tooltip,
.chatbot-trigger-btn:hover .floating-btn-tooltip {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
@media (max-width: 768px) {
    .floating-btn-tooltip {
        display: none !important;
    }
}

/* Dedicated Footer Telegram Card (Lajur 4 Akses & Bantuan) */
.footer-tele-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.footer-tele-card:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}
.footer-tele-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #0284C7;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.footer-tele-body {
    flex-grow: 1;
    min-width: 0;
}
.footer-tele-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    line-height: 1.2;
}
.footer-tele-title .badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
.footer-tele-handle {
    font-size: 0.7rem;
    color: #38BDF8;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.footer-tele-arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.15s ease;
    flex-shrink: 0;
}
.footer-tele-card:hover .footer-tele-arrow {
    color: #38BDF8;
}

.chatbot-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 110px);
    background: #FFFFFF;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -10px rgba(11, 14, 20, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}

/* Force flex layout whether toggled via class or jQuery inline styles */
.chatbot-panel[style*="display: block"],
.chatbot-panel.is-active {
    display: flex !important;
    flex-direction: column !important;
}

.chatbot-panel.is-maximized {
    top: 20px !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 20px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 12px !important;
    z-index: 1060 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45) !important;
}

.chatbot-header {
    background-color: var(--ink);
    border-bottom: 3px solid var(--primary);
    color: #FFFFFF;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chatbot-header-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.chatbot-header-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

.chatbot-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 1.15rem;
    background-color: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 86%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg-bot {
    align-self: flex-start;
    background-color: #FFFFFF;
    border: 1px solid var(--line);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}
.chat-msg-user {
    align-self: flex-end;
    background-color: var(--primary);
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
}

.chatbot-suggestions {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    background-color: #F8FAFC;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.chatbot-suggestions::-webkit-scrollbar {
    display: none;
}
.chatbot-suggestions .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    white-space: nowrap;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    color: var(--text-secondary);
    transition: all 0.18s ease;
}
.chatbot-suggestions .btn:hover {
    background: #FFF1F2;
    border-color: var(--primary);
    color: var(--primary);
}

.chatbot-footer {
    flex-shrink: 0;
    padding: 0.65rem 0.85rem;
    border-top: 1.5px solid var(--line);
    background-color: #FFFFFF;
}

.chat-textarea {
    resize: none;
    min-height: 38px;
    height: 38px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    box-sizing: border-box;
}
.chat-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.12);
}

.chat-file-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: #64748B;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.chat-file-btn:hover {
    background: #F1F5F9;
    color: var(--primary);
    border-color: #94A3B8;
}

.chat-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.65rem;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .chatbot-panel {
        bottom: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        height: 75vh;
        max-height: 520px;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 270px !important;
        max-width: 85vw !important;
        transform: translateX(-100%) !important;
        z-index: 1065 !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.45) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .admin-sidebar.show {
        transform: translateX(0) !important;
    }
    .admin-main-wrapper {
        margin-left: 0 !important;
    }
    .admin-content {
        padding: 1rem 0.85rem !important;
    }
    .sidebar-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.78) !important; /* Gelap Menyeluruh Semasa Sidebar Buka */
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 1060 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease, visibility 0.25s ease !important;
    }
    .sidebar-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
}

/* Butang Portal Awam Topbar Admin (Tema Korporat POLIMAS) */
.btn-topbar-portal {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
    border: 1px solid #E2E8F0 !important;
    height: 36px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.btn-topbar-portal:hover {
    background-color: #FEF2F2 !important;
    border-color: #FCA5A5 !important;
    color: #DC2626 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12) !important;
    transform: translateY(-1px);
}
.btn-topbar-portal i {
    color: #DC2626 !important;
    transition: transform 0.2s ease;
}
.btn-topbar-portal:hover i {
    transform: translate(1px, -1px);
}

/* Micro Action Buttons in Admin DataTables */
.btn-action-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    transition: all 0.15s ease;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: none !important;
}
.btn-action-icon:hover {
    background: #F8FAFC;
    color: var(--primary);
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btn-action-icon.danger {
    color: #DC2626;
}
.btn-action-icon.danger:hover {
    background: #FEF2F2;
    color: #B91C1C;
    border-color: #FECACA;
}
.btn-action-icon.success {
    color: #16A34A;
}
.btn-action-icon.success:hover {
    background: #DCFCE7;
    color: #15803D;
    border-color: #86EFAC;
}

/* WhatsApp Interaction Badge / Link with Shaded Green Hover */
.badge-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #FFFFFF;
    color: #16A34A !important;
    border: 1px solid #BBF7D0 !important;
    border-radius: 6px;
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.18s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    line-height: 1.2;
}
.badge-whatsapp i {
    color: #16A34A !important;
    font-size: 0.82rem;
    margin-right: 0.35rem !important;
    transition: transform 0.18s ease-in-out;
}
.badge-whatsapp:hover {
    background-color: #DCFCE7 !important; /* Shaded Green on Hover */
    color: #15803D !important;
    border-color: #86EFAC !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.18);
}
.badge-whatsapp:hover i {
    transform: scale(1.15);
    color: #15803D !important;
}
.badge-whatsapp:active {
    transform: translateY(0);
    background-color: #BBF7D0 !important;
}


/* ==============================================================
   8 MODUL RASMI PANDUAN HEP POLIMAS
   ============================================================== */
/* ==============================================================
   HUB KHIDMAT & KEBAJIKAN JHEP POLIMAS (MASTER-DETAIL SERVICE DESK)
   Bespoke, High-Density, Space-Optimized Layout (No Ugly Scrollbars)
   ============================================================== */
.hub-service-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: sticky;
    top: 80px;
    z-index: 20;
}

.hub-sidebar-support {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-top: 0.65rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hub-sidebar-support .btn {
    border-radius: 6px;
}

.hub-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    width: 100%;
    position: relative;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.hub-nav-item:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px) translateX(2px);
}

.hub-nav-item.active {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 8px 24px -2px rgba(15, 23, 42, 0.1), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.hub-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
}

.hub-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}

.hub-nav-item:hover .hub-nav-icon {
    background: #FEF2F2;
    color: var(--primary);
    border-color: #FECACA;
}

.hub-nav-item.active .hub-nav-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #8C1224 100%) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(166, 25, 46, 0.28) !important;
}

.hub-nav-text {
    flex-grow: 1;
    min-width: 0;
}

.hub-nav-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #0F172A;
    line-height: 1.25;
}

.hub-nav-desc {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-nav-arrow {
    color: #94A3B8;
    font-size: 0.75rem;
    transition: transform 0.18s ease, color 0.18s ease;
}

.hub-nav-item.active .hub-nav-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Hub Sponsor & Agency Cards */
.hub-agency-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.hub-agency-card:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.09);
    border-color: #CBD5E1;
}
.hub-agency-card .agency-name {
    font-weight: 700;
    color: #0F172A;
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.hub-agency-card .agency-desc {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.4;
    margin: 0;
}

/* Modern Step Item */
.hub-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.hub-step-item:not(:last-child) {
    border-bottom: 1px dashed #E2E8F0;
}
.hub-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FEF2F2;
    color: var(--primary);
    border: 1px solid #FECACA;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Sleek Sponsor Tags */
.hub-sponsor-tag {
    display: inline-flex;
    align-items: center;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #334155;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.hub-sponsor-tag:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: var(--primary);
}

/* Detail Card Canvas */
.hub-detail-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    padding: 1.5rem 1.65rem;
    min-height: 100%;
}

.hub-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #F1F5F9;
    color: #1E293B;
    border: 1px solid #CBD5E1;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hub-tag i {
    color: var(--primary);
}

/* Contact and Service Squircle Icon Chips */
.contact-icon-chip {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Elevated Desk Contact Cards */
.contact-desk-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    padding: 1.65rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.contact-desk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    border-color: #CBD5E1;
}

/* ==========================================================================
   BUTTON & ICON ALIGNMENT & PRECISE SPACING
   Eliminates awkward gaps ("jarak2") and fixes drifting icons ("icon lari")
   ========================================================================== */

/* Utility for gap-1.5 */
.gap-1\.5 {
    gap: 0.375rem !important;
}

/* Universal alignment for FontAwesome icons in buttons, badges and interactive elements */
i[class*="fa-"],
.btn i,
.badge i,
.status-badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: -0.08em;
    flex-shrink: 0;
}

/* Flex buttons: Ensure tight, balanced icon-to-text spacing (~6px to 7px) */
.btn.d-inline-flex,
.btn.d-flex {
    gap: 0.4rem;
}
.gap-0\.5 { gap: 0.125rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.65rem !important; }
.gap-3\.5 { gap: 0.85rem !important; }

/* Global safety margin for icons to guarantee they NEVER touch text */
.alert i:first-child,
.alert > i {
    margin-right: 0.65rem !important;
}
.btn > i:first-child:not(:only-child) {
    margin-right: 0.45rem !important;
}
.badge > i:first-child:not(:only-child) {
    margin-right: 0.35rem !important;
}

.btn.gap-1 { gap: 0.25rem !important; }
.btn.gap-1\.5 { gap: 0.35rem !important; }
.btn.gap-2 { gap: 0.42rem !important; }

/* Crucial: In any flex or gap-driven button, zero out margins so gap is the ONLY source of spacing */
.btn.d-inline-flex i,
.btn.d-flex i,
.btn[class*="gap-"] i {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Standard buttons (non-flex) that don't have explicit margin utilities */
.btn:not(.d-inline-flex):not(.d-flex):not([class*="gap-"]) i:first-child:not(:only-child):not([class*="me-"]) {
    margin-right: 0.38rem;
}
.btn:not(.d-inline-flex):not(.d-flex):not([class*="gap-"]) i:last-child:not(:only-child):not([class*="ms-"]) {
    margin-left: 0.38rem;
}

/* Balanced margin utilities so icons never drift away */
i.me-1 { margin-right: 0.25rem !important; }
i.me-1\.5 { margin-right: 0.35rem !important; }
i.me-2 { margin-right: 0.45rem !important; }
i.ms-1 { margin-left: 0.25rem !important; }
i.ms-1\.5 { margin-left: 0.35rem !important; }
i.ms-2 { margin-left: 0.45rem !important; }

/* Badges & Callouts */
.badge i:first-child:not(:only-child) {
    margin-right: 0.3rem;
}
.badge i:last-child:not(:only-child) {
    margin-left: 0.3rem;
}
.hub-feature-box h6 i {
    margin-right: 0.45rem !important;
}
.hub-highlight-callout i {
    margin-right: 0.45rem !important;
}
.announcement-badge i {
    margin-right: 0.38rem !important;
}
.section-divider-badge i {
    margin-right: 0.38rem !important;
}
.filter-chip i {
    margin-right: 0.25rem;
}

.hub-kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    margin-bottom: 1.35rem;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
    .hub-kpi-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0;
    }
}

.hub-kpi-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.25rem 0.65rem;
    text-align: center;
}

.hub-kpi-item:not(:last-child) {
    border-right: 1px solid #CBD5E1;
}

@media (max-width: 768px) {
    .hub-kpi-item:nth-child(2) {
        border-right: none;
    }
}

.hub-kpi-item .val {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.val-crimson,
.val-highlight { 
    color: var(--primary) !important; 
}

.val-orange,
.val-blue,
.val-green,
.val-purple,
.val-amber,
.val-navy,
.val-rose,
.val-teal {
    color: #0F172A !important;
}

.hub-kpi-item .lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.03em;
    margin-top: 3px;
}

.hub-feature-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.35rem;
    height: 100%;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.hub-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
}
.hub-checklist-item:not(:last-child) {
    border-bottom: 1px dashed #E2E8F0;
}
.hub-checklist-item .hub-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.hub-checklist-item .hub-check-text {
    font-size: 0.835rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.45;
}

.hub-spec-item {
    padding: 0.65rem 0;
}
.hub-spec-item:not(:last-child) {
    border-bottom: 1px dashed #E2E8F0;
}

.hub-highlight-callout {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 1px 3px rgba(166, 25, 46, 0.04);
}

.hub-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #F8FAFC;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid #E2E8F0;
    transition: all 0.15s ease;
}
.hub-contact-chip:hover {
    background: #F1F5F9;
    color: var(--primary);
    border-color: #CBD5E1;
}

@media (max-width: 991px) {
    .hub-service-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    .hub-nav-desc {
        display: none;
    }
    .hub-nav-arrow {
        display: none;
    }
}
@media (max-width: 576px) {
    .hub-service-nav {
        grid-template-columns: 1fr;
    }
}

/* ==============================================================
   DUAL PANE LOGIN CARD (MODERN INSTITUTIONAL)
   ============================================================== */
.login-body-bg {
    background-color: #0B0E14;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(166, 25, 46, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(30, 41, 59, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, #090C10 0%, #0F141C 50%, #161D2A 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
}

.login-card-dual {
    width: 100%;
    max-width: 900px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .login-card-dual {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

.login-pane-brand {
    background: linear-gradient(160deg, rgba(11, 14, 20, 0.94) 0%, rgba(22, 29, 42, 0.90) 50%, rgba(140, 18, 36, 0.92) 100%),
                url('../images/polimas_gate.jpg') center center / cover no-repeat;
    color: #FFFFFF;
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-pane-brand::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 25, 46, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.login-pane-brand .brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.login-pane-brand .brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #FFFFFF;
    line-height: 1.1;
}
.login-pane-brand .brand-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}
.login-pane-brand .brand-heading {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}
.login-pane-brand .brand-desc {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.login-pane-brand .brand-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.login-pane-brand .feature-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.login-pane-brand .feature-item i {
    color: #F87171;
    font-size: 0.85rem;
}
.login-pane-brand .badge-session {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E2E8F0;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}
.login-pane-brand .brand-bottom {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-pane-form {
    padding: 2.25rem 2.25rem;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==============================================================
   PRINT-FRIENDLY ENTERPRISE SLIP STYLESHEET
   ============================================================== */
@media print {
    .public-navbar,
    .admin-sidebar,
    .admin-topbar,
    .chatbot-trigger-btn,
    .chatbot-panel,
    footer,
    .d-print-none,
    .btn,
    form {
        display: none !important;
    }
    body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }
    .content-card {
        box-shadow: none !important;
        border: 1px solid #CBD5E1 !important;
        break-inside: avoid;
        margin-bottom: 1.25rem !important;
    }
    .table-modern thead th {
        background-color: #F1F5F9 !important;
        color: #000000 !important;
    }
}

/* ==============================================================
   MOBILE ERGONOMICS & TOUCH ENHANCEMENTS (< 768px)
   ============================================================== */
@media (max-width: 768px) {
    /* Cegah iOS Safari Auto-Zoom yang mengejutkan pengguna */
    .form-control,
    .form-select,
    .form-control-modern,
    .form-select-modern,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Ketinggian butang mesra sentuhan jari (Apple HIG / Android Material) */
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-poly {
        min-height: 44px;
    }

    /* Ruang sentuhan selamat antara butang tindakan jadual */
    .table-modern tbody td .d-inline-flex {
        gap: 8px !important;
    }
    
    /* Butang trigger chatbot, Telegram & Back-to-Top terapung di sebelah kanan (Sifar halangan di kiri - Saiz Sama 48px) */
    .chatbot-trigger-btn {
        bottom: max(18px, env(safe-area-inset-bottom, 18px));
        right: max(16px, env(safe-area-inset-right, 16px));
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .telegram-trigger-btn {
        bottom: calc(max(18px, env(safe-area-inset-bottom, 18px)) + 56px);
        right: max(16px, env(safe-area-inset-right, 16px));
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.35rem;
    }
    .back-to-top-btn {
        left: auto !important;
        right: max(16px, env(safe-area-inset-right, 16px)) !important;
        bottom: calc(max(18px, env(safe-area-inset-bottom, 18px)) + 112px);
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.15rem;
    }



    /* Hero General Card Mobile Spacing */
    .hero-general-card {
        padding: 1.15rem 1.1rem;
        margin-top: 0.5rem;
    }

    /* Dual Pane Login Card Mobile Experience */
    .login-card-dual {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .login-pane-brand {
        padding: 1.5rem 1.25rem !important;
    }
    .login-pane-brand .brand-center p,
    .login-pane-brand .brand-center .d-flex.flex-column.gap-2,
    .login-pane-brand .brand-bottom {
        display: none !important;
    }
    .login-pane-brand .brand-center {
        margin: 0.5rem 0 0 !important;
    }
    .login-pane-brand .brand-heading {
        font-size: 1.2rem !important;
        margin-bottom: 0 !important;
    }
    .login-pane-form {
        padding: 1.75rem 1.5rem !important;
    }

    /* Hub Detail Card Mobile Padding */
    .hub-detail-card {
        padding: 1.25rem 1rem !important;
    }

    /* DataTables Mobile Controls (No horizontal overflow) */
    .dt-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 0.75rem !important;
    }
    .dt-buttons .btn {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.65rem !important;
    }
    .dataTables_filter {
        text-align: left !important;
        margin-top: 0.5rem !important;
    }
    .dataTables_filter label {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .dataTables_info,
    .dataTables_length {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    .dataTables_paginate {
        text-align: center !important;
        margin-top: 0.75rem !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
    }
}

/* ==============================================================
   PUBLIC FOOTER (GOVERNMENT INSTITUTIONAL EXECUTIVE FOOTER)
   Official Modern 3-Column Layout with Agency Ecosystem & Contacts
   ============================================================== */
.public-footer {
    background: linear-gradient(180deg, #0D1527 0%, #070B14 100%) !important;
    border-top: 3px solid var(--primary) !important;
    color: #F8FAFC !important;
    position: relative;
    width: 100%;
}

.footer-top-brand {
    background-color: rgba(255, 255, 255, 0.025);
}

.footer-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-col-title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.footer-nav-list {
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    margin-bottom: 0.65rem;
}

.footer-nav-list a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.835rem;
    padding: 2px 0;
}

.footer-nav-list a i {
    font-size: 0.68rem;
    color: #64748B;
    transition: all 0.2s ease;
}

.footer-nav-list a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-nav-list a:hover i {
    color: var(--primary) !important;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.825rem;
    color: #94A3B8;
}

.footer-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.15);
    color: #EF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 1px;
}

.footer-contact-item a {
    color: #E2E8F0;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-contact-item a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-counter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

.footer-bottom-bar {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

@media (max-width: 576px) {
    .footer-bottom-bar {
        padding-bottom: 2.5rem !important;
    }
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10B981;
}

/* Admin User Profile Chip */
.admin-user-chip {
    transition: all 0.2s ease;
    cursor: pointer;
}
.admin-user-chip:hover {
    background-color: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Admin Footer Enterprise */
.admin-footer {
    background-color: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    font-size: 0.8rem;
}

.admin-footer a {
    transition: color 0.15s ease;
}

.admin-footer a:hover {
    color: #DC2626 !important;
}

