/* GxPSign Custom Styles for MkDocs Material */

:root {
  /* Override Material's primary colors with GxPSign brand */
  --md-primary-fg-color: #0d9488;
  --md-primary-fg-color--light: #14b8a6;
  --md-primary-fg-color--dark: #0f766e;
  --md-accent-fg-color: #0891b2;
}

/* Dark mode overrides */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #2dd4bf;
  --md-accent-fg-color: #22d3ee;
}

/* Logo sizing in header */
.md-header__button.md-logo img {
  height: 32px;
  width: auto;
}

/* Custom admonition for GxP compliance notes */
.md-typeset .admonition.gxp,
.md-typeset details.gxp {
  border-color: #0d9488;
}

.md-typeset .gxp > .admonition-title,
.md-typeset .gxp > summary {
  background-color: rgba(13, 148, 136, 0.1);
}

.md-typeset .gxp > .admonition-title::before,
.md-typeset .gxp > summary::before {
  background-color: #0d9488;
  -webkit-mask-image: var(--md-admonition-icon--info);
  mask-image: var(--md-admonition-icon--info);
}

/* Screenshot image styling */
.screenshot {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

[data-md-color-scheme="slate"] .screenshot {
  border-color: #334155;
}

/* GIF container styling */
.gif-container {
  margin: 1.5rem 0;
  text-align: center;
}

.gif-container img {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

[data-md-color-scheme="slate"] .gif-container img {
  border-color: #334155;
}

/* Step numbers in guides */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
  margin-right: 8px;
}

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.admin {
  background-color: #d1fae5;
  color: #065f46;
}

.role-badge.user {
  background-color: #dbeafe;
  color: #1e40af;
}

.role-badge.owner {
  background-color: #fef3c7;
  color: #92400e;
}

[data-md-color-scheme="slate"] .role-badge.admin {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

[data-md-color-scheme="slate"] .role-badge.user {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

[data-md-color-scheme="slate"] .role-badge.owner {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Keyboard shortcuts */
.md-typeset kbd {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  font-size: 0.85em;
}

[data-md-color-scheme="slate"] .md-typeset kbd {
  background-color: #334155;
  border-color: #475569;
}
