.btn-edit {
    background-color: #fff3cd;
    color: #856404;
    border-radius: 10px;
    border: 1px solid #ffeeba;
}

.btn-edit:hover {
    background-color: #ffc107;
    color: white;
}

.btn-detail {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-radius: 10px;
    border: 1px solid #cfe2ff;
}

.btn-detail:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

.btn-delete {
    background-color: #f8d7da;
    color: #842029;
    border-radius: 10px;
    border: 1px solid #f5c2c7;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: white;
}

.card {
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.profile-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 4px solid #f8f9fa;
}

.btn-modern {
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 500;
}

.kpi-profil {
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.kpi-profil h2 {
    color: #FFD700;
    /* Gold */
    font-weight: 700;
}

.kpi-profilsuccess {
    background: linear-gradient(135deg, #1b5e20, #0f3d16);
    color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.25);
    transition: all 0.3s ease-in-out;
}

.kpi-profilsuccess:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(27, 94, 32, 0.35);
}

.kpi-profilwarning {
    background: linear-gradient(135deg, #b8860b, #8b6508);
    color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
    transition: all 0.3s ease-in-out;
}

.kpi-profilwarning:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(184, 134, 11, 0.35);
}

.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background: #0d6efd;
    color: white;
}

.card-modern {
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: none;
}

.total-badge {
    background: linear-gradient(135deg, #0d6efd, #3a86ff);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.chart-card {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.1), rgba(251, 192, 45, 0.1));
    /* Gradient tema */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.chart-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cert-category {
    font-weight: bold;
    color: #B71C1C;
    /* Merah Banyuwangi */
    text-transform: uppercase;
    margin-bottom: 10px;
}

canvas {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.total-asn {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

.total-asn span {
    font-weight: bold;
    color: #B71C1C;
    /* Warna merah Banyuwangi */
}

/* CSS KPI DASHBOARD DIKLAT */
.kpi-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-header h6 {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.kpi-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 5px 0 0;
}

.kpi-icon {
    font-size: 28px;
    padding: 12px;
    border-radius: 12px;
    color: white;
}

.kpi-icon.red {
    background: linear-gradient(135deg, #7b0000, #b71c1c);
}

.kpi-icon.yellow {
    background: linear-gradient(135deg, #f9a825, #fbc02d);
}

.kpi-icon.green {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

.kpi-icon.blue {
    background: linear-gradient(135deg, #1565c0, #42a5f5);
}

/* ===== TUBEL ===== */
.card-tubel {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.profile-photoTubel {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-labelTubel {
    font-size: 13px;
    color: #6c757d;
}

.info-valueTubel {
    font-weight: 600;
    font-size: 15px;
}

.badge-modernTubel {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
}

.kpi-boxTubel {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.kpi-boxTubel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35);
}

.kpi-boxTubel h4 {
    color: #FFD700;
    /* Gold */
    font-weight: 700;
}

.kpi-warningTubel {
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.btn-modernTubel {
    border-radius: 10px;
    font-weight: 500;
}

/* dashboard tubel */
.kpi-mini-tubel {
    background: var(--surface-color, #fff);
    border-radius: 12px;
    padding: 14px;
    height: 100%;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 90%);
    transition: all 0.4s ease;
}

.kpi-mini-tubel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.kpi-mini-tubel:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px color-mix(in srgb, var(--accent-color), transparent 75%);
}

.kpi-mini-tubel:hover::before {
    transform: scaleY(1);
}

.kpi-chart-wrap {
    height: 95px;
    position: relative;
    margin: 6px 0 4px 0;
}

.kpi-big {
    font-size: 16px;
    font-weight: 700;
    margin-top: auto;
}

.kpi-sub {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    text-align: center;
}

.kpi-title-tubel {
    display: inline-block;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-size: 0.6rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ICON WATERMARK — GRADIENT PREMIUM */
.kpi-icon-bg {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 70px;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;

    /* 🔥 gradient color */
    background: linear-gradient(135deg,
            var(--accent-color),
            color-mix(in srgb, var(--accent-color), #ffffff 35%));

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    transition: all .4s ease;
    filter: blur(0.2px);
}

@media (max-width: 768px) {
    .kpi-icon-bg {
        font-size: 52px;
        bottom: 6px;
        right: 8px;
    }
}

/* pastikan konten di atas icon */
.kpi-mini-tubel>*:not(.kpi-icon-bg) {
    position: relative;
    z-index: 1;
}

/* ✨ hover premium */
.kpi-mini-tubel:hover .kpi-icon-bg {
    transform: scale(1.12) rotate(-6deg);
    opacity: 0.28;
}

/* HIERARKI SKPD */
.unit-tree {
    font-size: 14px;
}

.tree-item {
    margin-left: 20px;
    position: relative;
}

.tree-label {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
    cursor: pointer;
}

.tree-label:hover {
    background: #f1f5ff;
    transform: translateX(4px);
}

.tree-label.has-children {
    font-weight: 600;
}

.toggle-btn {
    width: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-btn i {
    transition: 0.2s;
}

.tree-children {
    margin-left: 25px;
    border-left: 1px dashed #d0d7ff;
    padding-left: 10px;
}

.stat-card {
    transition: 0.3s;
    border-radius: 16px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.login-item {
    transition: 0.2s;
}

.login-item:hover {
    background-color: #f8f9fa;
}

#activityChart {
    height: 250px !important;
}

/* PANEL NOTIF PENGAJUAN DI ADMIN */
.notif-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.notif-item {
    padding: 18px 0;
    border-bottom: 1px solid #f1f1f1;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.bg-warning-subtle {
    background: #fff3cd;
}

.bg-info-subtle {
    background: #cff4fc;
}

.bg-success-subtle {
    background: #d1e7dd;
}

.bg-primary-subtle {
    background: #dbeafe;
}