/* ==========================================================================
   ACRB ADMIN SHORTCODE DIRECTORY (SCOPED - NO :ROOT, NO GRADIENTS)
   ========================================================================== */

.acrb-sc-wrapper,
.acrb-sc-wrapper *,
.acrb-sc-wrapper *::before,
.acrb-sc-wrapper *::after {
  box-sizing: border-box;
}

.acrb-sc-wrapper {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  position: relative;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Topbar Header Banner (Solid White Surface - No Gradients)
   -------------------------------------------------------------------------- */
.acrb-sc-topbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.acrb-sc-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-sc-topbar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
  flex-shrink: 0;
}

.acrb-sc-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-sc-topbar-meta h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.acrb-sc-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Section Dividers & Titles
   -------------------------------------------------------------------------- */
.acrb-sc-section-title {
  margin: 28px 0 16px 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acrb-sc-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   Shortcode Cards Grid
   -------------------------------------------------------------------------- */
.acrb-sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.acrb-sc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.03);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.acrb-sc-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.acrb-sc-card-top {
  margin-bottom: 16px;
}

.acrb-sc-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: block;
}

.acrb-sc-desc {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Copyable Code Field
   -------------------------------------------------------------------------- */
.acrb-sc-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  gap: 8px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.acrb-sc-copy-box:hover {
  border-color: #cbd5e1;
}

.acrb-sc-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #4f46e5;
  background: transparent;
  padding: 0;
  border: none;
  word-break: break-all;
}

.acrb-copy-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acrb-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.acrb-copy-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.acrb-copy-btn.is-copied {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

/* --------------------------------------------------------------------------
   Card Footer & Placement Badge
   -------------------------------------------------------------------------- */
.acrb-sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.acrb-sc-footer strong {
  color: #64748b;
  font-weight: 600;
}

.acrb-sc-placement-badge {
  background: #eff6ff;
  color: #4f46e5;
  border: 1px solid #dbeafe;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Toast Notification Feedback
   -------------------------------------------------------------------------- */
.acrb-copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999999;
}

.acrb-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.acrb-toast-icon {
  color: #10b981;
  font-size: 18px;
  width: 18px;
  height: 18px;
}