:root {
  --primary-color: #0d6b68;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #e6f0ef;
  --dark-color: #212529;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 58px;
  left: 0;
  bottom: 0;
  width: 280px;
  padding: 20px;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  z-index: 1000;
}

/* Offcanvas header (mobile only) */
.sidebar .offcanvas-header {
  padding: 1rem 0;
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

.sidebar .offcanvas-title {
  font-weight: 600;
  color: #212529;
}

.sidebar .nav-link {
  color: #495057;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: var(--primary-color);
}

.sidebar .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  margin-left: 280px;
  padding: 2rem;
  min-height: calc(100vh - 56px);
  width: calc(100% - 280px);
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  /* On mobile, sidebar becomes offcanvas */
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    border-right: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1055; /* Bootstrap offcanvas z-index */
  }
  
  /* When offcanvas is shown */
  .sidebar.show {
    left: 0;
  }
  
  /* Main content takes full width on mobile */
  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: white;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Code Blocks */
.code-toolbar {
  position: relative;
  margin-bottom: 1.5rem;
}

.code-toolbar pre {
  margin: 0;
  border-radius: 0.375rem;
  background-color: #2d2d2d;
}

.code-toolbar .copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.375rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  z-index: 10;
}

.code-toolbar .copy-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.code-toolbar .copy-button.copied {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

/* Section Headers */
.section-header {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  color: #212529;
  font-weight: 600;
}

/* Feature Cards */
.feature-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.feature-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Parameter Tables */
.param-table {
  margin-bottom: 2rem;
}

.param-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.param-table code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  color: #e83e8c;
  font-size: 0.875em;
}

/* Status Table */
.status-table .badge {
  font-size: 0.875rem;
  padding: 0.35rem 0.65rem;
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
}

.footer a {
  color: #6c757d;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary-color);
}

/* Alerts */
.alert {
  border-radius: 0.375rem;
  border-left: 4px solid;
}

.alert-info {
  border-left-color: var(--info-color);
}

.alert-success {
  border-left-color: var(--success-color);
}

.alert-warning {
  border-left-color: var(--warning-color);
}

.alert-danger {
  border-left-color: var(--danger-color);
}

/* Cards */
.card {
  transition: box-shadow 0.2s;
}

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

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

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

/* Utilities */
.text-decoration-none {
  text-decoration: none !important;
}
