/*
Built by Black Bug
Author: Black Bug
Black Bug Spartan Registry styles.
*/

.bb-spartan-registry-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.bb-spartan-registry-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.bb-spartan-registry-hero span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 8px;
}

.bb-spartan-registry-hero h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.bb-spartan-registry-hero p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.bb-spartan-summary-grid,
.bb-spartan-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.bb-spartan-summary-card,
.bb-spartan-registry-card,
.bb-spartan-help-panel,
.bb-spartan-form,
.bb-spartan-table-wrap,
.bb-spartan-access-denied,
.bb-spartan-notice {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.bb-spartan-summary-card {
  flex: 1 1 180px;
  padding: 18px;
}

.bb-spartan-summary-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 8px;
}

.bb-spartan-summary-card strong {
  display: block;
  font-size: 28px;
  color: #0f172a;
}

.bb-spartan-registry-card {
  flex: 1 1 240px;
  padding: 22px;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bb-spartan-registry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.bb-spartan-registry-card strong,
.bb-spartan-registry-card span {
  display: block;
}

.bb-spartan-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.bb-spartan-registry-card strong {
  font-size: 20px;
  margin-bottom: 8px;
}

.bb-spartan-registry-card span:last-child {
  color: #475569;
  line-height: 1.6;
}

.bb-spartan-form,
.bb-spartan-table-wrap,
.bb-spartan-help-panel,
.bb-spartan-access-denied,
.bb-spartan-notice {
  padding: 20px;
  margin: 20px 0;
}

.bb-spartan-form h3,
.bb-spartan-table-wrap h3,
.bb-spartan-help-panel h3 {
  margin-top: 0;
}

.bb-spartan-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
  color: #0f172a;
}

.bb-spartan-form label span {
  color: #b91c1c;
}

.bb-spartan-form input[type="text"],
.bb-spartan-form input[type="email"],
.bb-spartan-form select,
.bb-spartan-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: #0f172a;
}

.bb-spartan-button {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.bb-spartan-fieldset {
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.bb-spartan-checkbox {
  display: inline-block;
  margin: 6px 12px 6px 0;
  font-weight: 600;
}

.bb-spartan-table {
  width: 100%;
  border-collapse: collapse;
}

.bb-spartan-table th,
.bb-spartan-table td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  padding: 10px;
  vertical-align: top;
}

.bb-spartan-table th {
  color: #0f172a;
  background: #f8fafc;
}

.bb-spartan-notice {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.bb-spartan-access-denied {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 768px) {
  .bb-spartan-table-wrap {
    overflow-x: auto;
  }

  .bb-spartan-registry-hero h2 {
    font-size: 26px;
  }
}


/* Report Template manager additions - Built by Black Bug */
.bb-spartan-muted { color: #64748b; font-size: 13px; line-height: 1.5; }
.bb-spartan-code { font-family: monospace; background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }

.bb-spartan-delete-link {
  color: #b91c1c;
  font-weight: 700;
}

.bb-spartan-delete-link:hover {
  color: #7f1d1d;
}


/*
Built by Black Bug
Author: Black Bug
Spartan dashboard summary cards.
*/

.bb-spartan-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.bb-spartan-summary-card--link {
  display: block;
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bb-spartan-summary-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.bb-spartan-summary-card small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .bb-spartan-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bb-spartan-dashboard-summary {
    grid-template-columns: 1fr;
  }
}
