/* ========================================================================== Sistem Analisis Sentimen Komentar TikTok Desain Modern Premium: Glassmorphism, Vibrant Accents & Fluid Typography ========================================================================== */ :root { --bg: #090d16; --bg-gradient: radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 40%), radial-gradient(circle at 85% 85%, rgba(254, 44, 85, 0.10) 0%, transparent 40%), #090d16; --panel: rgba(17, 24, 39, 0.85); --panel-solid: #111827; --panel-hover: rgba(30, 41, 59, 0.75); --border: rgba(255, 255, 255, 0.08); --border-focus: #3b82f6; --ink: #f8fafc; --ink-soft: #94a3b8; --muted: #64748b; --tiktok-red: #fe2c55; --tiktok-cyan: #25f4ee; --blue: #3b82f6; --blue-soft: rgba(59, 130, 246, 0.15); --blue-hover: #2563eb; --green: #10b981; --green-soft: rgba(16, 185, 129, 0.15); --green-glow: rgba(16, 185, 129, 0.3); --red: #f43f5e; --red-soft: rgba(244, 63, 94, 0.15); --red-glow: rgba(244, 63, 94, 0.3); --amber: #f59e0b; --amber-soft: rgba(245, 158, 11, 0.15); --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace; --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25); --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35); --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.5); --shadow-glow-pos: 0 0 20px rgba(16, 185, 129, 0.25); --shadow-glow-neg: 0 0 20px rgba(244, 63, 94, 0.25); } * { box-sizing: border-box; margin: 0; padding: 0; } body { background: var(--bg-gradient); background-attachment: fixed; color: var(--ink); font-family: var(--font-sans); min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; } a { color: var(--blue); text-decoration: none; transition: color 0.2s ease; } a:hover { color: #60a5fa; } :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; } /* Layout Shell */ .shell { max-width: 1200px; margin: 0 auto; padding: 0 24px 60px; } /* Header & Navbar */ [hidden], header.top[hidden] { display: none !important; } header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 28px; } .brand-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .brand { display: flex; align-items: center; gap: 12px; color: var(--ink); } .brand-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); position: relative; overflow: hidden; } .brand-icon::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(37, 244, 238, 0.3), rgba(254, 44, 85, 0.3)); z-index: 0; opacity: 0.5; } .brand-icon svg { position: relative; z-index: 1; } .brand-text { display: flex; flex-direction: column; } .brand-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, #ffffff 40%, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .brand-subtitle { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; } /* Database Status Badge */ .db-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); font-size: 12px; font-weight: 600; color: #34d399; } .db-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulse-dot 2s infinite; } @keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } } /* Navigation Items */ .nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .nav-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; background: transparent; border: 1px solid transparent; transition: all 0.2s ease; } .nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); } .nav-item.on { color: #ffffff; background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.35); box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2); } .user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; } .avatar-circle { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #ffffff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; } .btn-logout { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.2); color: #fb7185; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s ease; } .btn-logout:hover { background: rgba(244, 63, 94, 0.2); border-color: rgba(244, 63, 94, 0.4); color: #ffffff; } /* Typography Headings */ h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; color: #ffffff; } h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; color: #f1f5f9; display: flex; align-items: center; gap: 8px; } .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; } /* Cards & Containers */ .card { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 18px; border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow-md); transition: border-color 0.2s ease, box-shadow 0.2s ease; } .card:hover { border-color: rgba(255, 255, 255, 0.13); } .card + .card { margin-top: 20px; } /* Stats Overview Grid */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; } .stat { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, border-color 0.2s ease; } .stat:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); } .stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .stat-label { color: var(--ink-soft); font-size: 13px; font-weight: 600; } .stat-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(255, 255, 255, 0.05); color: var(--ink-soft); } .stat b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; display: block; } .stat.pos .stat-icon { background: var(--green-soft); color: var(--green); } .stat.pos b { color: #34d399; } .stat.neg .stat-icon { background: var(--red-soft); color: var(--red); } .stat.neg b { color: #fb7185; } /* Grid Layouts */ .grid2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; } /* Tabs for Form Switching */ .tabs-mode { display: flex; gap: 6px; padding: 5px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; } .tab-btn { flex: 1; padding: 10px 14px; background: transparent; border: none; border-radius: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease; } .tab-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); } .tab-btn.active { background: #1e293b; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); } /* Form Controls */ label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #e2e8f0; margin: 14px 0 6px; } .hint-tag { font-size: 11px; font-weight: 500; color: var(--muted); } input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: rgba(15, 23, 42, 0.6); padding: 13px 16px; font: inherit; font-size: 14px; color: #f8fafc; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; } input:focus, textarea:focus { outline: none; border-color: var(--border-focus); background: rgba(15, 23, 42, 0.9); box-shadow: 0 0 0 3px var(--blue-soft); } input::placeholder, textarea::placeholder { color: #475569; } textarea { min-height: 110px; resize: vertical; line-height: 1.6; } /* Quick Fill Suggestions Chips */ .presets-wrap { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; } .preset-chip { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; font-family: inherit; } .preset-chip:hover { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; } .preset-chip.pos:hover { background: var(--green-soft); border-color: var(--green); color: #6ee7b7; } .preset-chip.neg:hover { background: var(--red-soft); border-color: var(--red); color: #fda4af; } .preset-chip.active { background: rgba(37, 244, 238, 0.18); border-color: #25f4ee; color: #25f4ee; box-shadow: 0 0 10px rgba(37, 244, 238, 0.3); } /* Accordion details */ details { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); } summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: #cbd5e1; user-select: none; } summary:hover { color: #ffffff; } /* Buttons */ .btn { width: 100%; margin-top: 18px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px 20px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35); transition: all 0.2s ease; } .btn:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); transform: translateY(-1px); } .btn:active { transform: translateY(0); } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; } .btn-secondary { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); box-shadow: none; } .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; } .chip { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; font-family: inherit; transition: all 0.15s ease; } .chip:hover { border-color: var(--blue); color: #93c5fd; background: rgba(59, 130, 246, 0.1); } .chip.on { background: var(--blue); border-color: var(--blue); color: #ffffff; box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3); } .chip.danger:hover { border-color: var(--red); color: #fb7185; background: rgba(244, 63, 94, 0.1); } /* Alert / Message */ .msg { margin-top: 12px; font-size: 13px; color: #fb7185; min-height: 18px; display: flex; align-items: center; gap: 6px; } .msg.ok { color: #34d399; } /* Recent Analyses List */ .recent-list { display: flex; flex-direction: column; gap: 10px; } .recent-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s ease; } .recent-item:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); transform: translateX(2px); } .recent-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .recent-title { font-weight: 600; font-size: 13.5px; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .recent-date { font-size: 11.5px; color: var(--muted); } .recent-stat { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-align: right; flex-shrink: 0; margin-left: 12px; } /* Empty States */ .empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; } /* ========================================================================== LIVE NLP PLAYGROUND (Uji Kata / Kalimat Langsung) ========================================================================== */ .playground-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 900px) { .playground-box { grid-template-columns: 1fr; } } .verdict-card { background: rgba(0, 0, 0, 0.3); border-radius: 16px; border: 1px solid var(--border); padding: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; } .verdict-badge { font-size: 28px; font-weight: 800; padding: 8px 24px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; } .verdict-badge.POSITIF { background: var(--green-soft); border: 1px solid var(--green); color: #34d399; box-shadow: var(--shadow-glow-pos); } .verdict-badge.NEGATIF { background: var(--red-soft); border: 1px solid var(--red); color: #fb7185; box-shadow: var(--shadow-glow-neg); } .verdict-badge.GAGAL, .verdict-badge.DIANALISIS, .verdict-badge.gagal { background: rgba(245, 158, 11, 0.15); border: 1px solid #f59e0b; color: #fbbf24; box-shadow: 0 0 20px rgba(245, 158, 11, 0.25); } .verdict-badge.FITUR, .verdict-badge.FITUR_TIDAK_DITEMUKAN, .verdict-badge.oov { background: rgba(168, 85, 247, 0.15); border: 1px solid #a855f7; color: #c084fc; box-shadow: 0 0 20px rgba(168, 85, 247, 0.25); } .confidence-text { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; } .confidence-text b { color: #ffffff; font-size: 16px; } /* Dual Confidence Bar */ .dual-bar { width: 100%; height: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; display: flex; overflow: hidden; margin-bottom: 14px; } .dual-bar .bar-pos { background: #10b981; transition: width 0.4s ease; } .dual-bar .bar-neg { background: #f43f5e; transition: width 0.4s ease; } .bar-labels { display: flex; justify-content: space-between; width: 100%; font-size: 12px; font-weight: 600; } .bar-labels .p { color: #34d399; } .bar-labels .n { color: #fb7185; } /* Preprocessing Inspection Box */ .prep-step { background: rgba(15, 23, 42, 0.5); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-top: 14px; } .prep-step-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; } .prep-code { font-family: var(--font-mono); font-size: 13px; color: #93c5fd; word-break: break-all; } /* Dominant N-Gram Features Tags */ .features-cloud { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .feat-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-family: var(--font-mono); border: 1px solid var(--border); } .feat-tag.pos { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; } .feat-tag.neg { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.3); color: #fda4af; } /* History Cards Grid */ .hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; } .hist-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; } .hist-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); } .hist-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #f1f5f9; word-break: break-word; } .date { font-size: 12px; color: var(--muted); margin-bottom: 16px; } .row { display: flex; justify-content: space-between; font-size: 13.5px; margin: 6px 0; color: var(--ink-soft); } .row b { color: #ffffff; } .row .p { color: #34d399; } .row .n { color: #fb7185; } .bar { height: 9px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(255, 255, 255, 0.08); margin: 12px 0 18px; } .bar i { display: block; height: 100%; } .bar .p { background: #10b981; } .bar .n { background: #f43f5e; } .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; } .actions .chip:first-child { flex: 1; text-align: center; } /* Detail View */ .donut-wrap { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; } .donut { position: relative; width: 170px; height: 170px; flex-shrink: 0; } .donut svg { transform: rotate(-90deg); width: 100%; height: 100%; } .donut .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .donut .c b { font-size: 26px; font-weight: 800; color: #ffffff; } .donut .c small { color: var(--muted); font-size: 12px; font-weight: 600; } .legend { display: grid; gap: 12px; font-size: 14px; } .legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; } .url { font-family: var(--font-mono); font-size: 13px; color: #93c5fd; word-break: break-all; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); } .filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; flex-wrap: wrap; } .filters { display: flex; gap: 8px; flex-wrap: wrap; } .table-wrap { overflow-x: auto; margin-top: 8px; } table { width: 100%; border-collapse: collapse; font-size: 13.5px; } th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); } td { padding: 12px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; } tr:hover td { background: rgba(255, 255, 255, 0.02); } td.no { color: var(--muted); font-family: var(--font-mono); width: 50px; } td.t { word-break: break-word; color: #f1f5f9; } td.cleaned-cell { font-family: var(--font-mono); font-size: 12px; color: #94a3b8; word-break: break-word; } td.s { white-space: nowrap; text-align: right; font-weight: 700; font-size: 12px; } .sent-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; } .sent-badge.POSITIF { background: var(--green-soft); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); } .sent-badge.NEGATIF { background: var(--red-soft); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); } .sent-badge.GAGAL, .sent-badge.DIANALISIS, .sent-badge.gagal { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); } .sent-badge.FITUR, .sent-badge.FITUR_TIDAK_DITEMUKAN, .sent-badge.oov { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); } td.s small { display: block; color: var(--muted); font-weight: 500; font-family: var(--font-mono); margin-top: 3px; } .pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; } /* Spinner */ .spin { width: 38px; height: 38px; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto 16px; animation: sp 0.9s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } } /* Auth Page */ .auth-wrapper { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 20px 0; } .auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); } .auth-demo-box { margin-top: 20px; padding: 12px 16px; background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 12px; font-size: 12.5px; color: #93c5fd; display: flex; align-items: center; justify-content: space-between; } .btn-fill-demo { padding: 4px 10px; background: var(--blue); color: #ffffff; border: none; border-radius: 6px; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit; } /* Responsive */ @media (max-width: 880px) { .grid2 { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .donut-wrap { flex-direction: column; align-items: flex-start; } } @media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .shell { padding: 0 16px 40px; } .auth-card { padding: 26px 20px; } } /* ========================================================================== PENGUJIAN MODEL & CONFUSION MATRIX (ADMIN EVALUATION SUITE) ========================================================================== */ .nav-item-admin { position: relative; } .admin-pill { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, rgba(254, 44, 85, 0.25), rgba(37, 244, 238, 0.25)); border: 1px solid rgba(254, 44, 85, 0.45); color: #ffffff; line-height: 1.2; box-shadow: 0 0 12px rgba(254, 44, 85, 0.25); } .nav-item-admin.on .admin-pill { background: linear-gradient(135deg, #fe2c55, #25f4ee); color: #090d16; font-weight: 900; border-color: transparent; } .eval-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; gap: 16px; } .eval-badge-header { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(37, 244, 238, 0.1); border: 1px solid rgba(37, 244, 238, 0.3); color: #25f4ee; font-size: 12px; font-weight: 700; margin-bottom: 8px; } .eval-meta-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .eval-meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--ink-soft); } .eval-meta-chip b { color: var(--ink); } /* 5 Metrics Cards Grid */ .metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; } .metric-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, border-color 0.2s ease; } .metric-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.15); } .metric-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--metric-accent, var(--blue)); } .metric-card.acc { --metric-accent: #3b82f6; } .metric-card.prec { --metric-accent: #10b981; } .metric-card.rec { --metric-accent: #25f4ee; } .metric-card.f1 { --metric-accent: #a855f7; } .metric-card.total { --metric-accent: #f59e0b; } .metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .metric-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; } .metric-icon { font-size: 18px; } .metric-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; } .metric-sub { font-size: 11.5px; color: var(--ink-soft); } /* Confusion Matrix Interactive Grid */ .cm-section-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 24px; } .cm-matrix-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-md); } .cm-container { display: flex; flex-direction: column; align-items: center; margin: 16px 0; } .cm-top-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #38bdf8; margin-bottom: 8px; text-align: center; } .cm-grid-box { display: grid; grid-template-columns: 80px 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 10px; align-items: center; width: 100%; max-width: 480px; } .cm-col-label { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 6px 4px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; } .cm-row-label { text-align: right; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding-right: 10px; } .cm-cell { background: var(--panel-solid); border: 1px solid var(--border); border-radius: 12px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; transition: all 0.2s ease; min-height: 115px; } .cm-cell:hover { transform: scale(1.02); z-index: 2; } .cm-cell.tp { background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.06)); border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12); } .cm-cell.tn { background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.06)); border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12); } .cm-cell.fp { background: linear-gradient(145deg, rgba(244, 63, 94, 0.14), rgba(244, 63, 94, 0.05)); border-color: rgba(244, 63, 94, 0.35); box-shadow: 0 4px 18px rgba(244, 63, 94, 0.1); } .cm-cell.fn { background: linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.05)); border-color: rgba(245, 158, 11, 0.35); box-shadow: 0 4px 18px rgba(245, 158, 11, 0.1); } .cm-cell-badge { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; margin-bottom: 6px; display: inline-block; } .cm-cell.tp .cm-cell-badge, .cm-cell.tn .cm-cell-badge { background: rgba(16, 185, 129, 0.25); color: #34d399; } .cm-cell.fp .cm-cell-badge { background: rgba(244, 63, 94, 0.25); color: #fb7185; } .cm-cell.fn .cm-cell-badge { background: rgba(245, 158, 11, 0.25); color: #fbbf24; } .cm-cell-val { font-size: 32px; font-weight: 900; line-height: 1; color: #ffffff; margin-bottom: 4px; } .cm-cell-pct { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; } .cm-cell-desc { font-size: 11px; color: var(--muted); line-height: 1.2; } /* Formula & Explanation Side Cards */ .cm-formulas { display: flex; flex-direction: column; gap: 12px; } .formula-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; } .formula-card-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); margin-bottom: 4px; } .formula-card-code { font-family: var(--font-mono); background: rgba(0, 0, 0, 0.35); padding: 4px 8px; border-radius: 6px; font-size: 11.5px; color: #38bdf8; display: inline-block; margin: 4px 0; } .formula-card-desc { font-size: 11.5px; color: var(--muted); } /* Classification Report Table */ .report-table-wrap { overflow-x: auto; margin-top: 10px; } .report-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; } .report-table th, .report-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); } .report-table th { background: rgba(255, 255, 255, 0.03); color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; } .report-table tr:hover td { background: rgba(255, 255, 255, 0.02); } .report-table tr.total-row { background: rgba(255, 255, 255, 0.035); font-weight: 700; border-top: 2px solid var(--border); } /* Details Table Controls */ .details-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .search-box-input { background: rgba(17, 24, 39, 0.9); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--ink); width: 240px; } .search-box-input:focus { border-color: var(--blue); outline: none; } .status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; } .status-badge.ok { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); } .status-badge.err { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); } .status-badge.oov { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); } .status-badge.gagal { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); } .matrix-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; } .matrix-tag.TP, .matrix-tag.TN { background: rgba(16, 185, 129, 0.2); color: #34d399; } .matrix-tag.FP { background: rgba(244, 63, 94, 0.2); color: #fb7185; } .matrix-tag.FN { background: rgba(245, 158, 11, 0.2); color: #fbbf24; } .matrix-tag.GAGAL { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px dashed rgba(239, 68, 68, 0.4); } /* Upload Dropzone */ .dropzone-box { border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 14px; padding: 30px 20px; text-align: center; cursor: pointer; background: rgba(255, 255, 255, 0.02); transition: all 0.2s ease; margin: 12px 0; } .dropzone-box:hover, .dropzone-box.dragover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.06); } .dropzone-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(59, 130, 246, 0.12); color: #60a5fa; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; } /* Tampilan List Mengalir ke Bawah (Stream Card) */ .stream-cards-list { display: flex; flex-direction: column; gap: 12px; } .sample-stream-card { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color 0.15s ease, background 0.15s ease; } .sample-stream-card:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.18); } .sample-stream-card.ok { border-left: 4px solid #10b981; } .sample-stream-card.err { border-left: 4px solid #f43f5e; background: rgba(244, 63, 94, 0.03); } .ssc-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); } .ssc-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; } .ssc-body { display: flex; flex-direction: column; gap: 8px; } .ssc-row { display: flex; flex-direction: column; gap: 3px; } .ssc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .ssc-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; word-break: break-word; } .ssc-text.clean { font-family: var(--font-mono); font-size: 12.5px; color: #38bdf8; background: rgba(56, 189, 248, 0.06); padding: 6px 10px; border-radius: 6px; border: 1px solid rgba(56, 189, 248, 0.15); } /* Print Only Section */ .print-doc-header, .print-all-samples { display: none; } /* ========================================== PRINT / SAVE AS PDF STYLESHEET ========================================== */ @media print { @page { size: A4 portrait; margin: 12mm 14mm; } body { background: #ffffff !important; color: #111827 !important; font-size: 10.5pt !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } /* Sembunyikan elemen UI interaktif dari dokumen cetak */ header.top, .topbar, #topbar, .tabs-mode, .actions-eval, .btn-print, #btnPrintReport, #btnExportCsv, #fEvalTiktok, #evalVerificationSection, #evalPlaceholderCard, .details-toolbar, #evalDetailFilters, #evalDetailPager, .table-wrap, #evalDetailTableContent, #btnLogout, #dbStatusBadge, .eval-header, .brand-icon, .view-toggle-wrap, .filters { display: none !important; } .shell { max-width: 100% !important; padding: 0 !important; margin: 0 !important; } /* Header Resmi Dokumen Cetak */ .print-doc-header { display: block !important; border-bottom: 2px solid #111827 !important; padding-bottom: 8px !important; margin-bottom: 16px !important; } .print-doc-header h2 { font-size: 16pt !important; font-weight: 800 !important; color: #111827 !important; margin: 0 0 4px 0 !important; } .print-doc-header p { font-size: 9.5pt !important; color: #4b5563 !important; margin: 0 !important; } /* Kartu Metrik di Dokumen Cetak */ .card, .cm-matrix-card { background: #ffffff !important; border: 1px solid #d1d5db !important; color: #111827 !important; box-shadow: none !important; margin-bottom: 14px !important; padding: 12px 16px !important; page-break-inside: avoid; break-inside: avoid; } .metrics-grid { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 8px !important; margin-bottom: 14px !important; page-break-inside: avoid; break-inside: avoid; } .metric-card { background: #f9fafb !important; border: 1px solid #e5e7eb !important; color: #111827 !important; box-shadow: none !important; padding: 8px 10px !important; } .metric-card::before { display: none !important; } .metric-value { color: #111827 !important; font-size: 18pt !important; font-weight: 800 !important; } .metric-label, .metric-sub { color: #4b5563 !important; font-size: 8pt !important; } /* Confusion Matrix Heatmap di Dokumen Cetak */ .cm-section-wrap { display: grid !important; grid-template-columns: 1.2fr 1fr !important; gap: 12px !important; margin-bottom: 14px !important; page-break-inside: avoid; break-inside: avoid; } .cm-cell { background: #ffffff !important; border: 1px solid #d1d5db !important; color: #111827 !important; padding: 8px !important; min-height: 70px !important; } .cm-cell.tp, .cm-cell.tn { background: #ecfdf5 !important; border-color: #10b981 !important; } .cm-cell.fp, .cm-cell.fn { background: #fff1f2 !important; border-color: #f43f5e !important; } .cm-cell-val { color: #111827 !important; font-size: 16pt !important; } .cm-cell-badge { color: #4b5563 !important; font-size: 7.5pt !important; } .cm-cell-pct, .cm-cell-desc { color: #374151 !important; font-size: 8pt !important; } .formula-card { background: #f9fafb !important; border: 1px solid #e5e7eb !important; color: #111827 !important; padding: 6px 10px !important; margin-bottom: 6px !important; } .formula-card-title span, .formula-card-code, .formula-card-desc { color: #111827 !important; font-size: 8pt !important; } /* Classification Report Table Cetak */ .report-table-wrap { overflow: visible !important; } .report-table { width: 100% !important; border-collapse: collapse !important; } .report-table th, .report-table td { color: #111827 !important; border: 1px solid #e5e7eb !important; padding: 5px 8px !important; font-size: 8.5pt !important; } .report-table th { background: #f3f4f6 !important; } /* ========================================================================= DAFTAR RINCIAN PREDIKSI MENGALIR KE BAWAH (PRINT FORMAT DILAPORKAN UTUH) ========================================================================= */ .print-all-samples { display: block !important; margin-top: 16px !important; } .print-section-header { border-bottom: 2px solid #111827 !important; padding-bottom: 6px !important; margin-bottom: 12px !important; } .print-section-header h3 { color: #111827 !important; font-size: 13pt !important; margin: 0 0 3px 0 !important; } .print-section-header p { color: #4b5563 !important; font-size: 8.5pt !important; margin: 0 !important; } .print-samples-list { display: flex !important; flex-direction: column !important; gap: 8px !important; } .print-sample-card { background: #ffffff !important; border: 1px solid #d1d5db !important; border-radius: 6px !important; padding: 8px 12px !important; page-break-inside: avoid !important; break-inside: avoid !important; } .print-sample-card.ok { border-left: 4px solid #10b981 !important; } .print-sample-card.err { border-left: 4px solid #ef4444 !important; background: #fffafa !important; } .psc-header { display: flex !important; justify-content: space-between !important; align-items: center !important; border-bottom: 1px solid #f3f4f6 !important; padding-bottom: 4px !important; margin-bottom: 6px !important; } .psc-no { font-weight: 800 !important; font-size: 10pt !important; color: #111827 !important; } .psc-badges { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 8.5pt !important; } .psc-tag-act b, .psc-tag-pred b { color: #111827 !important; } .psc-status.ok { color: #059669 !important; font-weight: 700 !important; } .psc-status.err { color: #dc2626 !important; font-weight: 700 !important; } .psc-conf { color: #4b5563 !important; } .psc-body { display: flex !important; flex-direction: column !important; gap: 4px !important; } .psc-row { display: flex !important; flex-direction: column !important; gap: 1px !important; } .psc-lbl { font-size: 7.5pt !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; color: #6b7280 !important; } .psc-val { font-size: 9pt !important; color: #1f2937 !important; line-height: 1.4 !important; word-break: break-word !important; white-space: normal !important; } .psc-val.prep { font-family: monospace !important; font-size: 8.5pt !important; color: #374151 !important; background: #f9fafb !important; padding: 3px 6px !important; border-radius: 4px !important; border: 1px solid #f3f4f6 !important; } } @media (max-width: 1024px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } .cm-section-wrap { grid-template-columns: 1fr; } } @media (max-width: 640px) { .metrics-grid { grid-template-columns: 1fr; } .cm-grid-box { grid-template-columns: 60px 1fr 1fr; } .cm-cell-val { font-size: 24px; } } /* ========================================================================== Card Kesimpulan Analisis Cyberbullying (Tarik Kesimpulan) ========================================================================== */ .conclusion-card { position: relative; overflow: hidden; border-radius: 16px; padding: 24px; background: var(--panel); border: 1px solid var(--border); transition: all 0.3s ease; } .conclusion-card.bullying { border-color: rgba(244, 63, 94, 0.4); background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(17, 24, 39, 0.95) 75%); box-shadow: 0 8px 32px -4px rgba(244, 63, 94, 0.25); } .conclusion-card.safe { border-color: rgba(16, 185, 129, 0.4); background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(17, 24, 39, 0.95) 75%); box-shadow: 0 8px 32px -4px rgba(16, 185, 129, 0.25); } .conclusion-card.neutral { border-color: rgba(245, 158, 11, 0.4); background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(17, 24, 39, 0.95) 75%); box-shadow: 0 8px 32px -4px rgba(245, 158, 11, 0.2); } .conclusion-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); } .conclusion-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; } .conclusion-badge.bullying { background: rgba(244, 63, 94, 0.22); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.55); box-shadow: 0 0 16px rgba(244, 63, 94, 0.35); } .conclusion-badge.safe { background: rgba(16, 185, 129, 0.22); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.55); box-shadow: 0 0 16px rgba(16, 185, 129, 0.35); } .conclusion-badge.neutral { background: rgba(245, 158, 11, 0.22); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.55); } .chip-copy { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--ink); padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .chip-copy:hover { background: rgba(59, 130, 246, 0.2); border-color: var(--blue); color: #93c5fd; transform: translateY(-1px); } .conclusion-metric { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; } .cm-stat { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; } .cm-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .cm-val { font-size: 15.5px; font-weight: 700; color: #ffffff; } .cm-val.pos { color: #34d399; } .cm-val.neg { color: #fb7185; } .conclusion-text-box { background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 18px 20px; } .conclusion-text-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; } .conclusion-narrative { font-size: 14px; line-height: 1.7; color: #e2e8f0; margin: 0; } .conclusion-narrative b { color: #ffffff; } /* History Card Conclusion Badge */ .hist-conclusion { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; font-size: 12px; margin-bottom: 14px; width: 100%; } .hist-conclusion.bullying { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.3); color: #fb7185; } .hist-conclusion.safe { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; } .hist-conclusion.neutral { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; } .hist-conclusion .hc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .hist-conclusion.bullying .hc-dot { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; } .hist-conclusion.safe .hc-dot { background: #10b981; box-shadow: 0 0 8px #10b981; } .hist-conclusion.neutral .hc-dot { background: #f59e0b; } /* Playground Verdict Conclusion Subtitle */ .play-conclusion-sub { margin-top: 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; font-weight: 700; letter-spacing: 0.02em; } .play-conclusion-sub.neg { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); box-shadow: 0 0 12px rgba(244, 63, 94, 0.2); } .play-conclusion-sub.pos { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); box-shadow: 0 0 12px rgba(16, 185, 129, 0.2); }