/* =========================================================
   STIMULUS v3 — Modern Minimalist Redesign
   Bright, clean, minimal — with smooth subtle animations.
   ========================================================= */

/* ── Design Tokens ── */
:root {
    /* Primary — Modern Blue */
    --primary-50:  #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;

    /* Gray — Neutral scale */
    --gray-50:  #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic */
    --success:     #10B981;
    --success-light: #D1FAE5;
    --warning:     #F59E0B;
    --warning-light: #FEF3C7;
    --danger:      #EF4444;
    --danger-light: #FEE2E2;
    --info:        #3B82F6;
    --info-light:  #DBEAFE;

    /* Surfaces */
    --bg:     #F9FAFB;
    --white:  #FFFFFF;
    --border: #E5E7EB;

    /* Radius & Shadows */
    --radius:    12px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow:    0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

    /* Easing */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--gray-900);
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary-600); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-700); text-decoration: none; }

/* =========================================================
   TOPBAR — Clean white solid navbar
   ========================================================= */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 180ms cubic-bezier(.23, 1, .32, 1);
}
.topbar.scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.topbar-accent { display: none; }
.topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo-pt {
    width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.brand-logo-kemper { height: 28px; width: auto; flex-shrink: 0; opacity: 0.9; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--gray-900); font-size: 16px; font-weight: 700; letter-spacing: 0.2px; }
.brand-text small { display: none; }

.topbar-user { display: flex; align-items: center; gap: 12px; }

/* Notification Bell */
.notif-bell {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gray-100); border: 1px solid var(--border);
    color: var(--gray-600); text-decoration: none; flex-shrink: 0;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 140ms ease;
}
.notif-bell:hover { background: var(--primary-50); border-color: var(--primary-500); color: var(--primary-600); text-decoration: none; }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    padding: 2px 5px; border-radius: 999px; border: 2px solid var(--white);
    min-width: 16px; text-align: center;
}

/* User Info + Avatar */
.user-info { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.user-name { color: var(--gray-900); font-weight: 600; font-size: 13.5px; }
.user-role { color: var(--gray-400); font-size: 11px; font-weight: 500; }

.avatar-circle {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--primary-500);
    color: #fff; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.avatar-circle:hover { background: var(--primary-600); }

/* =========================================================
   LAYOUT
   ========================================================= */
.page-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 88px 24px 60px;
}

.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 24px; margin: 0 0 4px; color: var(--gray-900); font-weight: 700; letter-spacing: -0.3px; }
.page-header p { margin: 0; color: var(--gray-500); font-size: 14px; }

.page-header-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}

/* Breadcrumb-style back link */
.breadcrumb-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--gray-400);
    margin-bottom: 20px;
    transition: color 0.2s ease;
}
.breadcrumb-link:hover { color: var(--primary-600); }

/* Section Label */
.section-label {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--gray-400);
    margin-bottom: 12px;
}

/* =========================================================
   CARDS — Clean, minimal
   ========================================================= */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-title {
    font-size: 15px; font-weight: 600; color: var(--gray-800);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.card-title::before {
    content: '';
    width: 3px; height: 16px; border-radius: 2px;
    background: var(--primary-500);
    flex-shrink: 0;
}

/* =========================================================
   STAT CARDS — Clean flat design
   ========================================================= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-card .stat-icon .icon { width: 20px; height: 20px; }

.stat-card .stat-body { min-width: 0; }
.stat-card .stat-value {
    font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1.15;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}
.stat-card .stat-label {
    font-size: 12.5px; color: var(--gray-500); margin-top: 2px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Accent variants — soft tinted backgrounds */
.stat-card.accent-teal  .stat-icon { background: var(--primary-50); color: var(--primary-600); }
.stat-card.accent-amber .stat-icon { background: var(--warning-light); color: #D97706; }
.stat-card.accent-green .stat-icon { background: var(--success-light); color: #059669; }
.stat-card.accent-red   .stat-icon { background: var(--danger-light); color: var(--danger); }

/* Icon sizing utility */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 26px; height: 26px; }

/* =========================================================
   TABLES — Clean and minimal
   ========================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
table.data-table thead { position: sticky; top: 0; z-index: 2; }
table.data-table th {
    text-align: left; padding: 12px 16px;
    background: var(--gray-50);
    color: var(--gray-500); font-weight: 600; font-size: 11.5px;
    text-transform: uppercase; letter-spacing: 0.7px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.data-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-900);
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover td { background: var(--gray-50); }

/* Status dot indicator — static, no pulse */
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
    vertical-align: middle;
}
.status-dot.active  { background: var(--success); }
.status-dot.pending { background: var(--warning); }
.status-dot.warning { background: var(--danger); }
.status-dot.info    { background: var(--primary-500); }

.empty-row td {
    text-align: center; color: var(--gray-400); padding: 48px 16px;
    font-size: 14px;
}

/* =========================================================
   BADGES & TAGS — Soft pastel pills
   ========================================================= */
.badge {
    display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-lg { font-size: 13px; padding: 6px 14px; }
.badge-info    { background: var(--info-light); color: #1D4ED8; }
.badge-success { background: var(--success-light); color: #065F46; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger  { background: var(--danger-light); color: #991B1B; }

/* Small count pill next to card titles */
.count-pill { font-size: 11px; padding: 3px 10px; margin-left: 10px; font-weight: 600; }

.jenis-tag {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
    background: var(--gray-100); color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* =========================================================
   BUTTONS — Clean flat design
   ========================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; font-size: 13.8px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: all 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary { background: var(--primary-500); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: var(--white); color: var(--gray-800); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--gray-300); background: var(--gray-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-ghost { background: transparent; color: var(--gray-700); border-color: var(--border); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-pill { border-radius: 999px; padding: 10px 24px; }

/* =========================================================
   FORMS — Clean inputs
   ========================================================= */
.form-group { margin-bottom: 20px; }
label.form-label {
    display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px;
}
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; line-height: 1.5; }

input[type=text], input[type=email], input[type=password], input[type=datetime-local],
input[type=file], select, textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px;
    font-size: 14px; font-family: inherit; color: var(--gray-900); background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}
textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Radio group — card style */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-group label {
    display: flex; align-items: center; gap: 8px; font-size: 13.8px; font-weight: 500;
    padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--white);
    transition: all 0.2s ease; cursor: pointer;
    flex: 1; min-width: 140px;
}
.radio-group label:has(input:checked) {
    border-color: var(--primary-500); background: var(--primary-50); color: var(--gray-900);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.radio-group label:hover { border-color: var(--primary-500); background: var(--primary-50); }
.radio-group input[type="radio"] {
    width: 18px; height: 18px; accent-color: var(--primary-500); margin: 0;
}

/* File upload zone */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    background: var(--gray-50);
    transition: all 0.2s ease;
    cursor: pointer;
}
.upload-zone:hover { border-color: var(--primary-500); background: var(--primary-50); }
.upload-zone .upload-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }
.upload-zone .upload-text { font-size: 13.5px; color: var(--gray-600); font-weight: 500; }
.upload-zone .upload-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* =========================================================
   ALERTS — Left accent border
   ========================================================= */
.alert {
    padding: 14px 18px; border-radius: var(--radius); font-size: 13.8px; margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid transparent;
    border-left: 3px solid var(--primary-500);
}
.alert-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: var(--danger-light);  color: #991B1B;  border-left-color: var(--danger); }
.alert-success { background: var(--success-light); color: #065F46; border-left-color: var(--success); }
.alert-info    { background: var(--primary-50);    color: var(--gray-800); border-left-color: var(--primary-500); }

/* =========================================================
   WORKFLOW PROGRESS TRACKER
   ========================================================= */
.workflow-progress {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 28px;
    padding: 20px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 90px;
    position: relative;
    text-align: center;
}
.workflow-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}
.workflow-step:last-child::after { display: none; }

.workflow-step .step-circle {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-400);
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}
.workflow-step.completed .step-circle {
    background: var(--success); border-color: var(--success);
    color: #fff;
}
.workflow-step.completed::after { background: var(--success); }
.workflow-step.active .step-circle {
    background: var(--primary-500); border-color: var(--primary-500);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.workflow-step.active::after { background: linear-gradient(90deg, var(--primary-500), var(--gray-200)); }

.workflow-step .step-label {
    font-size: 10.5px; font-weight: 600; color: var(--gray-400);
    margin-top: 8px; line-height: 1.3;
    max-width: 80px;
}
.workflow-step.completed .step-label { color: var(--success); }
.workflow-step.active .step-label { color: var(--primary-600); font-weight: 700; }

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-50);
    padding: 24px;
}
.login-card {
    background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 420px; padding: 40px 36px;
    border: 1px solid var(--border);
}
.login-logo {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--primary-500);
    color: #fff; font-weight: 800; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.login-card h1 { text-align: center; font-size: 22px; margin: 0 0 2px; color: var(--gray-900); font-weight: 700; }
.login-card .login-sub { text-align: center; font-size: 13px; color: var(--gray-500); margin: 0 0 28px; }

.demo-accounts {
    margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border);
}
.demo-accounts summary {
    cursor: pointer; font-size: 12.8px; font-weight: 600; color: var(--primary-600);
}
.demo-accounts table { width: 100%; margin-top: 10px; font-size: 12px; border-collapse: collapse; }
.demo-accounts td { padding: 5px 4px; border-bottom: 1px solid var(--border); color: var(--gray-600); }
.demo-accounts td:first-child { font-weight: 600; color: var(--gray-900); }

/* =========================================================
   TIMELINE — Clean solid line
   ========================================================= */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    position: relative; padding: 0 0 24px 32px;
    border-left: 2px solid var(--gray-200);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 2px; }
.timeline li::before {
    content: '';
    position: absolute; left: -6px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-500);
}
.timeline li:last-child::before {
    background: var(--primary-500); border-color: var(--primary-500);
}

.timeline .tl-title {
    font-weight: 600; font-size: 13.8px; color: var(--gray-900);
    display: flex; align-items: center; gap: 8px;
}
.timeline .tl-meta { font-size: 12px; color: var(--gray-400); margin: 3px 0 5px; }
.timeline .tl-desc { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Role badge in timeline */
.role-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 8px; border-radius: 6px;
    font-size: 10.5px; font-weight: 600;
    background: var(--gray-100); color: var(--gray-600);
}

/* =========================================================
   DETAIL GRID
   ========================================================= */
.detail-grid {
    display: grid; grid-template-columns: 180px 1fr; gap: 0;
    font-size: 13.8px;
}
.detail-grid dt {
    color: var(--gray-400); font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.detail-grid dd {
    margin: 0; color: var(--gray-900); font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.detail-grid dt:last-of-type,
.detail-grid dd:last-of-type { border-bottom: none; }

.file-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius); background: var(--primary-50);
    border: 1px solid var(--primary-100); font-size: 12.8px; color: var(--primary-600); font-weight: 600;
    transition: all 0.2s ease;
}
.file-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--primary-100);
    text-decoration: none;
}

.section-divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* =========================================================
   NOTIFICATION LIST
   ========================================================= */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
    text-decoration: none; color: var(--gray-900);
    transition: background 0.15s ease;
    position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--gray-50); text-decoration: none; }
.notif-item.unread {
    background: var(--primary-50);
    border-left: 3px solid var(--primary-500);
}
.notif-item .notif-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-500);
}
.notif-item.unread .notif-icon { background: var(--primary-100); color: var(--primary-600); }
.notif-item .notif-body { flex: 1; min-width: 0; }
.notif-item .notif-msg { font-size: 13.8px; font-weight: 500; margin-bottom: 3px; line-height: 1.4; }
.notif-item .notif-time { font-size: 11.5px; color: var(--gray-400); }
.notif-item.unread .notif-msg { font-weight: 600; }

.notif-empty {
    text-align: center; padding: 48px 20px; color: var(--gray-400);
}
.notif-empty-icon { margin-bottom: 12px; color: var(--gray-300); display: flex; align-items: center; justify-content: center; }
.notif-empty-text { font-size: 14px; font-weight: 500; }
.notif-empty-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* =========================================================
   MODAL — Clean pop-in
   ========================================================= */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.modal-overlay.modal-visible { display: flex; opacity: 1; }
.modal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 36px 32px;
    max-width: 380px; width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(16px);
    transition: transform 0.3s var(--ease-out);
}
.modal-overlay.modal-visible .modal-card { transform: scale(1) translateY(0); }
.modal-icon {
    width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
    display: inline-flex; align-items: center; justify-content: center;
}
.modal-icon-logout { background: var(--danger-light); color: var(--danger); }
.modal-title { font-size: 18px; font-weight: 700; color: var(--gray-900); margin: 0 0 8px; }
.modal-text { font-size: 14px; color: var(--gray-500); margin: 0 0 24px; line-height: 1.6; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }
.modal-actions .btn { flex: 1; padding: 11px 18px; border-radius: 10px; }

/* =========================================================
   FOOTER — Minimal clean
   ========================================================= */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 0 24px;
    border-top: 1px solid #dbe9f4;
    color: #526b82;
    background:
        linear-gradient(rgba(194, 218, 236, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 218, 236, .2) 1px, transparent 1px),
        linear-gradient(180deg, #f8fcff 0%, #eef7fc 100%);
    background-size: 34px 34px, 34px 34px, auto;
    font-size: 13px;
    line-height: 1.6;
    isolation: isolate;
}
.footer-orb {
    position: absolute;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.footer-orb-one { top: 20%; left: -190px; background: rgba(88, 169, 255, .12); }
.footer-orb-two { right: -180px; bottom: -150px; background: rgba(42, 193, 151, .11); }
.footer-shell { width: min(1180px, 100%); margin: 0 auto; }

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(170px, .62fr) minmax(260px, .9fr);
    gap: 64px;
    padding: 48px 10px 39px;
}
.site-footer .footer-brand-lockup { display: inline-flex; align-items: center; gap: 15px; color: #18324b; text-decoration: none; }
.site-footer .footer-brand-lockup:hover { color: #18324b; }
.footer-logos { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.footer-logo-img { display: block; max-width: none; object-fit: contain; }
.footer-logo-kemendag { width: 99px; height: 30px; }
.footer-logo-stimulus { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 14px rgba(35, 104, 164, .12); }
.footer-logo-divider { width: 1px; height: 25px; background: #cbdce8; }
.footer-brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-copy strong { color: #132c45; font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.footer-brand-copy small { margin-top: 4px; color: #6a8094; font-size: 9px; font-weight: 650; }
.footer-description { max-width: 470px; margin: 20px 0 17px; color: #60778c; font-size: 11px; line-height: 1.85; }
.footer-trust-note { display: inline-flex; align-items: center; gap: 9px; color: #3e6b8f; font-size: 10px; font-weight: 700; }
.footer-trust-icon,
.footer-contact-icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; color: #1f76cb; background: #e6f3ff; }

.footer-links h2,
.footer-contact h2 { margin: 3px 0 18px; color: #17324d; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.footer-links ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(192, 213, 228, .64);
    color: #587085;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    touch-action: manipulation;
    transition: color .18s ease, padding-left .18s ease, border-color .18s ease;
}
.site-footer .footer-links a span:last-child { color: #9ab1c4; font-size: 12px; transition: color .18s ease, transform .18s ease; }
.site-footer .footer-links a:hover { padding-left: 5px; border-color: #9fc6e4; color: #1769b7; }
.site-footer .footer-links a:hover span:last-child { color: #19a47e; transform: translate(2px, -2px); }
.site-footer .footer-links a:focus-visible,
.site-footer .footer-contact-item:focus-visible { outline: 3px solid rgba(34, 116, 229, .18); outline-offset: 3px; border-radius: 8px; }

.footer-contact address { display: grid; gap: 10px; margin: 0; font-style: normal; }
.site-footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(194, 215, 230, .8);
    border-radius: 14px;
    color: #31536e;
    background: rgba(255, 255, 255, .62);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.site-footer a.footer-contact-item:hover { color: #31536e; border-color: #a7cae5; background: #fff; box-shadow: 0 12px 25px rgba(37, 83, 120, .08); transform: translateY(-2px); }
.footer-contact-item > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.footer-contact-item small { margin-bottom: 2px; color: #8296a8; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.footer-contact-item strong { color: #29465f; font-size: 10px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 10px 21px;
    border-top: 1px solid #d2e2ed;
    color: #7a8fa2;
    font-size: 9px;
}
.footer-official-note { display: inline-flex; align-items: center; gap: 7px; color: #557b9b; font-weight: 700; }
.footer-official-note .icon { color: #1b9a78; }

/* =========================================================
   MISC UTILITIES
   ========================================================= */
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.text-muted { color: var(--gray-500); }
.mt-0 { margin-top: 0; }

/* =========================================================
   SCROLL REVEAL — Smooth fade-in
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

/* =========================================================
   ANIMATIONS — Subtle, minimal entrance animations
   ========================================================= */

/* Page load */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
main.page-wrap {
    animation: pageFadeIn 0.4s var(--ease-out) both;
}

/* Stat card stagger */
@keyframes statSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-grid .stat-card:nth-child(1) { animation: statSlideUp 0.4s var(--ease-out) 0.05s both; }
.stat-grid .stat-card:nth-child(2) { animation: statSlideUp 0.4s var(--ease-out) 0.1s both; }
.stat-grid .stat-card:nth-child(3) { animation: statSlideUp 0.4s var(--ease-out) 0.15s both; }
.stat-grid .stat-card:nth-child(4) { animation: statSlideUp 0.4s var(--ease-out) 0.2s both; }

/* Card fade-in */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card {
    animation: cardFadeIn 0.4s var(--ease-out) 0.15s both;
}

/* Table row fade */
@keyframes rowFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
table.data-table tbody tr { animation: rowFadeIn 0.3s ease both; }
table.data-table tbody tr:nth-child(1)  { animation-delay: 0.03s; }
table.data-table tbody tr:nth-child(2)  { animation-delay: 0.06s; }
table.data-table tbody tr:nth-child(3)  { animation-delay: 0.09s; }
table.data-table tbody tr:nth-child(4)  { animation-delay: 0.12s; }
table.data-table tbody tr:nth-child(5)  { animation-delay: 0.15s; }

/* Topbar fade-in */
@keyframes topbarFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.topbar { animation: topbarFadeIn 0.3s ease both; }

/* Page header */
@keyframes headerSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-header-row { animation: headerSlide 0.4s var(--ease-out) both; }
.page-header { animation: headerSlide 0.4s var(--ease-out) both; }

/* Alert slide-in */
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}
.alert { animation: alertSlideIn 0.3s var(--ease-out) both; }

/* Timeline fade */
@keyframes timelineSlide {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.timeline li { animation: timelineSlide 0.3s ease both; }
.timeline li:nth-child(1)  { animation-delay: 0.03s; }
.timeline li:nth-child(2)  { animation-delay: 0.06s; }
.timeline li:nth-child(3)  { animation-delay: 0.09s; }
.timeline li:nth-child(4)  { animation-delay: 0.12s; }
.timeline li:nth-child(5)  { animation-delay: 0.15s; }
.timeline li:nth-child(6)  { animation-delay: 0.18s; }
.timeline li:nth-child(7)  { animation-delay: 0.21s; }
.timeline li:nth-child(8)  { animation-delay: 0.24s; }

/* Login card entrance */
@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.login-card { animation: loginCardIn 0.4s var(--ease-out) both; }

/* Detail grid fade */
@keyframes detailFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.detail-grid { animation: detailFade 0.3s ease 0.1s both; }

/* Workflow step entrance */
@keyframes stepPop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
.workflow-step { animation: stepPop 0.3s var(--ease-out) both; }
.workflow-step:nth-child(1) { animation-delay: 0.05s; }
.workflow-step:nth-child(2) { animation-delay: 0.08s; }
.workflow-step:nth-child(3) { animation-delay: 0.11s; }
.workflow-step:nth-child(4) { animation-delay: 0.14s; }
.workflow-step:nth-child(5) { animation-delay: 0.17s; }
.workflow-step:nth-child(6) { animation-delay: 0.20s; }
.workflow-step:nth-child(7) { animation-delay: 0.23s; }
.workflow-step:nth-child(8) { animation-delay: 0.26s; }

/* SUML card entrance */
@keyframes sumlCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hidden wave emoji class */
.page-header h1 .wave-emoji { display: none; }

/* =========================================================
   RESPONSIVE — Mobile (max-width: 640px)
   ========================================================= */
@media (max-width: 640px) {

    /* Topbar */
    .topbar-inner { padding: 10px 14px; gap: 8px; }
    .brand { gap: 8px; }
    .brand-logo-kemper { height: 20px; }
    .brand-logo-pt { width: 26px; height: 26px; border-radius: 8px; }
    .brand-text strong { font-size: 14px; }
    .brand-text small { display: none; }
    .topbar-user { gap: 8px; }
    .user-info { display: none; }
    .avatar-circle { width: 30px; height: 30px; font-size: 13px; border-radius: 8px; }

    /* Layout */
    .page-wrap { padding: 72px 14px 40px; }

    /* Page header */
    .page-header h1 { font-size: 19px; }
    .page-header p { font-size: 12.5px; }
    .page-header-row { flex-direction: column; gap: 12px; }
    .page-header-row .btn { width: 100%; }

    /* Stat cards */
    .stat-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 24px; }
    .stat-card .stat-label { font-size: 11.5px; }
    .stat-card .stat-icon { width: 36px; height: 36px; border-radius: 8px; }

    /* Cards */
    .card { padding: 18px; }
    .card-title { font-size: 14px; }

    /* Table */
    table.data-table { font-size: 12.5px; }
    table.data-table th { padding: 10px; font-size: 10.5px; }
    table.data-table td { padding: 10px; }

    /* Badges */
    .badge { font-size: 10.5px; padding: 3px 8px; }
    .badge-lg { font-size: 11px; padding: 5px 10px; }
    .jenis-tag { font-size: 10.5px; padding: 2px 8px; }

    /* Detail grid */
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid dt { padding-top: 14px; font-size: 11px; border-top: 1px solid var(--gray-100); }
    .detail-grid dt:first-child { border-top: none; padding-top: 0; }
    .detail-grid dd { padding-bottom: 12px; font-size: 14px; }

    /* Alerts */
    .alert { display: block; font-size: 12.5px; padding: 12px 14px; line-height: 1.6; }

    /* Buttons */
    .btn { padding: 9px 16px; font-size: 13px; }
    .btn-sm { padding: 5px 10px; font-size: 11.5px; }
    .flex-between { flex-direction: column; gap: 10px; }
    .flex-between .btn { width: 100%; }

    /* Forms */
    .form-group { margin-bottom: 14px; }
    .radio-group { gap: 8px; flex-direction: column; }
    .radio-group label { min-width: 0; padding: 10px 14px; }
    .form-row { grid-template-columns: 1fr; }

    /* Login */
    .login-card { padding: 28px 20px; }
    .login-logo { width: 48px; height: 48px; font-size: 22px; }
    .login-card h1 { font-size: 18px; }

    /* Modal */
    .modal-overlay { padding: 14px; }
    .modal-card { padding: 28px 20px; border-radius: 14px; }
    .modal-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .modal-title { font-size: 16px; }
    .modal-text { font-size: 13px; margin-bottom: 20px; }
    .modal-actions { flex-direction: column; gap: 10px; }

    /* Timeline */
    .timeline li { padding-left: 24px; padding-bottom: 18px; }
    .timeline .tl-title { font-size: 13px; }
    .timeline .tl-desc { font-size: 12px; }

    /* Notifications */
    .notif-item { padding: 12px 14px; gap: 10px; }
    .notif-item .notif-icon { width: 32px; height: 32px; font-size: 14px; }
    .notif-item .notif-msg { font-size: 13px; }

    /* Workflow progress */
    .workflow-progress { padding: 16px 10px; }
    .workflow-step { min-width: 65px; }
    .workflow-step .step-circle { width: 26px; height: 26px; font-size: 11px; }
    .workflow-step .step-label { font-size: 9px; max-width: 60px; }
}

/* =========================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .topbar-inner { padding: 12px 18px; }
    .page-wrap { padding: 82px 20px 50px; }
    .page-header h1 { font-size: 21px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .detail-grid { grid-template-columns: 150px 1fr; }
    .card { padding: 20px; }
    .workflow-step .step-label { font-size: 10px; max-width: 70px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 38px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .site-footer { padding: 0 12px; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 38px 6px 32px; }
    .footer-brand { grid-column: auto; }
    .site-footer .footer-brand-lockup { align-items: flex-start; gap: 12px; }
    .footer-logos { gap: 7px; }
    .footer-logo-kemendag { width: 86px; height: 26px; }
    .footer-logo-stimulus { width: 32px; height: 32px; }
    .footer-brand-copy strong { font-size: 14px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-inline: 6px; text-align: left; }
}

/* =========================================================
   SUML FORM — Dynamic SUML & Peralatan Cards
   ========================================================= */

/* Step indicator */
.suml-step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.suml-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.suml-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.suml-step-num.active {
    background: var(--primary-500);
    color: #fff;
}
.suml-step-num.inactive {
    background: var(--gray-100); color: var(--gray-400);
    border: 2px solid var(--gray-200);
}
.suml-step-label {
    font-size: 11px; font-weight: 600; margin-top: 6px;
}
.suml-step-label.active { color: var(--primary-600); }
.suml-step-label.inactive { color: var(--gray-400); }
.suml-step-line {
    flex: 1; height: 2px; margin: 0 -8px; margin-bottom: 20px;
}
.suml-step-line.done {
    background: var(--primary-500);
}
.suml-step-line.pending {
    background: var(--gray-200);
}

/* Kategori & Nama SUML selector */
.suml-selector-row {
    display: flex; gap: 12px; align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.suml-selector-row .suml-field { flex: 1; min-width: 200px; }

/* SUML Cards Container */
.suml-cards-container {
    display: none;
    flex-direction: column;
    gap: 16px;
}
.suml-cards-container.has-cards {
    display: flex;
}

/* Individual SUML Card */
.suml-item-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: sumlCardIn 0.3s var(--ease-out);
}
.suml-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
}
.suml-card-title {
    margin: 0; font-size: 14px; font-weight: 600;
    color: var(--gray-800);
}
.suml-card-badge {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    background: var(--primary-50); color: var(--primary-600);
    border: 1px solid var(--primary-100);
}
.suml-card-remove {
    margin-left: auto;
    width: 28px; height: 28px;
    border: none; border-radius: 8px;
    background: var(--danger-light);
    color: var(--danger);
    font-size: 18px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease;
}
.suml-card-remove:hover {
    background: #FCA5A5;
}

/* Card body */
.suml-card-body {
    padding: 18px;
}

/* Row layout */
.suml-row {
    display: flex; gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.suml-field {
    flex: 1;
    min-width: 180px;
}
.suml-field-full {
    flex: 1 1 100%;
}

/* Labels */
.suml-label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 5px;
}
.suml-label .req { color: var(--danger); }
.suml-label-section {
    font-size: 13px; font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-100);
}

/* Inputs */
.suml-input, .suml-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.suml-input:focus, .suml-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.suml-readonly {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: default;
}
.suml-input-sm {
    width: 100px;
    min-width: 80px;
    padding: 6px 8px;
    font-size: 12px;
}

/* Komponen section (Type B) */
.suml-komponen-section {
    margin: 12px 0;
    padding: 14px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}
.suml-komponen-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.suml-komponen-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}
.komponen-nama {
    font-size: 12px; font-weight: 600;
    color: var(--gray-800);
    min-width: 140px;
    flex-shrink: 0;
}

/* Special fields section */
.suml-special-section {
    margin: 12px 0;
    padding: 14px;
    background: var(--warning-light);
    border-radius: 8px;
    border: 1px solid rgba(245,158,11,0.15);
}

/* Divider */
.suml-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 14px 0;
}

/* File upload */
.suml-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.suml-file-input {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.suml-file-text {
    font-size: 12px;
    color: var(--gray-400);
    padding: 10px 14px;
    border: 1px dashed var(--gray-300);
    border-radius: 8px;
    width: 100%;
    transition: all 0.2s;
}
.suml-file-text.has-file {
    color: var(--primary-600);
    border-color: var(--primary-500);
    border-style: solid;
    font-weight: 600;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
