/* API Documentation Styles */

/* API Sidebar Styles */
.api-sidebar {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.sidebar-header {
  margin-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 10px;
}

.sidebar-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav li a {
  color: #495057;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sidebar-nav li a:hover {
  background-color: #e9ecef;
}

.sidebar-nav li.active a {
  background-color: #303163;
  color: white;
}

/* API Main Content */
.api-main {
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.api-section {
  margin-bottom: 40px;
}

.api-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.api-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.code-block {
  background-color: #272822;
  color: #f8f8f2;
  border-radius: 6px;
  padding: 15px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  margin: 15px 0;
}

.code-block code,
.code-block pre {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.endpoint-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.endpoint-header {
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  align-items: center;
}

.http-method {
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 10px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

.http-method.get {
  background-color: #61affe;
  color: white;
}

.http-method.post {
  background-color: #49cc90;
  color: white;
}

.http-method.put {
  background-color: #fca130;
  color: white;
}

.http-method.delete {
  background-color: #f93e3e;
  color: white;
}

.endpoint-description {
  padding: 20px;
}

.steps-container {
  margin-top: 20px;
}

.steps-list {
  list-style: none;
  padding: 0;
}

.steps-list li {
  display: flex;
  margin-bottom: 25px;
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: #303163;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h5 {
  margin-top: 0;
  margin-bottom: 5px;
}

/* SDK Section */
.sdk-icon {
  font-size: 2.5rem;
  color: #303163;
  margin-bottom: 15px;
}

/* Responsive Design for API Documentation */
@media (max-width: 992px) {
  .api-sidebar-card, .api-main-card {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* Section Grid Layout */
.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.grid-card {
  flex: 1 1 300px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.api-sidebar-card {
  flex: 0 0 250px;
}

.api-main-card {
  flex: 1 1 600px;
} 