/* JKNS Internal Portal Hub - Futuristic Deep Emerald Theme */

@keyframes jknsFadeUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes jknsNeonPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.6); }
}

@keyframes jknsFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* =========================================================
   1. LANDING PAGE (SELAMAT DATANG) 
   ========================================================= */
.jkns-landing-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at top center, #064e3b 0%, #022c22 50%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    font-family: 'Consolas', 'Segoe UI', Roboto, sans-serif;
    color: #ecfdf5;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Subtle tech grid background */
.jkns-landing-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.jkns-landing-container {
    max-width: 680px;
    width: 100%;
    text-align: center;
    animation: jknsFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 1;
}

.jkns-crest-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(2, 44, 34, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 20px;
    margin-bottom: 20px;
    animation: jknsFloat 4s ease-in-out infinite, jknsNeonPulse 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}
.jkns-crest-badge svg { color: #34d399; }

.jkns-gov-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #6ee7b7;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.jkns-welcome-heading {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #ffffff 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.jkns-welcome-subheading {
    font-size: 15px;
    color: #a7f3d0;
    max-width: 520px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.jkns-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.jkns-badge-pill {
    background: rgba(6, 78, 59, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.jkns-auth-card {
    background: rgba(2, 44, 34, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 12px;
    padding: 35px 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    margin-bottom: 24px;
    position: relative;
}

/* Glowing top edge for tech card */
.jkns-auth-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 5%; right: 5%; height: 1px;
    background: linear-gradient(90deg, transparent, #34d399, transparent);
}

.jkns-auth-desc {
    font-size: 13px;
    color: #d1fae5;
    margin-bottom: 20px;
}

.jkns-google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    min-height: 48px;
}

.jkns-warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
    font-size: 12px;
    padding: 12px 16px;
    border-radius: 6px;
}

.jkns-feedback-msg { margin-top: 14px; padding: 10px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.jkns-feedback-msg.error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.jkns-feedback-msg.success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }

.jkns-secondary-action { font-size: 12px; color: #94a3b8; margin-bottom: 20px; }
.jkns-secondary-action p { margin: 0 0 4px 0; }
.jkns-unlisted-link { color: #10b981; text-decoration: none; font-weight: 700; transition: all 0.2s ease; }
.jkns-unlisted-link:hover { color: #34d399; text-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.jkns-footer-copy { font-size: 11px; color: #475569; }

/* =========================================================
   2. DASHBOARD MODULAR CARDS (DARK TECH THEME)
   ========================================================= */
.jkns-dashboard-wrapper {
    background-color: #020617;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
    padding-bottom: 40px;
    background-image: radial-gradient(circle at right top, rgba(6, 78, 59, 0.15) 0%, transparent 50%);
}

.jkns-dash-header {
    background: rgba(2, 44, 34, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.jkns-dash-brand { display: flex; align-items: center; gap: 12px; }
.jkns-dash-logo { font-size: 28px; line-height: 1; filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.5)); }
.jkns-dash-title { font-size: 16px; font-weight: 800; margin: 0; color: #ecfdf5; letter-spacing: 0.5px; }
.jkns-dash-subtitle { font-size: 11px; color: #6ee7b7; text-transform: uppercase; letter-spacing: 1px; }

.jkns-user-profile-widget { display: flex; align-items: center; gap: 12px; }
.jkns-user-avatar { width: 38px; height: 38px; border-radius: 8px; border: 1px solid #10b981; }
.jkns-user-avatar-fallback { width: 38px; height: 38px; border-radius: 8px; background: #064e3b; color: #34d399; display: flex; align-items: center; justify-content: center; font-weight: 800; border: 1px solid #10b981; }

.jkns-user-name { font-size: 13px; font-weight: 700; color: #f8fafc; }
.jkns-user-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.jkns-role-pill { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.5); color: #6ee7b7; padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.jkns-email-text { font-size: 11px; color: #94a3b8; }

.jkns-btn-logout {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}
.jkns-btn-logout:hover { background: rgba(239, 68, 68, 0.15); border-color: #ef4444; color: #fecaca; box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }

.jkns-dash-body { max-width: 1200px; margin: 28px auto 0 auto; padding: 0 20px; }

.jkns-welcome-banner {
    background: rgba(6, 78, 59, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.jkns-welcome-banner h3 { margin: 0 0 4px 0; font-size: 17px; font-weight: 800; color: #34d399; letter-spacing: 0.5px; }
.jkns-welcome-banner p { margin: 0; font-size: 13px; color: #cbd5e1; }
.jkns-active-count { font-size: 12px; color: #022c22; background: #34d399; padding: 4px 12px; border-radius: 4px; font-weight: 800; }

/* Dashboard Cards - Tech Glassmorphism */
.jkns-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }

.jkns-system-card {
    background: rgba(2, 44, 34, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-top: 3px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.jkns-system-card::after {
    content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.jkns-system-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
}
.jkns-system-card:hover::after { opacity: 1; }

.jkns-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; position: relative; z-index: 2; }
.jkns-card-icon-wrap { width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(16, 185, 129, 0.3); display: flex; align-items: center; justify-content: center; background: rgba(6, 78, 59, 0.5); }
.jkns-card-icon-wrap svg { color: #34d399 !important; }
.jkns-card-badge { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.5px; }

.jkns-card-title { font-size: 16px; font-weight: 800; color: #ecfdf5; margin: 0 0 8px 0; letter-spacing: 0.5px; position: relative; z-index: 2; }
.jkns-card-desc { font-size: 12.5px; color: #94a3b8; line-height: 1.5; margin: 0 0 20px 0; flex-grow: 1; position: relative; z-index: 2; }

.jkns-btn-card-action {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 12px; font-weight: 700; padding: 9px 16px; border-radius: 4px; text-decoration: none; transition: all 0.2s ease;
    text-transform: uppercase; letter-spacing: 1px; position: relative; z-index: 2;
}
.jkns-btn-card-action:hover { background: #10b981; color: #022c22; border-color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }

.jkns-empty-state-card { background: transparent; border: 2px dashed rgba(16, 185, 129, 0.3); border-radius: 8px; padding: 48px 24px; text-align: center; max-width: 580px; margin: 30px auto; }
.jkns-empty-icon { font-size: 42px; filter: grayscale(1) sepia(1) hue-rotate(130deg) brightness(1.5); margin-bottom: 12px; }
.jkns-empty-state-card h3 { margin: 0 0 6px 0; font-size: 18px; color: #34d399; }
.jkns-empty-sub { font-size: 12.5px; color: #94a3b8; line-height: 1.5; margin-top: 10px; }