body.klhk-view {
    background: #fff7ed;
}

body.klhk-view .card {
    border: 2px solid #fecaca;
}

body.klhk-view .card-status.normal {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
}

body.klhk-view .card-status.danger {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}

.btn-klhk {
    background: #991b1b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.card-status.neutral {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity:0; transform:translateY(-10px); }
    to { opacity:1; transform:translateY(0); }
}

/* ----------------- ENHANCED CARDS ----------------- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
}

.card-unit {
    color: var(--gray-500);
    font-weight: 500;
}

.card-status {
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
}

.card-status.normal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.card-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.card-status.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}


/* ============================================================
   HEADER — GLASS / PREMIUM UI
============================================================ */
.header-glass {
    width: 95%;
    max-width: 1750px;
    /*margin: 0 auto;*/
    padding: 0 20px;
    
    /*width: 91%;*/
    /*padding: 16px 24px;*/
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px auto 20px auto;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.header-glass:hover {
    backdrop-filter: blur(18px);
    transform: translateY(-2px);
}

/* Logo */
.header-logo {
    width: 150;
    margin-right: 14px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Judul */
.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.header-title p {
    margin-top: 6px;
    color: #475569;
    font-size: 14px;
}

/* ============================================================
   STATUS ONLINE / OFFLINE
============================================================ */
.status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: gray;
}

.dot.online {
    background: #16a34a; /* hijau */
    box-shadow: 0 0 6px rgba(22,163,74,0.8);
}

.dot.offline {
    background: #dc2626; /* merah */
    box-shadow: 0 0 6px rgba(220,38,38,0.8);
}


/* Tombol Info */
.info-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.info-btn:hover {
    background: #1e4dcc;
    transform: scale(1.08);
}

.card-status {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    width: fit-content;
}

.card-status.normal {
    background: #d1fae5;
    color: #065f46;
}

.card-status.danger {
    background: #fee2e2;
    color: #991b1b;
}

.card-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.card-status.neutral {
    background: #e5e7eb;
    color: #374151;
}

.queue-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  border-bottom:1px solid #e5e7eb;
  font-size:13px;
}

.badge {
  padding:3px 8px;
  border-radius:12px;
  font-weight:600;
  font-size:11px;
}

.badge.pending { background:#fef3c7; color:#92400e }
.badge.retry   { background:#fde68a; color:#78350f }
.badge.sent    { background:#dcfce7; color:#166534 }
.badge.failed  { background:#fee2e2; color:#991b1b }

.queue-actions button {
  padding:4px 10px;
  font-size:11px;
  border-radius:6px;
  border:none;
  cursor:pointer;
}

.queue-actions button:disabled {
  opacity:.4;
  cursor:not-allowed;
}

.queue-actions .retry { background:#2563eb; color:#fff }
