body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #151515; 
    color: #eaeaea;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* TUKAR WARNA HIGHLIGHT TEKS */
::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }
.light ::selection { background: rgba(0, 0, 0, 0.2); color: #000; }

/* NAVBAR */
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; top: 0; z-index: 1000;
    background: #151515; transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled { backdrop-filter: blur(12px); background: rgba(21, 21, 21, 0.85); }
.navContainer { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; max-width: 1400px; margin: 0 auto; }
.navBrand { display: flex; align-items: center; gap: 15px; flex: 1; }
.mobile-menu-btn { display: none !important; } 

.logoLink { display: flex; align-items: center; text-decoration: none; }
.logoImg { height: 35px; width: 35px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); object-fit: cover; object-position: center top; transition: transform 0.3s ease, border-color 0.3s; }
.logoLink:hover .logoImg { transform: scale(1.05); border-color: rgba(255, 255, 255, 0.8); }

.navLeft { display: flex; justify-content: center; gap: 20px; position: relative; flex: 2; }
.navLink { text-decoration: none; color: #eaeaea; font-weight: 300; font-size: 14px; line-height: 23px; letter-spacing: 2px; padding-bottom: 6px; white-space: nowrap; text-transform: uppercase; position: relative; transition: color 0.3s ease; }
.navLink::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -1px; left: 0; background-color: #ffffff; transition: width 0.3s ease; }
.navLink:hover::after, .navLink.active::after { width: 100%; }
.navLink:hover, .navLink.active { color: #ffffff; }
.navIndicator { display: none; }

.navRight { display: flex; justify-content: flex-end; align-items: center; gap: 15px; flex: 1; }
.navRight a { font-size: 16px; color: #eaeaea; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-decoration: none; display: inline-block; }
.navRight a:hover { color: #fff; transform: translateY(-3px); }

/* REKA LETAK (LAYOUT) - UTAMA */
.main-content { display: flex; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 40px; gap: 120px; min-height: 85vh; }
.left-col { flex: 0 1 auto; display: flex; flex-direction: column; text-align: left; }
.right-col { flex: 0 1 500px; max-width: 500px; display: flex; flex-direction: column; gap: 40px;} 

/* HERO & TAJUK BESAR */
.bigTitle { margin: 0; cursor: default; }
.bigTitle span { font-family: 'Montserrat', sans-serif; letter-spacing: 1px; display: block; opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.cikgu { font-weight: 100; font-size: 128px; line-height: 105px; letter-spacing: 2px; animation: revealText 1s ease 0.1s forwards; }
.naim { font-weight: 800; font-size: 128px; line-height: 105px; letter-spacing: -2px; animation: revealText 1s ease 0.3s forwards; }
.bigTitle:hover .cikgu { letter-spacing: 6px; text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); color: #ffffff; }
.bigTitle:hover .naim { transform: translateY(-5px); text-shadow: 0 15px 30px rgba(255, 255, 255, 0.2); color: #ffffff; }

.subtitle { font-weight: 300; font-size: 23px; line-height: 30px; margin-top: 15px; color: #eaeaea; transition: color 0.3s ease; }

.intro-card { transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0.6; cursor: default; border-left: 0px solid #ffffff; padding-left: 0; }
.intro-card:hover { opacity: 1; transform: translateX(10px); border-left: 2px solid #ffffff; padding-left: 15px; }
.intro-card h2 { font-weight: 300; font-size: 29px; line-height: 43px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 10px; margin-bottom: 25px; letter-spacing: 1px; text-transform: uppercase; transition: letter-spacing 0.4s ease, color 0.4s ease, border-color 0.3s ease; }
.intro-card:hover h2 { letter-spacing: 3px; color: #ffffff; }
.intro-card p { font-weight: 300; font-size: 19px; line-height: 22px; color: #d6d6d6; text-align: justify; transition: color 0.3s ease; }

/* DASHBOARD LINEAR (LATIHAN) & DASHBOARD BORANG RPI */
.main-content-dashboard { max-width: 1100px; margin: 60px auto; padding: 0 40px; display: flex; flex-direction: column; gap: 40px; }
.dashboard-header { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 30px; transition: border-color 0.3s; }
.dashboard-table { background: #1c1c1c; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }

.table-header, .table-row { display: grid; grid-template-columns: 3fr 1fr 1.5fr 1.5fr 0.5fr; align-items: center; padding: 12px 20px; }
.table-header { color: #888; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-weight: 400; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; transition: border-color 0.3s, color 0.3s; }
.table-group { border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: border-color 0.3s; }
.group-title { padding: 16px 20px 8px 20px; font-weight: 600; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.table-row { text-decoration: none; color: #d1d1d1; border-bottom: 1px solid rgba(255, 255, 255, 0.03); transition: background 0.2s, color 0.3s; }
.table-row:hover { background: rgba(255, 255, 255, 0.05); }

.col-name { display: flex; align-items: center; gap: 10px; font-weight: 400; transition: transform 0.3s ease; }
.table-row:hover .col-name { transform: translateX(6px); }
.col-name.indent { padding-left: 24px; position: relative; }
.col-name.indent::before { content: ''; position: absolute; left: 8px; top: -15px; bottom: 50%; width: 1px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s;}
.col-name.indent::after { content: ''; position: absolute; left: 8px; top: 50%; width: 10px; height: 1px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s;}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.on-track { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.badge.at-risk { color: #facc15; background: rgba(250, 204, 21, 0.1); }

.col-progress { display: flex; align-items: center; gap: 10px; }
.progress-bar { height: 4px; width: 60px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; transition: background 0.3s; }
.progress-bar .fill { height: 100%; background: #4ade80; border-radius: 2px; }

.activity-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.activity-bars::before, .activity-bars::after, .activity-bars { content: ''; width: 3px; background: #555; border-radius: 1px; transition: background 0.3s;}
.activity-bars.high::before, .activity-bars.high, .activity-bars.high::after { background: #4ade80; }
.activity-bars.med::before, .activity-bars.med { background: #facc15; }

.action-icon { color: #888; font-size: 14px; transition: all 0.2s ease; display: inline-block; }
.table-row:hover .action-icon { color: #fff; transform: scale(1.2); }

/* ANIMASI */
.show { opacity: 0; transform: translateY(20px); animation: revealText 1s ease forwards; }
@keyframes revealText { to { opacity: 1; transform: translateY(0); } }

/* FOOTER */
footer { position: fixed; bottom: 20px; left: 20px; z-index: 1000; opacity: 0.5; display: flex; flex-direction: column; gap: 2px; transition: color 0.3s ease; }
.copyright { font-size: 10px; font-weight: 300; letter-spacing: 1px; }
.inspired { font-size: 7.5px; font-weight: 300; letter-spacing: 0.5px; opacity: 0.8; } /* Kod baru untuk kecilkan font */

/* BOTTOM NAVIGATION BAR (APP-LIKE UI) */
.bottom-nav { display: none; }

/* LIGHT MODE */
.light { background: #f4f4f4; color: #111; }
.light .navbar { background: #f4f4f4; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.light .navbar.scrolled { background: rgba(244, 244, 244, 0.9); }
.light .navLink, .light .navRight a { color: #555; }
.light .navLink:hover, .light .navLink.active { color: #111; }
.light .navRight a:hover { color: #111; }
.light .navLink::after { background-color: #111; }
.light .logoImg { border-color: rgba(0, 0, 0, 0.2); }
.light .logoLink:hover .logoImg { border-color: rgba(0, 0, 0, 0.8); }
.light .bigTitle:hover .cikgu, .light .bigTitle:hover .naim { color: #111; text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
.light .subtitle { color: #444; }
.light .intro-card p { color: #555; }
.light .intro-card h2 { border-bottom: 1px solid rgba(0, 0, 0, 0.1); color: #333; }
.light .intro-card:hover { border-left: 2px solid #111; }
.light .intro-card:hover h2 { color: #111; }
.light .dashboard-header { border-bottom: 1px solid rgba(0,0,0,0.1); }
.light .dashboard-table { background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.light .table-header { border-bottom: 1px solid rgba(0,0,0,0.05); color: #777; }
.light .table-group { border-bottom: 1px solid rgba(0,0,0,0.05); }
.light .group-title { color: #111; }
.light .table-row { color: #444; border-bottom: 1px solid rgba(0,0,0,0.03); }
.light .table-row:hover { background: #f9f9f9; color: #111; }
.light .col-name.indent::before, .light .col-name.indent::after { background: rgba(0,0,0,0.1); }
.light .progress-bar { background: rgba(0, 0, 0, 0.1); }
.light .activity-bars::before, .light .activity-bars::after, .light .activity-bars { background: #ccc; }
.light .table-row:hover .action-icon { color: #111; }

/* Borang E-RPI Light Mode */
.light .kategori-box { background: #ffffff; border: 1px solid #e0e0e0; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.light .kategori-box h3 { color: #111 !important; border-bottom: 1px solid #ddd !important; }
.light .form-label { color: #333 !important; }
.light .label-no { color: #007bff !important; }
.light .box-input { background: #fdfdfd; color: #111; border: 1px solid #ccc; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }
.light .box-input:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0,123,255,0.2); }
.light .box-input[readonly] { background: #f0f0f0; color: #666; border-color: #ddd; }
.light input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0); }
.light .rs-link-box { background: rgba(111, 66, 193, 0.05) !important; border-color: #6f42c1 !important; }
.light .rs-link-box .form-label { color: #6f42c1 !important; }
.light .rs-link-box select { background: #fff !important; color: #111 !important; border: 1px solid #6f42c1 !important; }
.light .btn-back { color: #555; border-bottom: 1px solid #ccc; }
.light .btn-back:hover { color: #111; border-color: #111; }
.light .btn-submit { background: #007bff; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); }
.light .btn-submit:hover { background: #0056b3; box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); }
.light footer { color: #111; }

/* ==========================================================
   MOBILE RESPONSIVE
   ========================================================== */
@media(max-width: 768px) {
    .navContainer { padding: 10px 20px; display: flex; justify-content: space-between; }
    .navBrand { flex: unset; gap: 10px; }
    .navLeft { display: none !important; } 
    .logoImg { height: 30px; width: 30px; }
    .navRight { flex: unset; gap: 15px; }

    body { padding-bottom: 85px; }
    footer { bottom: 85px; } 
    
    .main-content { flex-direction: column; align-items: flex-start; margin: 40px auto; padding: 0 25px; gap: 0; min-height: auto; }
    .left-col { margin-bottom: 40px; } 
    .right-col { max-width: 100%; gap: 30px; }
    .cikgu, .naim { font-size: 67px; line-height: 48px; }
    .subtitle { font-size: 13px; line-height: 19px; }
    .intro-card h2 { font-size: 14px; line-height: 22px; margin-bottom: 12px; }
    .intro-card p { font-size: 10.5px; line-height: 18px; }
    .intro-card:hover { transform: translateX(5px); } 
    
    .main-content-dashboard { padding: 0 20px; margin: 30px auto; }
    .table-row { grid-template-columns: 1fr auto; padding: 15px; }
    .col-name { grid-column: 1 / -1; font-size: 13px; margin-bottom: 8px; }
    .col-target { grid-column: 1; font-size: 11px; }
    .col-status { grid-column: 2; justify-self: end; }
    .col-progress, .col-activity { display: none; }

    /* Gaya Bottom Navigation Bar (Ala App) */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(21, 21, 21, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-around;
        padding: 12px 0 18px 0;
        z-index: 999999;
    }
    .light .bottom-nav { background: rgba(244, 244, 244, 0.95); border-top: 1px solid rgba(0, 0, 0, 0.1); }
    
    .b-nav-item {
        display: flex; flex-direction: column; align-items: center; text-decoration: none;
        color: #777; font-size: 10px; font-weight: 600; gap: 5px; transition: all 0.3s ease; flex: 1;
    }
    .b-nav-item i { font-size: 18px; margin-bottom: 2px; }
    .b-nav-item.active, .b-nav-item:hover { color: #ffffff; transform: translateY(-2px); }
    .light .b-nav-item.active, .light .b-nav-item:hover { color: #111111; }
}
