/* =========================================================================
   SMARTEVAL v3 — stylesheet bersepadu
   Reka bentuk (navbar/hero/login/dashboard) diadaptasi daripada design
   pelajar; fungsi & data backend kekal dari SmartEval v2.
   ========================================================================= */

/* =========================================================
   ROOT - NAVY + TEAL + GOLD
========================================================= */

:root {

    --navy-dark: #07152a;
    --navy: #0b1f3a;
    --navy-light: #15385f;

    --teal-dark: #087779;
    --teal: #159a9c;
    --teal-light: #54c8c8;

    --gold: #d5a73a;
    --gold-light: #f0cf72;

    --white: #ffffff;
    --soft: #f5f8fa;
    --soft-blue: #edf4f7;

    --dark: #172235;
    --text: #26364a;
    --muted: #7b8796;

    --border: #e5e9ee;

    --danger: #d9534f;
    --danger-bg: #fdecea;
    --success: #1f8a4c;
    --success-bg: #e8f7ee;
    --warn: #b7791f;
    --warn-bg: #fff6e0;

    --radius: 12px;

    --shadow-sm: 0 8px 25px rgba(7, 21, 42, 0.07);
    --shadow-md: 0 18px 50px rgba(7, 21, 42, 0.12);
    --shadow-lg: 0 30px 80px rgba(7, 21, 42, 0.20);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--soft);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}



/* =========================================================================
   HALAMAN AWAM UTAMA (index.php) — navbar, hero, trust-bar, features,
   about, cta, footer, background orbs, scroll-reveal.
   ========================================================================= */


        /* =========================================================
           BACKGROUND ORBS
        ========================================================= */

        .background-orb {

            position: absolute;

            border-radius: 50%;

            pointer-events: none;

            filter: blur(2px);

            opacity: 0.35;
        }


        .orb-one {

            width: 450px;
            height: 450px;

            background:
                radial-gradient(
                    circle,
                    rgba(84, 200, 200, 0.20),
                    transparent 68%
                );

            top: 60px;
            right: -150px;
        }


        .orb-two {

            width: 350px;
            height: 350px;

            background:
                radial-gradient(
                    circle,
                    rgba(213, 167, 58, 0.16),
                    transparent 68%
                );

            bottom: -130px;
            left: -120px;
        }


        /* =========================================================
           NAVBAR
        ========================================================= */

        .navbar {

            position: fixed;

            top: 0;
            left: 0;

            width: 100%;

            height: 82px;

            display: flex;

            align-items: center;

            justify-content: space-between;

            padding:
                0
                clamp(22px, 6vw, 90px);

            background:
                rgba(255, 255, 255, 0.94);

            backdrop-filter: blur(18px);

            -webkit-backdrop-filter: blur(18px);

            border-bottom:
                1px solid
                rgba(11, 31, 58, 0.08);

            z-index: 1000;

            transition:
                0.3s ease;
        }


        /* =========================================================
           BRAND
        ========================================================= */

        .brand {

            display: flex;

            align-items: center;

            gap: 13px;
        }


        .brand-logo {

            width: 52px;
            height: 52px;

            display: flex;

            align-items: center;
            justify-content: center;

            border-radius: 14px;

            background:
                linear-gradient(
                    145deg,
                    var(--navy),
                    var(--teal-dark)
                );

            padding: 6px;

            box-shadow:
                0 8px 20px
                rgba(11, 31, 58, 0.22);
        }


        .brand-logo img {

            width: 100%;
            height: 100%;

            object-fit: contain;

            border-radius: 9px;

            background: white;
        }


        .brand-name {

            display: flex;

            flex-direction: column;

            line-height: 1.1;
        }


        .brand-name strong {

            font-size: 20px;

            font-weight: 800;

            letter-spacing: -0.5px;

            color: var(--navy);
        }


        .brand-name span {

            margin-top: 3px;

            font-size: 10px;

            font-weight: 700;

            letter-spacing: 1.4px;

            color: #7b8796;

            text-transform: uppercase;
        }


        /* =========================================================
           NAVIGATION
        ========================================================= */

        .nav-links {

            display: flex;

            align-items: center;

            gap: 38px;
        }


        .nav-links a {

            position: relative;

            font-size: 14px;

            font-weight: 700;

            color: #3d4a5d;

            transition:
                0.25s ease;
        }


        .nav-links a::after {

            content: "";

            position: absolute;

            left: 0;
            bottom: -7px;

            width: 0;
            height: 2px;

            border-radius: 10px;

            background:
                linear-gradient(
                    90deg,
                    var(--teal),
                    var(--gold)
                );

            transition:
                0.25s ease;
        }


        .nav-links a:hover {

            color: var(--teal-dark);
        }


        .nav-links a:hover::after {

            width: 100%;
        }


        /* =========================================================
           SIGN IN BUTTON
        ========================================================= */

        .nav-button {

            display: inline-flex;

            align-items: center;

            gap: 9px;

            padding:
                12px
                22px;

            border-radius: 30px;

            color: white !important;

            background:
                linear-gradient(
                    135deg,
                    var(--navy),
                    var(--teal-dark)
                );

            box-shadow:
                0 10px 25px
                rgba(11, 31, 58, 0.20);

            transition:
                0.25s ease;
        }


        .nav-button::after {
            display: none;
        }


        .nav-button:hover {

            transform:
                translateY(-2px);

            box-shadow:
                0 14px 30px
                rgba(11, 31, 58, 0.30);
        }


        .login-icon {

            font-size: 16px;
        }


        /* =========================================================
           HERO
        ========================================================= */

        .hero {

            position: relative;

            min-height: 790px;

            display: flex;

            align-items: center;

            justify-content: center;

            padding:
                130px
                30px
                90px;

            overflow: hidden;

            background:
                linear-gradient(
                    135deg,
                    #071b34 0%,
                    #0b2d50 43%,
                    #087779 100%
                );
        }


        .hero::before {

            content: "";

            position: absolute;

            inset: 0;

            background:
                linear-gradient(
                    135deg,
                    rgba(255,255,255,0.04),
                    transparent 48%
                );

            pointer-events: none;
        }


        .hero::after {

            content: "";

            position: absolute;

            width: 500px;
            height: 500px;

            right: -220px;
            bottom: -250px;

            border-radius: 50%;

            border:
                1px solid
                rgba(213,167,58,0.18);

            box-shadow:
                0 0 0 40px
                rgba(213,167,58,0.03),
                0 0 0 80px
                rgba(213,167,58,0.02);
        }


        /* =========================================================
           HERO CONTAINER
        ========================================================= */

        .hero-container {

            position: relative;

            z-index: 2;

            width: 100%;

            max-width: 1180px;

            display: grid;

            grid-template-columns:
                minmax(0, 1.15fr)
                minmax(350px, 0.85fr);

            gap: 70px;

            align-items: center;
        }


        /* =========================================================
           HERO CONTENT
        ========================================================= */

        .hero-content {

            color: white;
        }


        .hero-badge {

            display: inline-flex;

            align-items: center;

            gap: 9px;

            padding:
                8px
                15px;

            margin-bottom: 24px;

            border:
                1px solid
                rgba(255,255,255,0.20);

            border-radius: 30px;

            background:
                rgba(255,255,255,0.07);

            backdrop-filter: blur(10px);

            font-size: 12px;

            font-weight: 700;

            letter-spacing: 0.8px;

            text-transform: uppercase;
        }


        .badge-dot {

            width: 7px;
            height: 7px;

            border-radius: 50%;

            background:
                var(--gold-light);

            box-shadow:
                0 0 12px
                rgba(240,207,114,0.9);
        }


        .hero-title {

            max-width: 720px;

            font-size:
                clamp(48px, 6vw, 78px);

            line-height: 1.02;

            font-weight: 850;

            letter-spacing: -3px;

            margin-bottom: 24px;
        }


        .hero-title .accent {

            color:
                var(--gold-light);
        }


        .hero-subtitle {

            max-width: 650px;

            font-size: 18px;

            line-height: 1.8;

            color:
                rgba(255,255,255,0.78);

            margin-bottom: 34px;
        }


        /* =========================================================
           HERO BUTTONS
        ========================================================= */

        .hero-actions {

            display: flex;

            flex-wrap: wrap;

            align-items: center;

            gap: 14px;
        }


        .primary-button,
        .secondary-button {

            display: inline-flex;

            align-items: center;

            justify-content: center;

            gap: 10px;

            min-height: 52px;

            padding:
                0
                25px;

            border-radius: 14px;

            font-size: 14px;

            font-weight: 800;

            transition:
                0.25s ease;
        }


        .primary-button {

            color:
                var(--navy);

            background:
                white;

            box-shadow:
                0 12px 30px
                rgba(0,0,0,0.18);
        }


        .primary-button:hover {

            transform:
                translateY(-3px);

            box-shadow:
                0 18px 38px
                rgba(0,0,0,0.25);
        }


        .secondary-button {

            color: white;

            border:
                1px solid
                rgba(255,255,255,0.45);

            background:
                rgba(255,255,255,0.06);
        }


        .secondary-button:hover {

            background:
                rgba(255,255,255,0.13);

            transform:
                translateY(-3px);
        }


        /* =========================================================
           HERO VISUAL
        ========================================================= */

        .hero-visual {

            position: relative;

            min-height: 480px;

            display: flex;

            align-items: center;

            justify-content: center;
        }


        .visual-glow {

            position: absolute;

            width: 390px;
            height: 390px;

            border-radius: 50%;

            background:
                radial-gradient(
                    circle,
                    rgba(84,200,200,0.16),
                    transparent 68%
                );

            filter: blur(4px);
        }


        /* =========================================================
           INSTITUTION CARD
        ========================================================= */

        .institution-card {

            position: relative;

            width: 350px;

            padding:
                35px 30px;

            border:
                1px solid
                rgba(255,255,255,0.23);

            border-radius: 28px;

            background:
                linear-gradient(
                    145deg,
                    rgba(255,255,255,0.12),
                    rgba(255,255,255,0.045)
                );

            backdrop-filter: blur(22px);

            -webkit-backdrop-filter: blur(22px);

            box-shadow:
                0 35px 80px
                rgba(0,0,0,0.25);

            transform:
                rotate(2deg);

            transition:
                0.4s ease;
        }


        .institution-card:hover {

            transform:
                rotate(0deg)
                translateY(-8px);
        }


        /* =========================================================
           CLASSIC EMBLEM
        ========================================================= */

        .classic-emblem {

            width: 130px;
            height: 130px;

            margin:
                0 auto
                25px;

            position: relative;

            display: flex;

            align-items: center;

            justify-content: center;

            border:
                2px solid
                rgba(240,207,114,0.80);

            border-radius: 50%;

            background:
                rgba(255,255,255,0.05);

            box-shadow:

                inset 0 0 0 7px
                rgba(255,255,255,0.03),

                inset 0 0 0 10px
                rgba(240,207,114,0.08);
        }


        .classic-emblem::before {

            content: "";

            position: absolute;

            width: 96px;
            height: 96px;

            border:
                1px dashed
                rgba(255,255,255,0.55);

            border-radius: 50%;
        }


        .emblem-icon {

            font-size: 45px;

            color:
                var(--gold-light);

            position: relative;

            z-index: 2;

            text-shadow:
                0 4px 15px
                rgba(0,0,0,0.20);
        }


        .emblem-label {

            text-align: center;

            font-size: 10px;

            font-weight: 800;

            letter-spacing: 2px;

            color:
                rgba(255,255,255,0.68);

            text-transform: uppercase;
        }


        .institution-card h2 {

            margin-top: 8px;

            color: white;

            text-align: center;

            font-size: 25px;

            font-weight: 800;

            letter-spacing: 1px;
        }


        .institution-card p {

            margin-top: 8px;

            color:
                rgba(255,255,255,0.68);

            text-align: center;

            font-size: 13px;

            line-height: 1.7;
        }


        .mini-line {

            width: 50px;
            height: 3px;

            margin:
                17px auto
                0;

            border-radius: 20px;

            background:
                var(--gold-light);
        }


        /* =========================================================
           FLOATING SHAPES
        ========================================================= */

        .floating-shape {

            position: absolute;

            display: flex;

            align-items: center;

            justify-content: center;

            width: 58px;
            height: 58px;

            border-radius: 17px;

            color:
                white;

            background:
                rgba(255,255,255,0.08);

            border:
                1px solid
                rgba(255,255,255,0.18);

            backdrop-filter: blur(10px);

            font-size: 23px;

            box-shadow:
                0 15px 35px
                rgba(0,0,0,0.16);

            animation:
                floating 5s ease-in-out infinite;
        }


        .shape-one {

            top: 60px;
            right: 25px;

            color:
                var(--gold-light);
        }


        .shape-two {

            bottom: 65px;
            left: 10px;

            color:
                var(--teal-light);

            animation-delay: 1s;
        }


        .shape-three {

            top: 155px;
            left: 0;

            width: 45px;
            height: 45px;

            border-radius: 14px;

            font-size: 17px;

            animation-delay: 2s;
        }


        @keyframes floating {

            0%,
            100% {

                transform:
                    translateY(0);
            }

            50% {

                transform:
                    translateY(-12px);
            }
        }


        /* =========================================================
           TRUST BAR
        ========================================================= */

        .trust-bar {

            position: relative;

            z-index: 5;

            width: 100%;

            background:
                white;

            border-bottom:
                1px solid
                var(--border);

            box-shadow:
                0 8px 30px
                rgba(7,21,42,0.05);
        }


        .trust-container {

            max-width: 1050px;

            margin: auto;

            min-height: 105px;

            padding:
                20px 30px;

            display: grid;

            grid-template-columns:
                repeat(3, 1fr);

            gap: 20px;

            align-items: center;
        }


        .trust-item {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 13px;

            color:
                #5d6a7b;
        }


        .trust-icon {

            width: 43px;
            height: 43px;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 12px;

            color:
                var(--teal-dark);

            background:
                #e8f5f5;

            font-size: 19px;
        }


        .trust-text strong {

            display: block;

            font-size: 14px;

            color:
                var(--navy);
        }


        .trust-text span {

            display: block;

            margin-top: 2px;

            font-size: 11px;

            color:
                #929daa;
        }


        /* =========================================================
           FEATURES
        ========================================================= */

        .features-section {

            padding:
                110px 30px;

            background:
                linear-gradient(
                    180deg,
                    #ffffff,
                    #f4f8fa
                );
        }


        .section-container {

            width: 100%;

            max-width: 1180px;

            margin: auto;
        }


        .section-heading {

            max-width: 700px;

            margin:
                0 auto
                60px;

            text-align: center;
        }


        .eyebrow {

            display: inline-block;

            margin-bottom: 12px;

            font-size: 11px;

            font-weight: 850;

            letter-spacing: 2px;

            text-transform: uppercase;

            color:
                var(--teal-dark);
        }


        .section-heading h2 {

            font-size:
                clamp(32px, 4vw, 46px);

            line-height: 1.15;

            letter-spacing: -1.5px;

            color:
                var(--navy);

            margin-bottom: 15px;
        }


        .section-heading p {

            font-size: 15px;

            line-height: 1.8;

            color:
                var(--muted);
        }


        /* =========================================================
           FEATURE GRID
        ========================================================= */

        .feature-grid {

            display: grid;

            grid-template-columns:
                repeat(3, 1fr);

            gap: 22px;
        }


        .feature-card {

            position: relative;

            padding:
                32px 28px;

            border:
                1px solid
                var(--border);

            border-radius: 22px;

            background:
                white;

            box-shadow:
                var(--shadow-sm);

            overflow: hidden;

            transition:
                0.3s ease;
        }


        .feature-card::before {

            content: "";

            position: absolute;

            top: 0;
            left: 0;

            width: 100%;
            height: 4px;

            background:
                linear-gradient(
                    90deg,
                    var(--teal),
                    var(--gold)
                );

            transform:
                scaleX(0);

            transform-origin: left;

            transition:
                0.3s ease;
        }


        .feature-card:hover {

            transform:
                translateY(-7px);

            box-shadow:
                var(--shadow-md);
        }


        .feature-card:hover::before {

            transform:
                scaleX(1);
        }


        .feature-icon {

            width: 55px;
            height: 55px;

            display: flex;

            align-items: center;

            justify-content: center;

            margin-bottom: 22px;

            border-radius: 16px;

            color:
                var(--teal-dark);

            background:
                linear-gradient(
                    135deg,
                    #e5f5f5,
                    #f7f0db
                );

            font-size: 23px;
        }


        .feature-card h3 {

            margin-bottom: 9px;

            font-size: 18px;

            color:
                var(--navy);
        }


        .feature-card p {

            font-size: 13px;

            line-height: 1.8;

            color:
                var(--muted);
        }


        /* =========================================================
           ABOUT SECTION
        ========================================================= */

        .about-section {

            padding:
                100px 30px;

            background:
                white;
        }


        .about-grid {

            display: grid;

            grid-template-columns:
                0.9fr
                1.1fr;

            gap: 70px;

            align-items: center;
        }


        .about-visual {

            position: relative;

            min-height: 430px;

            border-radius: 30px;

            background:
                linear-gradient(
                    145deg,
                    var(--navy),
                    var(--teal-dark)
                );

            overflow: hidden;

            box-shadow:
                var(--shadow-lg);
        }


        .about-visual::before {

            content: "";

            position: absolute;

            width: 280px;
            height: 280px;

            border-radius: 50%;

            top: -100px;
            right: -90px;

            border:
                1px solid
                rgba(240,207,114,0.25);
        }


        .about-visual::after {

            content: "";

            position: absolute;

            width: 350px;
            height: 350px;

            border-radius: 50%;

            bottom: -190px;
            left: -150px;

            border:
                1px solid
                rgba(84,200,200,0.18);
        }


        .about-card {

            position: absolute;

            inset: 45px;

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            text-align: center;

            border:
                1px solid
                rgba(255,255,255,0.20);

            border-radius: 23px;

            background:
                rgba(255,255,255,0.07);

            backdrop-filter: blur(12px);
        }


        .about-card img {

            width: 100px;
            height: 100px;

            object-fit: contain;

            padding: 9px;

            border-radius: 22px;

            background:
                white;

            margin-bottom: 20px;
        }


        .about-card strong {

            color:
                white;

            font-size: 23px;
        }


        .about-card span {

            margin-top: 6px;

            color:
                rgba(255,255,255,0.68);

            font-size: 12px;

            letter-spacing: 1px;
        }


        .about-content .eyebrow {

            margin-bottom: 12px;
        }


        .about-content h2 {

            font-size:
                clamp(32px, 4vw, 48px);

            line-height: 1.15;

            letter-spacing: -1.6px;

            color:
                var(--navy);

            margin-bottom: 20px;
        }


        .about-content > p {

            color:
                var(--muted);

            line-height: 1.9;

            font-size: 15px;

            margin-bottom: 25px;
        }


        /* =========================================================
           CHECK LIST
        ========================================================= */

        .check-list {

            display: grid;

            gap: 13px;
        }


        .check-item {

            display: flex;

            align-items: center;

            gap: 11px;

            font-size: 14px;

            font-weight: 650;

            color:
                #4b5869;
        }


        .check-icon {

            width: 25px;
            height: 25px;

            flex-shrink: 0;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 50%;

            color:
                var(--teal-dark);

            background:
                #e8f5f5;

            font-size: 12px;
        }


        /* =========================================================
           CTA
        ========================================================= */

        .cta-section {

            padding:
                100px 30px;

            background:
                #f4f7f9;
        }


        .cta-box {

            position: relative;

            max-width: 1100px;

            margin: auto;

            padding:
                65px 60px;

            overflow: hidden;

            border-radius: 30px;

            color:
                white;

            background:
                linear-gradient(
                    135deg,
                    var(--navy-dark),
                    var(--teal-dark)
                );

            box-shadow:
                var(--shadow-lg);
        }


        .cta-box::before {

            content: "";

            position: absolute;

            width: 350px;
            height: 350px;

            right: -130px;
            top: -190px;

            border-radius: 50%;

            border:
                1px solid
                rgba(240,207,114,0.20);
        }


        .cta-box::after {

            content: "";

            position: absolute;

            width: 240px;
            height: 240px;

            left: -110px;
            bottom: -170px;

            border-radius: 50%;

            border:
                1px solid
                rgba(84,200,200,0.15);
        }


        .cta-content {

            position: relative;

            z-index: 2;

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 40px;
        }


        .cta-content h2 {

            font-size:
                clamp(28px, 4vw, 42px);

            line-height: 1.15;

            letter-spacing: -1px;

            margin-bottom: 10px;
        }


        .cta-content p {

            max-width: 600px;

            color:
                rgba(255,255,255,0.68);

            font-size: 14px;

            line-height: 1.7;
        }


        /* =========================================================
           FOOTER
        ========================================================= */

        .footer {

            padding:
                45px 30px 25px;

            background:
                var(--navy-dark);

            color:
                white;
        }


        .footer-container {

            max-width: 1180px;

            margin: auto;
        }


        .footer-top {

            display: flex;

            justify-content: space-between;

            align-items: center;

            gap: 30px;

            padding-bottom: 30px;

            border-bottom:
                1px solid
                rgba(255,255,255,0.08);
        }


        .footer-brand {

            display: flex;

            align-items: center;

            gap: 13px;
        }


        .footer-brand img {

            width: 48px;
            height: 48px;

            padding: 5px;

            border-radius: 12px;

            background:
                white;

            object-fit: contain;
        }


        .footer-brand strong {

            display: block;

            font-size: 17px;
        }


        .footer-brand span {

            display: block;

            margin-top: 3px;

            font-size: 10px;

            color:
                rgba(255,255,255,0.48);

            letter-spacing: 1px;

            text-transform: uppercase;
        }


        .footer-bottom {

            padding-top: 20px;

            text-align: center;

            color:
                rgba(255,255,255,0.38);

            font-size: 11px;
        }

        .site-footer {
    width: 100%;
    background: #07172f;
    color: #d9dee7;
    margin-top: 50px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}


/* FOOTER CONTAINER */

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;

    padding: 55px 50px 45px;
}


/* COLUMN */

.footer-column h3 {
    margin: 0 0 28px;

    font-size: 28px;
    font-weight: 700;

    color: #ffffff;
}


.footer-column p {
    margin: 0;

    font-size: 20px;
    line-height: 1.9;

    color: #d1d6df;
}


/* SYSTEM INFO */

.system-info {
    max-width: 550px;
}


.system-info p {
    max-width: 520px;
}


/* CONTACT */

.contact-info p {
    margin-bottom: 10px;
}


.contact-info i {
    width: 30px;

    margin-right: 5px;

    color: #e0e5ed;
}


/* FOOTER BOTTOM */

.footer-bottom {
    margin: 0 50px;

    padding: 25px 0 28px;

    border-top: 1px solid rgba(255,255,255,0.10);

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    font-size: 18px;

    color: #c7ccd5;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;

        padding: 45px 30px;
    }

    .footer-bottom {
        margin: 0 30px;
    }

}


@media (max-width: 600px) {

    .site-footer {
        border-radius: 0;
    }

    .footer-container {
        padding: 40px 22px;
    }

    .footer-column h3 {
        font-size: 24px;
    }

    .footer-column p {
        font-size: 17px;
    }

    .footer-bottom {
        margin: 0 22px;
    }

    .footer-bottom p {
        font-size: 15px;
        line-height: 1.6;
    }

}


        /* =========================================================
           SCROLL REVEAL
        ========================================================= */

        .reveal {

            opacity: 0;

            transform:
                translateY(25px);

            transition:
                opacity 0.8s ease,
                transform 0.8s ease;
        }


        .reveal.show {

            opacity: 1;

            transform:
                translateY(0);
        }


        /* =========================================================
           RESPONSIVE - 1000px
        ========================================================= */

        @media (max-width: 1000px) {

            .hero-container {

                grid-template-columns: 1fr;

                text-align: center;

                gap: 35px;
            }


            .hero-content {

                display: flex;

                flex-direction: column;

                align-items: center;
            }


            .hero-subtitle {

                margin-left: auto;
                margin-right: auto;
            }


            .hero-visual {

                min-height: 420px;
            }


            .feature-grid {

                grid-template-columns:
                    repeat(2, 1fr);
            }


            .about-grid {

                grid-template-columns: 1fr;

                gap: 45px;
            }


            .about-content {

                text-align: center;
            }


            .check-list {

                max-width: 500px;

                margin: auto;

                text-align: left;
            }


            .cta-content {

                flex-direction: column;

                text-align: center;
            }
        }


        /* =========================================================
           RESPONSIVE - 760px
        ========================================================= */

        @media (max-width: 760px) {

            .navbar {

                height: 72px;

                padding:
                    0 18px;
            }


            .brand-logo {

                width: 45px;
                height: 45px;

                border-radius: 12px;
            }


            .brand-name strong {

                font-size: 17px;
            }


            .brand-name span {

                font-size: 8px;
            }


            .nav-links {

                gap: 10px;
            }


            .nav-links > a:not(.nav-button) {

                display: none;
            }


            .nav-button {

                padding:
                    10px 15px;

                font-size: 12px;
            }


            .hero {

                min-height: auto;

                padding:
                    130px 20px 75px;
            }


            .hero-title {

                font-size: 49px;

                letter-spacing: -2px;
            }


            .hero-subtitle {

                font-size: 15px;

                line-height: 1.75;
            }


            .hero-actions {

                justify-content: center;
            }


            .primary-button,
            .secondary-button {

                min-height: 48px;

                padding:
                    0 19px;
            }


            .hero-visual {

                min-height: 370px;
            }


            .institution-card {

                width:
                    min(330px, 90vw);
            }


            .shape-one {

                right: 2px;
            }


            .shape-two {

                left: 2px;
            }


            .trust-container {

                grid-template-columns: 1fr;

                padding:
                    25px 20px;
            }


            .feature-grid {

                grid-template-columns: 1fr;
            }


            .features-section,
            .about-section,
            .cta-section {

                padding:
                    75px 20px;
            }


            .about-visual {

                min-height: 350px;
            }


            .about-card {

                inset: 28px;
            }


            .cta-box {

                padding:
                    45px 25px;
            }


            .footer {

                padding:
                    38px 20px 22px;
            }


            .footer-top {

                flex-direction: column;

                text-align: center;
            }
        }


        /* =========================================================
           RESPONSIVE - 450px
        ========================================================= */

        @media (max-width: 450px) {

            .brand-name span {

                display: none;
            }


            .hero-title {

                font-size: 42px;
            }


            .hero-actions {

                width: 100%;
            }


            .primary-button,
            .secondary-button {

                width: 100%;
            }


            .institution-card {

                padding:
                    28px 20px;
            }


            .classic-emblem {

                width: 110px;
                height: 110px;
            }


            .emblem-icon {

                font-size: 38px;
            }
        }

    

/* =========================================================================
   HALAMAN LOG MASUK (login.php)
   ========================================================================= */


        /* =====================================================
           MAIN WRAPPER
        ====================================================== */

        .login-page {

            min-height: 100vh;

            display: grid;

            grid-template-columns:
                1.05fr
                0.95fr;

            background:
                var(--white);
        }


        /* =====================================================
           LEFT PANEL
        ====================================================== */

        .brand-panel {

            position: relative;

            min-height: 100vh;

            display: flex;

            align-items: center;

            justify-content: center;

            padding: 60px;

            overflow: hidden;

            color: white;

            background:
                linear-gradient(
                    145deg,
                    #07152a 0%,
                    #0b2b4b 48%,
                    #087779 100%
                );
        }


        /* =====================================================
           LEFT BACKGROUND DECORATION
        ====================================================== */

        .brand-panel::before {

            content: "";

            position: absolute;

            width: 500px;

            height: 500px;

            top: -220px;

            right: -180px;

            border-radius: 50%;

            border:
                1px solid
                rgba(240,207,114,0.20);

            box-shadow:

                0 0 0 35px
                rgba(240,207,114,0.025),

                0 0 0 70px
                rgba(240,207,114,0.018);
        }


        .brand-panel::after {

            content: "";

            position: absolute;

            width: 420px;

            height: 420px;

            bottom: -240px;

            left: -170px;

            border-radius: 50%;

            border:
                1px solid
                rgba(84,200,200,0.20);
        }


        /* =====================================================
           DECORATIVE DOTS
        ====================================================== */

        .dot-pattern {

            position: absolute;

            width: 150px;

            height: 150px;

            opacity: 0.18;

            background-image:

                radial-gradient(
                    rgba(255,255,255,0.8) 1px,
                    transparent 1px
                );

            background-size:
                16px 16px;

            top: 70px;

            left: 65px;
        }


        /* =====================================================
           BRAND CONTENT
        ====================================================== */

        .brand-content {

            position: relative;

            z-index: 5;

            width: 100%;

            max-width: 560px;

            text-align: center;
        }


        /* =====================================================
           LOGO
        ====================================================== */

        .main-logo {

            width: 108px;

            height: 108px;

            padding: 10px;

            margin:
                0 auto 25px;

            border-radius: 25px;

            background:
                white;

            box-shadow:
                0 22px 50px
                rgba(0,0,0,0.20);

            animation:
                logoFloat 5s ease-in-out infinite;
        }


        .main-logo img {

            width: 100%;

            height: 100%;

            object-fit: contain;
        }


        @keyframes logoFloat {

            0%,
            100% {

                transform:
                    translateY(0);
            }

            50% {

                transform:
                    translateY(-7px);
            }
        }


        /* =====================================================
           BRAND TITLE
        ====================================================== */

        .brand-content h1 {

            font-size:
                clamp(45px, 5vw, 68px);

            font-weight: 850;

            letter-spacing:
                -2.5px;

            line-height: 1;

            margin-bottom: 13px;
        }


        .brand-content h1 span {

            color:
                var(--gold-light);
        }


        .brand-tagline {

            font-size: 15px;

            color:
                rgba(255,255,255,0.68);

            line-height: 1.7;

            max-width: 430px;

            margin:
                0 auto 35px;
        }


        /* =====================================================
           CLASSIC EMBLEM
        ====================================================== */

        .academic-emblem {

            width: 175px;

            height: 175px;

            margin:
                0 auto;

            position: relative;

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            border:
                2px solid
                rgba(240,207,114,0.65);

            border-radius: 50%;

            background:
                rgba(255,255,255,0.035);

            box-shadow:

                inset 0 0 0 8px
                rgba(255,255,255,0.025),

                inset 0 0 0 11px
                rgba(240,207,114,0.07);
        }


        .academic-emblem::before {

            content: "";

            position: absolute;

            width: 140px;

            height: 140px;

            border:
                1px dashed
                rgba(255,255,255,0.35);

            border-radius: 50%;
        }


        .emblem-cap {

            position: relative;

            z-index: 2;

            font-size: 47px;

            color:
                var(--gold-light);

            margin-bottom: 7px;
        }


        .emblem-text {

            position: relative;

            z-index: 2;

            font-size: 9px;

            font-weight: 800;

            letter-spacing: 1.8px;

            color:
                rgba(255,255,255,0.65);

            text-transform: uppercase;
        }


        /* =====================================================
           LEFT BOTTOM TEXT
        ====================================================== */

        .brand-footer {

            margin-top: 35px;

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 12px;

            color:
                rgba(255,255,255,0.48);

            font-size: 11px;
        }


        .brand-footer-line {

            width: 35px;

            height: 1px;

            background:
                rgba(240,207,114,0.55);
        }


        /* =====================================================
           FLOATING SHAPES
        ====================================================== */

        .login-floating-shape {

            position: absolute;

            display: flex;

            align-items: center;

            justify-content: center;

            width: 54px;

            height: 54px;

            border-radius: 16px;

            border:
                1px solid
                rgba(255,255,255,0.12);

            background:
                rgba(255,255,255,0.055);

            backdrop-filter:
                blur(10px);

            color:
                rgba(255,255,255,0.60);

            font-size: 20px;

            animation:
                login-floating 5s ease-in-out infinite;
        }


        .login-floating-one {

            top: 28%;

            left: 8%;
        }


        .login-floating-two {

            bottom: 18%;

            right: 9%;

            color:
                var(--gold-light);

            animation-delay:
                1.2s;
        }


        .login-floating-three {

            top: 17%;

            right: 12%;

            width: 42px;

            height: 42px;

            font-size: 15px;

            animation-delay:
                2.2s;
        }


        @keyframes login-floating {

            0%,
            100% {

                transform:
                    translateY(0)
                    rotate(0deg);
            }

            50% {

                transform:
                    translateY(-12px)
                    rotate(3deg);
            }
        }


        /* =====================================================
           RIGHT PANEL
        ====================================================== */

        .form-panel {

            min-height: 100vh;

            display: flex;

            align-items: center;

            justify-content: center;

            padding: 50px;

            background:
                #f7f9fb;
        }


        /* =====================================================
           LOGIN CARD
        ====================================================== */

        .login-card {

            width: 100%;

            max-width: 450px;

            padding:
                48px 45px;

            border:
                1px solid
                rgba(11,31,58,0.08);

            border-radius: 28px;

            background:
                white;

            box-shadow:
                0 25px 70px
                rgba(7,21,42,0.10);

            animation:
                cardAppear 0.7s ease;
        }


        @keyframes cardAppear {

            from {

                opacity: 0;

                transform:
                    translateY(25px);
            }

            to {

                opacity: 1;

                transform:
                    translateY(0);
            }
        }


        /* =====================================================
           LOGIN HEADER
        ====================================================== */

        .login-header {

            margin-bottom: 35px;
        }


        .login-small-title {

            display: inline-flex;

            align-items: center;

            gap: 8px;

            margin-bottom: 13px;

            color:
                var(--teal-dark);

            font-size: 11px;

            font-weight: 850;

            letter-spacing: 1.8px;

            text-transform:
                uppercase;
        }


        .login-small-title::before {

            content: "";

            width: 24px;

            height: 2px;

            border-radius: 20px;

            background:
                var(--gold);
        }


        .login-header h2 {

            color:
                var(--navy);

            font-size: 32px;

            line-height: 1.15;

            letter-spacing:
                -1px;

            margin-bottom: 10px;
        }


        .login-header p {

            color:
                var(--muted);

            font-size: 13px;

            line-height: 1.7;
        }


        /* =====================================================
           FORM
        ====================================================== */

        .login-form {

            width: 100%;
        }


        .form-group {

            margin-bottom: 20px;
        }


        .form-label {

            display: block;

            margin-bottom: 8px;

            color:
                #334256;

            font-size: 13px;

            font-weight: 750;
        }


        .input-wrapper {

            position: relative;
        }


        .input-icon {

            position: absolute;

            left: 16px;

            top: 50%;

            transform:
                translateY(-50%);

            width: 20px;

            height: 20px;

            display: flex;

            align-items: center;

            justify-content: center;

            overflow: hidden;

            line-height: 1;

            color:
                #8a95a4;

            font-size: 14px;

            pointer-events: none;

            transition:
                0.25s ease;
        }


        .form-input {

            width: 100%;

            height: 54px;

            padding:
                0 48px 0 52px;

            border:
                1px solid
                var(--border);

            border-radius: 14px;

            outline: none;

            color:
                var(--navy);

            background:
                #fbfcfd;

            font-size: 14px;

            transition:
                0.25s ease;
        }


        .form-input::placeholder {

            color:
                #a5aeba;
        }


        .form-input:hover {

            border-color:
                #ccd4dd;

            background:
                white;
        }


        .form-input:focus {

            border-color:
                var(--teal);

            background:
                white;

            box-shadow:
                0 0 0 4px
                rgba(21,154,156,0.10);
        }


        .input-wrapper:focus-within
        .input-icon {

            color:
                var(--teal-dark);
        }


        /* =====================================================
           PASSWORD TOGGLE
        ====================================================== */

        .password-toggle {

            position: absolute;

            right: 13px;

            top: 50%;

            transform:
                translateY(-50%);

            width: 34px;

            height: 34px;

            border: none;

            border-radius: 9px;

            display: flex;

            align-items: center;

            justify-content: center;

            cursor: pointer;

            color:
                #8a95a4;

            background:
                transparent;

            transition:
                0.2s ease;
        }


        .password-toggle:hover {

            color:
                var(--teal-dark);

            background:
                #eaf5f5;
        }


        /* =====================================================
           LOGIN BUTTON
        ====================================================== */

        .login-button {

            width: 100%;

            height: 55px;

            margin-top: 10px;

            border: none;

            border-radius: 14px;

            cursor: pointer;

            color:
                white;

            background:
                linear-gradient(
                    135deg,
                    var(--navy),
                    var(--teal-dark)
                );

            font-size: 14px;

            font-weight: 800;

            letter-spacing:
                0.2px;

            box-shadow:
                0 12px 25px
                rgba(11,31,58,0.18);

            transition:
                0.25s ease;
        }


        .login-button:hover {

            transform:
                translateY(-2px);

            box-shadow:
                0 16px 32px
                rgba(11,31,58,0.25);
        }


        .login-button:active {

            transform:
                translateY(0);
        }


        .login-button-content {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 10px;
        }


        .arrow {

            font-size: 18px;

            transition:
                0.25s ease;
        }


        .login-button:hover .arrow {

            transform:
                translateX(4px);
        }


        /* =====================================================
           DIVIDER
        ====================================================== */

        .divider {

            display: flex;

            align-items: center;

            gap: 14px;

            margin:
                28px 0 23px;

            color:
                #a4adb8;

            font-size: 10px;

            font-weight: 700;

            letter-spacing:
                1.3px;

            text-transform:
                uppercase;
        }


        .divider::before,
        .divider::after {

            content: "";

            flex: 1;

            height: 1px;

            background:
                #e8ebef;
        }


        /* =====================================================
           SYSTEM INFO
        ====================================================== */

        .login-system-info {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 8px;

            color:
                #8b96a4;

            font-size: 11px;

            line-height: 1.6;

            text-align: center;
        }


        .login-system-info-dot {

            width: 7px;

            height: 7px;

            flex-shrink: 0;

            border-radius: 50%;

            background:
                var(--teal);

            box-shadow:
                0 0 0 4px
                rgba(21,154,156,0.10);
        }


        /* =====================================================
           BACK HOME
        ====================================================== */

        .back-home {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 7px;

            margin-top: 25px;

            color:
                #7d8998;

            font-size: 12px;

            font-weight: 700;

            transition:
                0.2s ease;
        }


        .back-home:hover {

            color:
                var(--teal-dark);
        }


        .back-home-arrow {

            transition:
                0.2s ease;
        }


        .back-home:hover
        .back-home-arrow {

            transform:
                translateX(-3px);
        }


        /* =====================================================
           RESPONSIVE - 1050px
        ====================================================== */

        @media (max-width: 1050px) {

            .login-page {

                grid-template-columns:
                    0.9fr
                    1.1fr;
            }


            .brand-panel {

                padding:
                    40px;
            }


            .form-panel {

                padding:
                    35px;
            }
        }


        /* =====================================================
           RESPONSIVE - 850px
        ====================================================== */

        @media (max-width: 850px) {

            .login-page {

                display: block;
            }


            .brand-panel {

                min-height:
                    auto;

                padding:
                    60px 25px 55px;
            }


            .brand-content h1 {

                font-size:
                    52px;
            }


            .academic-emblem {

                width: 145px;

                height: 145px;
            }


            .academic-emblem::before {

                width: 115px;

                height: 115px;
            }


            .login-floating-shape {

                display: none;
            }


            .form-panel {

                min-height:
                    auto;

                padding:
                    45px 20px 60px;
            }


            .login-card {

                max-width:
                    500px;
            }
        }


        /* =====================================================
           RESPONSIVE - 500px
        ====================================================== */

        @media (max-width: 500px) {

            .brand-panel {

                padding:
                    45px 20px 45px;
            }


            .main-logo {

                width: 88px;

                height: 88px;

                border-radius:
                    20px;
            }


            .brand-content h1 {

                font-size:
                    43px;

                letter-spacing:
                    -1.8px;
            }


            .brand-tagline {

                font-size:
                    13px;
            }


            .academic-emblem {

                width: 125px;

                height: 125px;
            }


            .academic-emblem::before {

                width: 99px;

                height: 99px;
            }


            .emblem-cap {

                font-size:
                    38px;
            }


            .emblem-text {

                font-size:
                    7px;
            }


            .form-panel {

                padding:
                    30px 15px 45px;
            }


            .login-card {

                padding:
                    35px 23px;

                border-radius:
                    22px;
            }


            .login-header h2 {

                font-size:
                    28px;
            }


            .form-input {

                height:
                    52px;
            }


            .login-button {

                height:
                    53px;
            }
        }


    
/* =========================================================================
   APP SHELL (halaman dalaman selepas log masuk: admin/penyelaras/penyelia/
   pelajar). Nama class KEKAL sama seperti v2 (.app, .sidebar, .brand,
   .topbar, .main, .content, .peranan-tag, .logout-area, .user-chip) supaya
   TIADA fail PHP dalaman perlu diubah — hanya rupa (CSS) yang dinaik taraf.
   ========================================================================= */

.app {
    display: flex;
    min-height: 100vh;
    background: var(--soft);
}

/* ---- Sidebar ---- */

.sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--navy-dark), var(--navy) 55%, var(--navy-light));
    color: #dbe7f3;
    box-shadow: 3px 0 25px rgba(7, 21, 42, 0.12);
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar .brand img {
    height: 42px;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.sidebar .brand span {
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.peranan-tag {
    margin: 14px 20px 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(240, 207, 114, 0.16);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    width: fit-content;
}

.sidebar nav {
    flex: 1;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #c7d4e6;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
    text-decoration: none;
}

.sidebar nav a.active {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(8, 119, 121, 0.35);
}

.sidebar .logout-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar .logout-area a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f3b3ac;
    font-size: 13.5px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.sidebar .logout-area a:hover {
    color: #ffffff;
}

/* ---- Main column ---- */

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.topbar h1 {
    font-size: 21px;
    font-weight: 800;
    margin: 0;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.topbar .user-chip {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}

.content {
    padding: 30px 34px 60px;
    flex: 1;
}


/* =========================================================================
   COMPONENTS (dikongsi merentasi semua halaman dalaman)
   ========================================================================= */

/* ---- Card ---- */

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.045);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
}

.card h2 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--navy);
}

.card p.desc {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 18px;
}

/* ---- Stat grid ---- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    border-top: 3px solid var(--teal);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.stat-box .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.stat-box .label {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

/* ---- Table ---- */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: #f7f9fc;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

tr:hover td {
    background: #f8fbfc;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.table-wrap table {
    border: none;
}

.table-wrap th:first-child, .table-wrap td:first-child {
    padding-left: 18px;
}

/* ---- Badge ---- */

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-program { background: var(--soft-blue); color: var(--teal-dark); }
.badge-kategori { background: #f3ecfb; color: #6c3ec2; }
.badge-kategori-utama { background: rgba(240, 207, 114, 0.22); color: #8a6516; }
.badge-kategori-sub { background: var(--soft-blue); color: var(--teal-dark); }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-off { background: #eef0f3; color: #8792a0; }

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--navy), var(--teal-dark));
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11, 31, 58, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(11, 31, 58, 0.25);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background: #eef1f5;
    color: var(--text);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text);
    box-shadow: none;
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 8px 18px rgba(217, 83, 79, 0.25);
}

.btn-danger:hover {
    background: #c9433e;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* ---- Forms ---- */

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text);
}

.form-group .hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 700px) {
    .form-row { grid-template-columns: 1fr; }
}

input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=date], input[type=number], input[type=url],
select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fbfcfd;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover, select:hover, textarea:hover {
    border-color: #ccd4dd;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 154, 156, 0.10);
}

textarea { resize: vertical; min-height: 90px; }

fieldset {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 18px;
}

fieldset legend {
    font-weight: 800;
    font-size: 13.5px;
    padding: 0 8px;
    color: var(--navy);
}

/* ---- Alerts ---- */

.alert {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.alert-info { background: var(--soft-blue); color: var(--teal-dark); border-color: var(--teal); }

/* ---- Misc ---- */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-bar select, .filter-bar input[type=text] {
    width: auto;
    min-width: 170px;
}

.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

/* ---- Responsive: app shell ---- */

@media (max-width: 900px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
    .sidebar .brand { border-bottom: none; }
    .sidebar nav { flex-direction: row; padding: 10px; }
    .sidebar .logout-area { border-top: none; }
    .content { padding: 22px 18px 40px; }
    .topbar { padding: 16px 20px; }
}

/* ---- Print ---- */

@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main, .content { padding: 0 !important; margin: 0 !important; }
    body { background: #fff; }
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =========================================================================
   HALAMAN AWAM TAMBAHAN (program.php, pembangun.php) — guna semula
   .navbar / .site-footer daripada halaman utama untuk kekal konsisten.
   ========================================================================= */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 32px 60px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(145deg, #07152a 0%, #0b2b4b 48%, #087779 100%);
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -200px;
    right: -140px;
    border-radius: 50%;
    border: 1px solid rgba(240, 207, 114, 0.20);
}

.page-hero .eyebrow {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 850;
    letter-spacing: -1px;
    margin: 14px 0 12px;
}

.page-hero p {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 90px;
}

.info-block {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px 36px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

.info-block h2 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.info-block h3 {
    font-size: 16px;
    color: var(--teal-dark);
    margin: 20px 0 8px;
}

.info-block p {
    color: var(--text);
    line-height: 1.8;
    white-space: pre-line;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    background: var(--soft-blue);
}

.category-card.category-highlight {
    background: rgba(240, 207, 114, 0.14);
    border-color: rgba(213, 167, 58, 0.35);
}

.category-card .category-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 8px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--navy);
}

.category-card p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-line;
}

/* ---- Developer credits (pembangun.php) ---- */

.developer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.developer-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.developer-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.developer-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--navy), var(--teal-dark));
}

.developer-card h3 {
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 4px;
}

.developer-card .peranan {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--gold);
    background: rgba(213, 167, 58, 0.12);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.developer-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.developer-note {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ---- Live stats on landing page ---- */

.stat-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.stat-pill .num {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold-light);
    display: block;
}

.stat-pill .label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

@media (max-width: 640px) {
    .info-block { padding: 24px 20px; }
    .page-content { padding: 44px 16px 60px; }
}
