/* 1C Documentation - Shared Styles */
/* Version: 2025-10-08 */

/* Base body styling */
body {
  background-color: white;
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 2rem auto;
  line-height: 1.6;
  color: #202020;
  padding: 0 20px;
}

/* Headings */
h1 {
  color: #0057b7;
  border-bottom: 3px solid #0057b7;
  padding-bottom: 10px;
  margin-bottom: 1rem;
}

h2 {
  margin-top: 2rem;
  color: #003a8c;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 1rem;
}

h3 {
  margin-top: 1.5rem;
  color: #0057b7;
  margin-bottom: 0.75rem;
}

/* Sections */
section {
  margin-bottom: 1.5rem;
}

/* Alert components */
.info,
.alert-info {
  background: #e3f2fd;
  border-left: 3px solid #2196f3;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 1rem 0;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #ffa000;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 1rem 0;
}

.warning,
.alert-warning {
  background: #ffebee;
  border-left: 4px solid #d93025;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 1rem 0;
}

/* Code blocks */
code {
  font-family: "Courier New", monospace;
  color: #d93025;
  background: #f7f7f7;
  padding: 2px 6px;
  border-radius: 3px;
}

.code-block, pre {
  background-color: #f7f7f7;
  color: #202020;
  padding: 1rem;
  border: 1px solid #d7def0;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
}

/* 1C Syntax highlighting */
.kw,
.keyword-1c {
  color: #ff0000 !important;
  font-weight: bold;
}

.comment-1c {
  color: #188038;
  font-style: italic;
}

.string-1c {
  color: #202020;
}

.operator-1c {
  color: #ff0000;
}

.punct-1c {
  color: #ff0000;
}

/* Tables */
.table-docs {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #fff;
}

.table-docs thead {
  background-color: #0057b7;
  color: white;
}

.table-docs th {
  background-color: #0057b7;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.table-docs td {
  padding: 10px 12px;
  border: 1px solid #ddd;
}

.table-docs tbody tr:hover {
  background-color: #f0f7ff;
}

.table-docs tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Buttons and links */
.btn-primary {
  display: inline-block;
  background-color: #0057b7;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #004a9e;
}

.link-back {
  display: inline-flex;
  align-items: center;
  color: #0057b7;
  font-weight: 500;
  text-decoration: none;
}

.link-back:hover {
  color: #003a8c;
}

/* Code examples - good/bad */
.code-good {
  border-left: 4px solid #4caf50;
}

.code-bad {
  border-left: 4px solid #d93025;
}

/* Text highlights */
.wrong {
  color: #d93025;
  text-decoration: line-through;
}

.correct {
  color: #188038;
  font-weight: bold;
}

/* Step by step guide */
.step {
  background-color: #e3f2fd;
  border-left: 4px solid #0057b7;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

/* Parameter highlight */
.param {
  font-weight: bold;
  color: #003a8c;
}
