/* Extra CSS for Treadmill Assistant Documentation */

/* Improve spacing for admonitions */
.admonition {
  margin: 1.5em 0;
}

/* Screenshot styling */
img[src*="images/"] {
  border-radius: 4px;
}

/* Style for code blocks */
code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 90%;
}

/* Improve table readability */
table {
  width: 100%;
  margin: 1.5em 0;
}

table th {
  background: #f0f0f0;
  color: #000;
  font-weight: 600;
}

table td, table th {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
}

/* Better spacing for lists */
ul, ol {
  margin: 1em 0;
  padding-left: 2em;
}

li {
  margin: 0.5em 0;
}

/* Style for status indicators */
.status-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-synced {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-failed {
  background: #f8d7da;
  color: #721c24;
}

/* Improve heading spacing */
h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

h3 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* Better blockquote styling */
blockquote {
  border-left: 4px solid #2196F3;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: #666;
}

/* Responsive images with max width constraint */
.md-content img {
  max-width: 320px !important;
  height: auto;
}

/* Better link colors - scoped to content only to avoid overriding navigation */
.md-content a {
  color: #2196F3;
  text-decoration: none;
}

.md-content a:hover {
  text-decoration: underline;
}

/* Dark mode link color adjustment */
[data-md-color-scheme="slate"] .md-content a {
  color: #64B5F6;  /* Lighter blue for better contrast in dark mode */
}

/* Navigation improvements */
.md-nav__item--active > .md-nav__link {
  font-weight: 600;
}

/* Custom classes for checkmarks and crosses */
.yes {
  color: #28a745;
}

.no {
  color: #dc3545;
}

/* Better horizontal rule */
hr {
  margin: 2em 0;
  border: 0;
  border-top: 2px solid #e0e0e0;
}

/* Improve tab styling */
.tabbed-set {
  margin: 1.5em 0;
}

/* Better keyboard key styling */
kbd {
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 90%;
}

/* Contact Form Styling */
.contact-form {
  max-width: 500px;
  margin: 1.5em 0;
  padding: 1.5em;
  background: var(--md-code-bg-color);
  border-radius: 8px;
}

.contact-form .form-group {
  margin-bottom: 1.2em;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4em;
  font-weight: 500;
  color: var(--md-default-fg-color);
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font-size: 0.9em;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button[type="submit"] {
  margin-top: 0.5em;
  cursor: pointer;
}

/* Dark mode adjustments for form */
[data-md-color-scheme="slate"] .contact-form {
  background: rgba(255, 255, 255, 0.05);
}

[data-md-color-scheme="slate"] .contact-form input,
[data-md-color-scheme="slate"] .contact-form select,
[data-md-color-scheme="slate"] .contact-form textarea {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Discord Link Reveal (bot protection) */
.discord-reveal {
  margin: 1.5em 0;
}

.discord-link-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.discord-link-visible {
  max-height: 100px;
  opacity: 1;
  margin-top: 1em;
}

.discord-link {
  display: inline-block;
  padding: 0.8em 1.5em;
  background-color: #5865F2;
  color: white !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.discord-link:hover {
  background-color: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}
