/* Base Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.6;
  display: flex;
}

nav {
  width: 220px;
  background: #2c3e50;
  color: white;
  min-height: 100vh;
  padding: 20px;
}

nav h2 {
  font-size: 18px;
  color: #ecf0f1;
  margin-top: 0;
}

nav a {
  display: block;
  color: #ecf0f1;
  text-decoration: none;
  padding: 6px 0;
}

nav a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  flex: 1;
  padding: 40px;
  background: #f5f6fa;
}

.container {
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4 {
  color: #2c3e50;
}

h1 {
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

h2 {
  border-bottom: 1px solid #ecf0f1;
  padding-bottom: 5px;
  margin-top: 30px;
}

/* Code Blocks */
pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  position: relative;
}

code {
  font-family: 'Courier New', Courier, monospace;
  /*background: #ecf0f1;*/
  padding: 2px 5px;
  border-radius: 3px;
}

/* Optional code title */
.code-title {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #bbb;
  font-size: 0.8em;
}

/* Endpoint Highlight Boxes */
.endpoint {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px;
  border-left: 4px solid #3498db;
  margin-bottom: 15px;
  border-radius: 5px;
}

/* HTTP Method Tags */
.method {
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: bold;
  color: white;
  margin-right: 10px;
}

.method-get { background-color: #2ecc71; }
.method-post { background-color: #3498db; }
.method-put { background-color: #f39c12; }
.method-delete { background-color: #e74c3c; }

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

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

th {
  background-color: #ecf0f1;
  font-weight: bold;
}

/* Badge Labels */
.badge {
  background-color: #bdc3c7;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-left: 5px;
}
