/* Global CSS with Security Layer for Bank Data Akreditasi 2028 - SMA GIS 2 */
:root {
    --primary: #065f46;
    --primary-dark: #064e3b;
    --primary-light: #10b981;
    --primary-subtle: #ecfdf5;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #d97706;
    --accent-light: #fef3c7;
    --accent-blue: #0284c7;
    --accent-blue-subtle: #e0f2fe;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-focus: #059669;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.07);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ========================================================================== */
/* FULLSCREEN SECURITY LOCK SHIELD */
/* ========================================================================== */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #064e3b 0%, #0f172a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lock-overlay.unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.lock-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lock-icon-circle {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(6, 95, 70, 0.35);
}
.lock-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}
.lock-sub {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}
.pin-input-group {
    position: relative;
    margin-bottom: 18px;
}
.pin-input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 800;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--secondary);
    outline: none;
    transition: var(--transition);
}
.pin-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.btn-toggle-pin {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
}
.btn-toggle-pin:hover { color: var(--secondary); }

.pin-error-msg {
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 14px;
    display: none;
}
.pin-lockout-msg {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: none;
}
.pin-hint {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 16px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========================================================================== */
/* TOP BANNER & HEADER */
/* ========================================================================== */
.top-banner {
    background: linear-gradient(90deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: white;
    padding: 8px 24px;
    font-size: 0.84rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 8px;
}
.top-banner-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.brand-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}
.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.brand-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
    overflow-x: auto;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.status-pill.connected {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.status-pill.local {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.btn-lock {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-lock:hover {
    background: #ef4444;
    color: white;
}

/* ========================================================================== */
/* MAIN CONTENT & HERO */
/* ========================================================================== */
main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    flex: 1;
    width: 100%;
}

.hero-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 55%, #047857 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 960px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.hero-content h2 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}
.hero-content p {
    font-size: 0.92rem;
    color: #d1fae5;
    line-height: 1.5;
    margin-bottom: 18px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.hero-stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}
.hero-stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}
.hero-stat-label {
    font-size: 0.76rem;
    color: #a7f3d0;
    font-weight: 500;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-subtitle {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 5 Folders Grid */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.folder-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.folder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.folder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}
.folder-card.komp1::before { background: #3b82f6; }
.folder-card.komp2::before { background: #8b5cf6; }
.folder-card.komp3::before { background: #10b981; }
.folder-card.komp4::before { background: #f59e0b; }
.folder-card.pilar-gis::before { background: #065f46; }

.folder-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.folder-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.komp1 .folder-icon-box { background: #eff6ff; color: #2563eb; }
.komp2 .folder-icon-box { background: #f5f3ff; color: #7c3aed; }
.komp3 .folder-icon-box { background: #ecfdf5; color: #059669; }
.komp4 .folder-icon-box { background: #fffbeb; color: #d97706; }
.pilar-gis .folder-icon-box { background: #ecfdf5; color: #065f46; }

.folder-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    color: var(--text-muted);
}
.folder-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
    line-height: 1.4;
}
.folder-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 14px;
}
.folder-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    border-top: 1px dashed var(--border);
    padding-top: 10px;
}

/* Tab Views */
.tab-view {
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}
.tab-view.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card & Forms */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
}

.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(6, 95, 70, 0.2);
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { background: #cbd5e1; cursor: not-allowed; }

.btn-action {
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-action:hover { background: #e2e8f0; }
.btn-action.delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
}
@media (max-width: 1080px) {
    .activity-grid { grid-template-columns: 1fr; }
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}
.custom-table th {
    background: #f8fafc;
    color: var(--secondary);
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.custom-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.custom-table tr:hover { background: #f8fafc; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    margin: 2px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.doc-badge.yes {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.doc-badge.no {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    text-decoration: line-through;
}

/* Teacher Grid */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.teacher-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition);
    position: relative;
}
.teacher-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.teacher-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.teacher-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.teacher-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}
.teacher-subjects {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}
.teacher-checklist {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 10px;
}
.teacher-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 5px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.teacher-check-row:last-child { border-bottom: none; }

/* Naming Generator */
.generator-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}
.generator-result {
    background: #0f172a;
    color: #38bdf8;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    border: 1px solid #1e293b;
    word-break: break-all;
}
.btn-copy {
    background: #0284c7;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    margin-left: 10px;
}
.btn-copy:hover { background: #0369a1; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-xl);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.modal-close:hover { background: #e2e8f0; }

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.25s ease-out;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast.success { border-left: 4px solid #10b981; }
.toast.info { border-left: 4px solid #0284c7; }
.toast.warning { border-left: 4px solid #f59e0b; }

footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    margin-top: auto;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}