.kadm-wrap { padding: 0; }
.kadm-inner { max-width: 1200px; margin: 0 auto; }

/* PAGE HEADER */
.kadm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.kadm-header-left { display: flex; align-items: center; gap: 16px; }
.kadm-icon-wrap {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}
.kadm-page-title { font-size: 22px; font-weight: 800; color: #1e293b; margin: 0 0 4px; }
.kadm-page-sub { font-size: 13px; color: #64748b; margin: 0; }

/* ALERT */
.kadm-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}
.kadm-alert-ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.kadm-alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.kadm-alert.hidden { display: none; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* NOTICE BOX */
.kadm-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PANEL */
.kadm-panel {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.kadm-panel-head {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}
.kadm-panel-head-left {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kadm-panel-head-right {
    font-size: 12px;
    color: #94a3b8;
}

/* TABLE */
.kadm-table-wrap { overflow-x: auto; }
.kadm-table { width: 100%; border-collapse: collapse; }
.kadm-table thead tr { background: #f8fafc; }
.kadm-table th {
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.kadm-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}
.kadm-table tbody tr:last-child td { border-bottom: none; }
.kadm-table tbody tr:hover { background: #fafcff; }

/* AVATAR */
.kadm-av {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    flex-shrink: 0;
}
.kadm-av-name { font-weight: 700; font-size: 14px; color: #1e293b; }
.kadm-av-email { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* BADGE */
.kadm-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.kadm-badge-super  { background: #f3e8ff; color: #7c3aed; }
.kadm-badge-admin  { background: #dbeafe; color: #1d4ed8; }

/* ACTIONS */
.kadm-actions { display: flex; align-items: center; gap: 6px; }
.kadm-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
}
.kadm-btn:hover { transform: scale(1.08); }
.kadm-btn-view  { background: #f0fdf4; color: #16a34a; }
.kadm-btn-edit  { background: #eff6ff; color: #3b82f6; }
.kadm-btn-del   { background: #fef2f2; color: #ef4444; }
.kadm-btn-del:disabled { background: #f1f5f9; color: #cbd5e1; cursor: not-allowed; transform: none; }

/* EMPTY STATE */
.kadm-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.kadm-empty i { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.kadm-empty-title { font-size: 16px; font-weight: 700; color: #64748b; margin-bottom: 6px; }

/* MODAL OVERLAY */
.kadm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.kadm-overlay.show { display: flex; }
.kadm-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%; max-width: 500px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
    overflow: hidden;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.94) translateY(10px); } to { opacity:1; transform: scale(1) translateY(0); } }
.kadm-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
}
.kadm-modal-title { font-size: 16px; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: 10px; }
.kadm-modal-title i { color: #16a34a; }
.kadm-close { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #64748b; }
.kadm-close:hover { background: #e2e8f0; }
.kadm-modal-body { padding: 24px; }
.kadm-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex; gap: 10px; justify-content: flex-end;
}

/* FORM */
.kadm-form-group { margin-bottom: 18px; }
.kadm-form-group:last-child { margin-bottom: 0; }
.kadm-label {
    display: block;
    font-size: 13px; font-weight: 700; color: #374151;
    margin-bottom: 8px;
}
.kadm-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.kadm-input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
.kadm-input-wrap { position: relative; }
.kadm-input-wrap .kadm-input { padding-right: 44px; }
.kadm-eye-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 14px;
}
.kadm-error { color: #ef4444; font-size: 12px; margin-top: 5px; }

/* BUTTONS */
.kadm-btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
    transition: all 0.2s;
    font-family: inherit;
}
.kadm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.4); }
.kadm-btn-submit {
    padding: 10px 22px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.kadm-btn-submit:hover { opacity: 0.9; }
.kadm-btn-cancel {
    padding: 10px 22px;
    background: #f1f5f9;
    color: #64748b; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.kadm-btn-cancel:hover { background: #e2e8f0; }

/* DETAIL MODAL */
.kadm-detail-av {
    width: 72px; height: 72px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 30px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    margin: 0 auto 14px;
}
.kadm-detail-info {
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    padding: 18px;
    display: flex; flex-direction: column; gap: 14px;
}
.kadm-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kadm-detail-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.kadm-detail-val { font-size: 14px; font-weight: 600; color: #1e293b; }
.kadm-divider { height: 1px; background: #f1f5f9; }
