/* Speleo Studio Felhasználói Kézikönyv - Közös stílusok */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 200px;
  height: auto;
}

.icon {
  width: 20px;
  height: 20px;
  padding: 5px;
  color: white;
  margin: 0px;
  margin-right: 5px;
  background-color: #ea8181;
}

h1 {
  color: #2c3e50;
  text-align: center;
  border-bottom: 3px solid #3498db;
  padding-bottom: 20px;
}

h2 {
  color: #34495e;
  border-left: 4px solid #3498db;
  padding-left: 15px;
  margin-top: 30px;
}

h3 {
  color: #2c3e50;
  margin-top: 25px;
}

h4 {
  color: #2c3e50;
  margin-top: 20px;
}

p {
  margin-bottom: 15px;
  color: #333;
}

ul,
ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Navigation */
.nav {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s;
}

.nav a:hover {
  background: #2980b9;
}

.nav .prev {
  background: #95a5a6;
}

.nav .next {
  background: #27ae60;
}

/* Manual grid and cards */
.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.manual-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.manual-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.manual-card h3 {
  color: #2c3e50;
  margin-top: 0;
}

.manual-card p {
  color: #6c757d;
  margin-bottom: 15px;
}

.manual-card a {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s;
}

.manual-card a:hover {
  background: #2980b9;
}

/* Content sections */
.intro {
  background: #e8f4fd;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.toc {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
}

.toc li {
  margin: 10px 0;
}

.toc a {
  color: #3498db;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Method sections */
.method {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.method h3 {
  color: #3498db;
  margin-top: 0;
}

/* Steps */
.steps {
  background: #e8f4fd;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.steps ol {
  margin: 0;
  padding-left: 20px;
}

.steps li {
  margin: 8px 0;
}

/* Code blocks */
.code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  margin: 10px 0;
}

code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #e74c3c;
}

.code-example {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  margin: 10px 0;
  white-space: pre-wrap;
  border-left: 4px solid #3498db;
}

/* Pros and cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 15px 0;
}

.pros,
.cons {
  padding: 15px;
  border-radius: 5px;
}

.pros {
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.cons {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.pros h4,
.cons h4 {
  margin-top: 0;
  color: #155724;
}

.cons h4 {
  color: #721c24;
}

/* Notes and warnings */
.note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.note strong {
  color: #856404;
}

.warning {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.warning strong {
  color: #721c24;
}

/* Difficulty badges */
.difficulty {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: bold;
  margin-left: 10px;
}

.easy {
  background: #d4edda;
  color: #155724;
}

.medium {
  background: #fff3cd;
  color: #856404;
}

.hard {
  background: #f8d7da;
  color: #721c24;
}

/* Back links */
.back-link {
  text-align: center;
  margin-top: 30px;
}

.back-link a {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s;
}

.back-link a:hover {
  background: #2980b9;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #2c3e50;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 10px 0;
}

.row {
  display: flex;
}

.column-2 {
  flex: 50%;
}

/* Image placeholders */
.image-placeholder {
  background: #e9ecef;
  border: 2px dashed #6c757d;
  padding: 40px;
  text-align: center;
  margin: 20px 0;
  border-radius: 8px;
  color: #6c757d;
}

.image-placeholder.black {
  background-color: black;
  border: 2px dashed #ffffff;
}

.image-placeholder.white {
  background-color: white;
  border: 2px dashed black;
}

.image-placeholder.small-padding {
  padding: 10px;
}

.image-placeholder .medium-size img {
  width: 200px;
}

/* Feature lists */
.feature-list {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.feature-list ul {
  margin: 0;
  padding-left: 20px;
}

/* Steps */
.step {
  background: #e8f4fd;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #3498db;
}

/* Info boxes */
.info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

/* Feature boxes */
.feature-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

/* Format boxes */
.format-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.format-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Control boxes */
.control-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.control-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Editor boxes */
.editor-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.editor-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Attribute boxes */
.attribute-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.attribute-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Tool boxes */
.tool-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.tool-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Calculation boxes */
.calculation-box {
  background: #e9ecef;
  padding: 15px;
  border-radius: 4px;
  margin: 10px 0;
  font-family: monospace;
}

/* Comparison tables */
.comparison-table {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin: 10px 0;
  overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
  border: 1px solid #dee2e6;
  padding: 8px;
  text-align: left;
}

.comparison-table th {
  background: #e9ecef;
}

/* Settings boxes */
.settings-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.settings-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Setting items */
.setting-item {
  background: #e9ecef;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.setting-item h5 {
  color: #495057;
  margin-top: 0;
}

/* Tip boxes */
.tip-box {
  background: #e8f4fd;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #3498db;
}

/* Shortcut boxes */
.shortcut-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.shortcut-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Shortcuts */
.shortcut {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

/* Workflow boxes */
.workflow-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #dee2e6;
}

.workflow-box h4 {
  color: #2c3e50;
  margin-top: 0;
}

/* Donation page styles */
.donation-methods {
  display: grid;
  gap: 30px;
  margin: 30px 0;
}

.donation-method {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
}

.donation-method h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.donation-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.platform-placeholder {
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.platform-placeholder h4 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 10px;
}

.donation-button {
  margin-top: 15px;
}

.button-placeholder {
  display: inline-block;
  background: #6c757d;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  opacity: 0.7;
}

.community-support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.support-item {
  background: #e8f4fd;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
}

.support-item h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 8px;
}

.donation-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.suggestion {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.suggestion h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.funding-usage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.usage-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.usage-item h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.usage-item ul {
  margin: 0;
  padding-left: 20px;
}

.transparency {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.transparency-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.transparency-item h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-method {
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
}

.contact-method h4 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 8px;
}

/* Donation highlight section */
.donation-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.donation-highlight h2 {
  color: white;
  border: none;
  padding: 0;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.donation-highlight p {
  font-size: 1.1em;
  margin-bottom: 25px;
  opacity: 0.95;
}

.donation-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.donation-button-primary {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donation-button-primary:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.donation-button-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.donation-button-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* About page styles */
.about-section {
  margin: 40px 0;
}

.objective {
  background: #e8f4fd;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.developer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.info-card h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.project-timeline {
  margin: 30px 0;
}

.timeline-item {
  background: #e8f4fd;
  border-left: 4px solid #3498db;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 0 8px 8px 0;
}

.timeline-item h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 8px;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.tech-category {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.tech-category h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.tech-category ul {
  margin: 0;
  padding-left: 20px;
}

.github-info {
  margin: 30px 0;
}

.github-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
}

.github-card h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 15px;
}

.github-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.github-button {
  display: inline-block;
  background: #24292e;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}

.github-button:hover {
  background: #0366d6;
  text-decoration: none;
}

.github-button.secondary {
  background: #6c757d;
}

.github-button.secondary:hover {
  background: #5a6268;
}

.contribution-ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.contribution-item {
  background: #e8f4fd;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.contribution-item h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.future-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.plan-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.plan-item h4 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-method {
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
}

.contact-method h4 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 8px;
}

/* Donation footer */
.donation-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 40px 0 20px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.donation-footer h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.donation-footer p {
  margin-bottom: 20px;
  opacity: 0.95;
  font-size: 0.95em;
}

.donation-footer .donation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.donation-footer .donation-button-primary {
  padding: 8px 20px;
  font-size: 0.9em;
}

.donation-footer .donation-button-secondary {
  padding: 8px 20px;
  font-size: 0.9em;
}

/* Search functionality */
.search-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

.search-container h3 {
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-box button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: #2980b9;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: white;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result {
  padding: 15px;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.2s;
}

.search-result:hover {
  background: #f8f9fa;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result h4 {
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 1.1em;
}

.search-result h4 a {
  color: #2c3e50;
  text-decoration: none;
}

.search-result h4 a:hover {
  color: #3498db;
  text-decoration: underline;
}

.search-result p {
  color: #6c757d;
  margin: 0 0 8px 0;
  font-size: 0.9em;
  line-height: 1.4;
}

.search-result .page-link {
  color: #3498db;
  font-size: 0.85em;
  text-decoration: none;
}

.search-result .page-link:hover {
  text-decoration: underline;
}

.search-score {
  background: #e8f4fd;
  color: #2c3e50;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid #bee5eb;
}

.search-highlight {
  background: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #6c757d;
}

.search-loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: '...';
  }
  40% {
    content: '....';
  }
  60% {
    content: '.....';
  }
  80%,
  100% {
    content: '......';
  }
}

/* Links */
a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Data Model Page Styles */
.data-model-diagram {
  margin: 20px 0;
}

.model-level {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-level h3 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.model-level ul {
  margin: 10px 0;
  padding-left: 20px;
}

.model-level li {
  margin: 8px 0;
  line-height: 1.5;
}

.relationship-diagram {
  margin: 30px 0;
}

.relationship-flow {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.relationship-item {
  background: #e8f4fd;
  border-left: 4px solid #3498db;
  padding: 15px;
  border-radius: 0 8px 8px 0;
}

.relationship-item strong {
  color: #2c3e50;
  font-size: 1.1em;
}

.data-types {
  margin: 30px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th {
  background: #3498db;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: bold;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #dee2e6;
}

.data-table tr:nth-child(even) {
  background: #f8f9fa;
}

.data-table tr:hover {
  background: #e8f4fd;
}

.attributes-section {
  margin: 30px 0;
}

.attribute-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.attribute-type {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attribute-type h4 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 8px;
}

.storage-section {
  margin: 30px 0;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.format-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.format-item h4 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 2px solid #28a745;
  padding-bottom: 8px;
}

.validation-section {
  margin: 30px 0;
}

.validation-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.validation-rule {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.validation-rule h4 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 8px;
}

.tips-section {
  margin: 30px 0;
}

.tip {
  background: #f8f9fa;
  border-left: 4px solid #28a745;
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 8px 8px 0;
}

.tip h4 {
  color: #2c3e50;
  margin-top: 0;
}

.status-ok {
  width: 20px;
  height: 20px;
  background: no-repeat center / 25% url(../..//icons/ok.svg);
}

.status-warning {
  width: 20px;
  height: 20px;
  background: no-repeat center / 25% url(../..//icons/warning.svg);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 10px;
  }

  .manual-grid {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .nav a {
    display: block;
    margin: 5px 0;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }
}

/* Print-specific styles for PDF generation */
@media print {
  /* Hide search functionality */
  .search-container {
    display: none !important;
  }

  /* Hide manual cards grid */
  .manual-grid {
    display: none !important;
  }

  /* Hide donation highlight section */
  .donation-highlight {
    display: none !important;
  }

  /* Hide donation footer */
  .donation-footer {
    display: none !important;
  }

  /* Hide PDF generation buttons */
  .intro a[href*='pdf-instructions.html'],
  .intro a[href*='single-pdf-guide.html'] {
    display: none !important;
  }

  /* Ensure proper page breaks */
  .toc {
    page-break-after: always;
  }

  /* Optimize spacing for print */
  .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
  }

  /* Remove any background colors and margins from body */
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Ensure full width for all content */
  .intro,
  .toc,
  .step,
  .info,
  .warning,
  .note,
  .format-box,
  .settings-box,
  .comparison-table {
    margin: 0 !important;
    padding: 10px !important;
    background: transparent !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* Remove any box shadows or borders that create the "box" effect */
  .container,
  .intro,
  .toc,
  .step,
  .info,
  .warning,
  .note,
  .format-box,
  .settings-box,
  .comparison-table {
    box-shadow: none !important;
    border: none !important;
  }

  /* Hide navigation elements that are not needed in PDF */
  .nav {
    display: none !important;
  }

  /* Hide logo from content - it will be in header instead */
  .logo {
    display: none !important;
  }

  /* Fix Unicode character display in PDF */
  body {
    font-family: 'DejaVu Sans', 'Liberation Sans', Arial, sans-serif !important;
  }

  /* Ensure proper Unicode support */
  * {
    font-family: 'DejaVu Sans', 'Liberation Sans', Arial, sans-serif !important;
  }

  /* Hide problematic Unicode characters */
  h1,
  h2,
  h3 {
    font-family: 'DejaVu Sans', 'Liberation Sans', Arial, sans-serif !important;
  }

  /* Force text rendering for better Unicode support */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Compact layout for PDF - reduce font sizes */
  body {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  h1 {
    font-size: 16px !important;
    margin: 8px 0 6px 0 !important;
    padding: 0 !important;
  }

  h2 {
    font-size: 14px !important;
    margin: 6px 0 4px 0 !important;
    padding: 0 !important;
  }

  h3 {
    font-size: 12px !important;
    margin: 4px 0 3px 0 !important;
    padding: 0 !important;
  }

  h4 {
    font-size: 11px !important;
    margin: 3px 0 2px 0 !important;
    padding: 0 !important;
  }

  h5 {
    font-size: 10px !important;
    margin: 2px 0 1px 0 !important;
    padding: 0 !important;
  }

  /* Reduce paragraph spacing */
  p {
    margin: 2px 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  /* Compact lists */
  ul,
  ol {
    margin: 2px 0 !important;
    padding: 0 0 0 15px !important;
  }

  li {
    margin: 1px 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  /* Reduce spacing in content boxes */
  .intro,
  .toc,
  .step,
  .info,
  .warning,
  .note,
  .format-box,
  .settings-box,
  .comparison-table {
    margin: 2px 0 !important;
    padding: 5px !important;
  }

  /* Compact tables */
  table {
    font-size: 9px !important;
    margin: 2px 0 !important;
  }

  th,
  td {
    padding: 2px 4px !important;
    font-size: 9px !important;
  }

  /* Reduce image sizes */
  img {
    max-width: 60% !important;
    max-height: 200px !important;
    height: auto !important;
    margin: 2px 0 !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Smaller images for screenshots and diagrams */
  .image-placeholder img,
  .step img,
  .info img,
  .warning img,
  .note img {
    max-width: 90% !important;
    max-height: 350px !important;
    height: auto !important;
    margin: 3px auto !important;
  }

  /* Very small images for icons */
  img[alt*='icon'],
  img[alt*='Icon'],
  img[alt*='logo'],
  img[alt*='Logo'] {
    max-width: 30px !important;
    max-height: 30px !important;
    height: auto !important;
    margin: 1px auto !important;
  }

  /* Compact code blocks */
  code,
  pre {
    font-size: 9px !important;
    margin: 1px 0 !important;
    padding: 2px !important;
  }

  /* Reduce margins between sections */
  .step + .step,
  .info + .info,
  .warning + .warning {
    margin-top: 5px !important;
  }
}
