/* Simoob Documentation Styles - Spring Boot Inspired */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b35;
  --primary-dark: #e85a28;
  --secondary: #004e89;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #777777;
  --border: #dddddd;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-code: #f5f5f5;
  --sidebar-bg: #0a0a0b;
  --sidebar-text: #d6d6d6;
  --sidebar-hover: #1a1a2e;
  --link-color: #ff6b35;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  font-size: 15px;
}

/* Top Header */
.top-header {
  background: var(--sidebar-bg);
  color: white;
  padding: 0;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.version-badge {
  background: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-links a {
  color: var(--sidebar-text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-links a:hover {
  color: white;
}

/* Main Layout */
.doc-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: var(--bg-light);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 0;
}

.sidebar a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar a:hover {
  background: white;
  color: var(--primary);
  border-left-color: var(--primary);
}

.sidebar a.active {
  background: white;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 4rem;
  max-width: 900px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--link-color);
  text-decoration: none;
}

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

h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 400;
}

h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 400;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Code Blocks */
code {
  background: var(--bg-code);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", "Consolas", monospace;
  font-size: 0.9em;
  color: #c7254e;
}

pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.copy-button:hover {
  background: var(--bg-light);
  border-color: var(--text-muted);
}

.copy-button.copied {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

table th {
  background: var(--bg-light);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

table tr:nth-child(even) {
  background: #fafafa;
}

/* Note Boxes */
.note {
  background: #f0f7ff;
  border-left: 4px solid #086dc3;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.note.tip {
  background: #f0fdf4;
  border-left-color: var(--primary);
}

.note.warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.note.important {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.note-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Table of Contents */
.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--link-color);
}

/* Footer */
.doc-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  background: var(--bg-light);
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-links {
    display: flex;
    gap: 1rem;
  }

  .main-content {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Section Anchors */
.section-anchor {
  color: var(--text-muted);
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

h2:hover .section-anchor,
h3:hover .section-anchor {
  opacity: 1;
}
