/* style.css — E-recruitment (tema modern biru–hijau) */ :root { --blue: #2563eb; --blue-dark: #1d4ed8; --blue-soft: #eff6ff; --green: #10b981; --green-dark: #059669; --green-soft: #ecfdf5; --grad: linear-gradient(135deg, #2563eb 0%, #10b981 100%); --grad-soft: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%); --ink: #0f172a; --muted: #64748b; --line: #e5eaf1; --card: #ffffff; --bg: #f6f9fc; --red: #dc2626; --amber: #d97706; --radius: 16px; --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05); --shadow: 0 4px 16px rgba(15, 23, 42, .07); --shadow-lg: 0 18px 48px rgba(15, 23, 42, .20); --ring: 0 0 0 3px rgba(37, 99, 235, .18); } * { box-sizing: border-box; } body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); font-size: 14px; line-height: 1.55; background: radial-gradient(1100px 520px at -10% -12%, #dbeafe 0%, transparent 55%), radial-gradient(900px 480px at 112% -6%, #d1fae5 0%, transparent 52%), var(--bg); background-attachment: fixed; -webkit-font-smoothing: antialiased; } a { color: var(--blue); text-decoration: none; } h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; } p { margin: 0 0 .75rem; } .muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; } .right { text-align: right; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 18px; } .mb2 { margin-bottom: 16px; } .hidden { display: none !important; } code { background: var(--grad-soft); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: 12px; } /* ---------- Navbar ---------- */ .navbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); } .navbar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); } .nav-inner { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); } .logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; box-shadow: 0 8px 18px rgba(37, 99, 235, .32); flex: none; } .logo-text { font-size: 16.5px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: .2px; } .nav-links { display: flex; gap: 4px; flex-wrap: wrap; } .nav-links a { color: #475569; padding: 8px 14px; border-radius: 10px; font-weight: 600; transition: background .16s, color .16s, box-shadow .16s, transform .16s; } .nav-links a:hover { background: var(--blue-soft); color: var(--blue-dark); } .nav-links a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); } /* ---------- Layout ---------- */ .container { max-width: 1160px; margin: 0 auto; padding: 26px 20px 70px; } .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; } .page-head h1 { font-size: 24px; font-weight: 800; } .page-head h1::after { content: ""; display: block; width: 46px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--grad); } .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; transition: box-shadow .2s; } .card + .card { margin-top: 18px; } .card > h3 { font-size: 17px; } .grid { display: grid; gap: 14px; } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } /* ---------- Summary ---------- */ .summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; margin-bottom: 20px; } .stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 22px; box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; } .stat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .12); } .stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent, var(--grad)); } .stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .stat .lbl { color: var(--muted); font-size: 12px; font-weight: 600; } /* ---------- Toolbar ---------- */ .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; padding: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); } .toolbar .grow { flex: 1 1 220px; } /* ---------- Forms ---------- */ label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 5px; color: #334155; } input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="date"], input[type="time"], input[type="number"], input[type="color"], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; } input[type="color"] { padding: 4px; height: 42px; } input::placeholder, textarea::placeholder { color: #9aa8bb; } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); } textarea { resize: vertical; min-height: 80px; } .field { margin-bottom: 14px; } .field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; } .field-error { color: var(--red); font-size: 12px; margin-top: 4px; } /* ---------- Buttons ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: #334155; padding: 10px 16px; border-radius: 11px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s; } .btn:hover { background: #f8fafc; border-color: #d5dee9; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; } .btn:focus-visible { outline: none; box-shadow: var(--ring); } .btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, .28); } .btn-primary:hover { background: var(--grad); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(37, 99, 235, .34); } .btn-wa { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(16, 185, 129, .28); } .btn-wa:hover { filter: brightness(1.06); transform: translateY(-1px); } .btn-warn { background: #fff7ed; border-color: #fed7aa; color: #c2410c; } .btn-warn:hover { background: #ffedd5; border-color: #fdba74; } .btn-danger { background: #fff; border-color: #fecaca; color: var(--red); } .btn-danger:hover { background: #fef2f2; border-color: #fca5a5; } .btn-ghost { background: #fff; } .btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 9px; } .btn-block { width: 100%; } /* ---------- Table ---------- */ .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); } table { width: 100%; border-collapse: collapse; min-width: 760px; } th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: linear-gradient(180deg, #f8fbff, #f1f5f9); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; position: sticky; top: 0; } tbody tr { transition: background .14s; } tbody tr:hover { background: #f0f9ff; } tbody tr:last-child td { border-bottom: none; } .actions { display: flex; gap: 6px; flex-wrap: wrap; } .empty { padding: 46px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); } /* ---------- Badge ---------- */ .badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; box-shadow: 0 2px 6px rgba(15, 23, 42, .12); } /* ---------- Modal ---------- */ .modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 28px 14px; z-index: 100; overflow-y: auto; } .modal { background: #fff; border-radius: 18px; width: 100%; max-width: 580px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; overflow: hidden; } .modal.lg { max-width: 820px; } @keyframes pop { from { transform: translateY(-10px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } } .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--grad-soft); } .modal-head h3 { margin: 0; font-size: 17px; font-weight: 800; } .modal-x { border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 8px; width: 34px; height: 34px; } .modal-x:hover { background: #fff; color: var(--ink); } .modal-body { padding: 20px; } .modal-foot { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: #fafcff; } /* ---------- Toast ---------- */ #toastBox { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 200; } .toast { background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; max-width: 340px; font-weight: 500; } .toast.ok { background: linear-gradient(135deg, #10b981, #059669); } .toast.err { background: linear-gradient(135deg, #ef4444, #dc2626); } /* ---------- Berkas ---------- */ .berkas-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; } .berkas-row:last-child { border-bottom: none; } .berkas-label { width: 112px; font-weight: 700; } .berkas-value { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; } .berkas-actions { display: flex; gap: 6px; flex-wrap: wrap; } .placeholder-btns { display: flex; flex-wrap: wrap; gap: 6px; } .chip { border: 1px dashed #cbd5e1; background: var(--grad-soft); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #334155; transition: border-color .15s, color .15s, background .15s; } .chip:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); } .preview-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; white-space: pre-wrap; font-size: 13px; max-height: 320px; overflow-y: auto; } .template-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s; } .template-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); } .template-item + .template-item { margin-top: 12px; } .template-item .ti-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; } .template-item pre { margin: 10px 0 0; white-space: pre-wrap; font-family: inherit; font-size: 13px; color: #334155; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; } /* ---------- Scrollbar ---------- */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; } @media (max-width: 700px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } .page-head h1 { font-size: 20px; } .container { padding: 18px 14px 60px; } .nav-inner { padding: 10px 14px; gap: 12px; } .modal-foot { justify-content: stretch; } .modal-foot .btn { flex: 1 1 auto; } }