@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0D0D0D;
  --card: #1A1A1A;
  --border: #333;
  --sidebar: #111;
  --text: #E5E5E5;
  --text-dim: #888;
  --cc: #FF6B00;
  --sc: #C9A84C;
  --cm: #534AB7;
  --cp: #27AE60;
  --da: #1D9E75;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

.card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 8px;
}

.sidebar {
  background: var(--sidebar);
  width: 56px;
  min-width: 56px;
}

.app-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.app-dot:hover { transform: scale(1.15); }
.app-dot.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; transform: scale(1.1); }

.method-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  min-width: 52px;
  text-align: center;
}

.method-GET { background: rgba(39,174,96,0.15); color: #27AE60; }
.method-POST { background: rgba(52,152,219,0.15); color: #3498DB; }
.method-PATCH { background: rgba(241,196,15,0.15); color: #F1C40F; }
.method-DELETE { background: rgba(231,76,60,0.15); color: #E74C3C; }
.method-PUT { background: rgba(155,89,182,0.15); color: #9B59B6; }

.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 90vw;
  background: #151515;
  border-left: 1px solid var(--border);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.slide-panel.open { transform: translateX(0); }

.tab-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: #fff; border-bottom-color: #fff; }

.group-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
}

.search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.search-input:focus { border-color: #555; }
.search-input::placeholder { color: #555; }

.fade-in {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .sidebar {
    flex-direction: row !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 48px !important;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none !important;
    border-bottom: 1px solid #333;
    padding: 6px 8px !important;
    gap: 6px !important;
  }
  .app-dot {
    width: 28px;
    height: 28px;
    font-size: 9px;
    flex-shrink: 0;
  }
  .slide-panel {
    width: 100% !important;
    max-width: 100% !important;
    top: 0;
  }
  .tab-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .search-input {
    width: 100% !important;
  }
}
