/* Secrooq Developer Documentation CSS */
:root {
  --bg: #090b11;
  --sidebar-bg: rgba(13, 17, 24, 0.7);
  --sidebar-border: rgba(255, 255, 255, 0.04);
  
  --card-bg: rgba(17, 24, 39, 0.45);
  --border: rgba(255, 255, 255, 0.05);
  
  --text: #e2e8f0;
  --text-muted: #64748b;
  
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --accent-light: #a78bfa;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  background-image: radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.05), transparent 45%);
}

/* Layout System */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--sidebar-border);
  padding: 2.25rem 1.5rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(to right, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.logo span {
  font-weight: 300;
  color: var(--text-muted);
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
  color: #c084fc;
  background-color: var(--accent-glow);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* Main Content Area */
.main-content {
  margin-left: 280px;
  flex: 1;
  max-width: 820px;
  padding: 4rem 3.5rem;
}

.content-section {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

p {
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

a {
  color: #818cf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Premium Card Panels */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.card-tip {
  border-left: 3px solid var(--accent);
}

.card-icon {
  font-size: 1.25rem;
}

/* API Elements */
.api-endpoint-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  margin-right: 0.5rem;
}

.api-endpoint-badge.post {
  background-color: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.api-endpoint-badge.get {
  background-color: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.api-endpoint-badge.delete {
  background-color: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.api-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
}

/* API Table styling */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.api-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
}

.api-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
}

.api-table tr:last-child td {
  border-bottom: none;
}

.api-table code {
  background-color: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #f472b6;
}

/* Code Blocks Styling */
.code-block-wrapper {
  background-color: #0b0f17;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.code-header {
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

pre {
  padding: 1.25rem;
  overflow-x: auto;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  color: #a5b4fc;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.copy-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background-color: rgba(74, 222, 128, 0.05);
}

/* Custom spacing helpers */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Responsive Adjustments */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    padding: 3rem 1.5rem;
  }
}
