/* ═══════════════════════════════════════════════════════════════════
   STANDARDIZED ACTION BUTTONS — consistent across all admin pages
   Usage: class="action-btn action-btn-{edit|delete|suspend|activate|info|password|view}"
   ════════════════════════════════════════════════════════════════════ */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  text-decoration: none;
}
.action-btn:hover { transform: translateY(-1px); }

/* Edit / Info — blue */
.action-btn-edit, .action-btn-info {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.action-btn-edit:hover, .action-btn-info:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.7);
  color: #93c5fd;
}

/* Password / Key — purple */
.action-btn-password {
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}
.action-btn-password:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.7);
  color: #d8b4fe;
}

/* Suspend — amber */
.action-btn-suspend {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.action-btn-suspend:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.7);
}

/* Activate / Approve — green */
.action-btn-activate {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.action-btn-activate:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.7);
}

/* Delete — red */
.action-btn-delete {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.action-btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* View / Link — teal */
.action-btn-view {
  border-color: rgba(20, 184, 166, 0.4);
  color: #2dd4bf;
}
.action-btn-view:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.7);
}

/* Action group wrapper */
.action-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════
   STANDARDIZED MODALS — opens at TOP of viewport (not center)
   Toggle: add/remove class "is-open" on .dotkr-modal
   ════════════════════════════════════════════════════════════════════ */
.dotkr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8vh;
  overflow-y: auto;
}
.dotkr-modal.is-open { display: flex; }

.dotkr-modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  margin: 0 1rem 2rem;
  animation: dotkrModalIn 0.25s ease;
}

@keyframes dotkrModalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dotkr-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.dotkr-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dotkr-modal-icon.danger  { background: rgba(239, 68, 68, 0.15); }
.dotkr-modal-icon.warning { background: rgba(245, 158, 11, 0.15); }
.dotkr-modal-icon.success { background: rgba(16, 185, 129, 0.15); }
.dotkr-modal-icon.info    { background: rgba(59, 130, 246, 0.15); }
.dotkr-modal-icon.primary { background: rgba(168, 85, 247, 0.15); }

.dotkr-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.dotkr-modal-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.dotkr-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}
.dotkr-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.dotkr-modal-body { padding: 1.5rem; }

.dotkr-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.dotkr-modal-cancel {
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dotkr-modal-cancel:hover { background: rgba(255, 255, 255, 0.06); }

.dotkr-modal-confirm {
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dotkr-modal-confirm:hover { transform: translateY(-1px); }
.dotkr-modal-confirm.danger  { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.dotkr-modal-confirm.warning { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.dotkr-modal-confirm.success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.dotkr-modal-confirm.primary { background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 4px 12px rgba(168,85,247,0.3); }
.dotkr-modal-confirm.info    { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
