@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Fira+Mono:wght@400;500&display=swap');

/* ===================== DESIGN TOKENS ===================== */
:root {
  --bg: #0d0f14;
  --surface: #131720;
  --surface2: #191e2a;
  --border: rgba(255, 255, 255, 0.07);
  --green: #00e676;
  --yellow: #fbbf24;
  --orange: #f97316;
  --red: #ef4444;
  --muted: #7c8fa8;
  --text: #f1f5f9;
  --sidebar-w: 240px;
}

/* ===================== RESET ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

/* ===================== UTILITY ===================== */
.hidden {
  display: none !important;
}

.accent {
  color: var(--green);
  font-weight: 700;
}

.accent-yellow {
  color: var(--yellow);
  font-weight: 700;
}

.accent-orange {
  color: var(--orange);
  font-weight: 700;
}

.full-width {
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ===================== AUTH SCREEN ===================== */
.auth-screen {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 230, 118, 0.05) 0%, transparent 60%), var(--bg);
  padding: 20px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--green);
  border-left: 5px solid var(--green);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  animation: fadeUp 0.4s ease-out;
}

.auth-logo {
  width: 52px;
  height: 52px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}

.auth-logo svg {
  width: 26px;
  height: 26px;
}

.auth-track-badge {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.auth-card h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.1;
}

.auth-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
  line-height: 1.6;
  font-style: italic;
}

.auth-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.auth-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(0, 230, 118, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 6px;
  padding: 8px 16px;
}

/* ===================== APP LAYOUT ===================== */
.app-layout {
  display: flex;
  width: 100%;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 20;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo svg {
  width: 32px;
  height: 32px;
  color: var(--green);
  background: rgba(0, 230, 118, 0.08);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}

.sidebar-logo-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text);
}

.sidebar-logo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  user-select: none;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.nav-item.active {
  color: var(--text);
  background: var(--surface2);
  border-color: var(--green);
  border-left-width: 4px;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-icon {
  color: var(--muted);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-user-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-user-text {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-logout svg {
  width: 16px;
  height: 16px;
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 36px 40px;
  max-width: calc(100% - var(--sidebar-w));
  overflow-x: hidden;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
  margin-bottom: 32px;
}

.page-track-badge {
  display: inline-block;
  border: 1px solid;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.05;
}

/* ===================== LAYOUT GRID ===================== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

.col-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===================== INFO CARD (accent bordered) ===================== */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}

.info-card.accent-green {
  border-color: var(--green);
  border-left-width: 5px;
}

.info-card.accent-yellow {
  border-color: var(--yellow);
  border-left-width: 5px;
}

.info-card.accent-orange {
  border-color: var(--orange);
  border-left-width: 5px;
}

.info-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ===================== LIST CARD ===================== */
.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.list-card-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.items-list {
  display: flex;
  flex-direction: column;
}

.item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
  cursor: pointer;
}

.item-row:last-child {
  border-bottom: none;
}

.item-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.item-name-col {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-size-col,
.item-date-col {
  font-size: 12px;
  color: var(--muted);
}

.item-actions-col {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

.item-row:hover .item-actions-col {
  opacity: 1;
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  text-transform: uppercase;
}

.breadcrumb-item {
  color: var(--green);
  cursor: pointer;
}

.breadcrumb-item:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--text);
}

/* ===================== TOOLBAR ===================== */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box {
  flex: 1;
}

/* ===================== STORAGE BAR ===================== */
.storage-bar {
  margin-bottom: 8px;
}

.storage-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.storage-bar-track i {
  display: block;
  height: 100%;
  background: var(--yellow);
  border-radius: 99px;
  width: 0;
  transition: width 0.5s ease;
}

.storage-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-family: 'Fira Mono', monospace;
}

/* ===================== DROPZONE ===================== */
.dropzone {
  border: 1.5px dashed rgba(0, 230, 118, 0.25);
  background: rgba(0, 230, 118, 0.02);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--green);
  background: rgba(0, 230, 118, 0.05);
}

.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  margin: 0 auto 12px;
}

.dropzone p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.dropzone strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

/* ===================== META BAR ===================== */
.meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.meta-bar-dot {
  color: var(--muted);
}

.meta-bar-item {
  color: var(--muted);
}

/* ===================== KEYS LIST ===================== */
.keys-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: context-menu;
  transition: background 0.15s;
}

.key-item:last-child {
  border-bottom: none;
}

.key-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.key-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.key-item-icon {
  width: 38px;
  height: 38px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.key-item-icon svg {
  width: 18px;
  height: 18px;
}

.key-item-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.key-item-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-family: 'Fira Mono', monospace;
}

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.badge.active {
  border-color: var(--green);
  color: var(--green);
}

.badge.deactive {
  border-color: var(--muted);
  color: var(--muted);
}

.badge.danger {
  border-color: var(--orange);
  color: var(--orange);
}

.badge.scope {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ===================== FORM ELEMENTS ===================== */
.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s;
}

input::placeholder {
  color: var(--muted);
}

input:focus,
select:focus {
  border-color: var(--green);
}

input[disabled] {
  cursor: not-allowed;
}

select {
  cursor: pointer;
}

select option {
  background: var(--surface2);
}

/* Date input icon brightness fix for dark backgrounds */
input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.5);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox-label input[type=checkbox] {
  accent-color: var(--green);
  width: 15px !important;
  height: 15px;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.18s, transform 0.12s;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-danger:hover {
  background: rgba(249, 115, 22, 0.06);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}

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

.btn-icon svg {
  width: 13px;
  height: 13px;
}

.btn-icon-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}

.btn-icon-ghost:hover {
  color: var(--green);
  background: rgba(0, 230, 118, 0.08);
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: scaleUp 0.2s ease-out;
}

.modal-track-badge {
  display: inline-block;
  border: 1px solid;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===================== TOGGLE ROW ===================== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  gap: 16px;
}

.toggle-row-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.toggle-row-info span {
  font-size: 12px;
  color: var(--muted);
}

.toggle-check {
  width: 18px !important;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===================== SECRET DISPLAY ===================== */
.secret-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 230, 118, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
}

.secret-display code {
  font-family: 'Fira Mono', monospace;
  font-size: 12px;
  color: var(--green);
  word-break: break-all;
  overflow: hidden;
}

.warning-note {
  font-size: 11px;
  color: var(--yellow);
  margin-top: 10px;
  font-weight: 600;
}

/* ===================== UPLOAD TOAST ===================== */
.upload-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--green);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  padding: 16px 18px;
  z-index: 200;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
}

.upload-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.upload-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.upload-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Fira Mono', monospace;
}

/* ===================== CONTEXT MENU ===================== */
.ctx-menu {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--orange);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 500;
  width: 190px;
  padding: 6px;
  overflow: hidden;
  animation: scaleUp 0.15s ease-out;
  transform-origin: top left;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s;
}

.ctx-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ctx-item.danger {
  color: var(--orange);
}

.ctx-item.danger:hover {
  background: rgba(249, 115, 22, 0.06);
}

.ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ===================== FOLDER SELECTOR ===================== */
.folder-selector-scroll {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface2);
}

.folder-select-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-select-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.folder-select-item.selected {
  background: rgba(0, 230, 118, 0.08);
  color: var(--green);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ===================== SWAGGER API DOCS ===================== */
.swagger-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-group {
  margin-bottom: 28px;
}

.api-group-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.api-docs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swagger-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.swagger-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.swagger-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
}

.swagger-item.open .swagger-header {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.swagger-arrow {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.swagger-item.open .swagger-arrow {
  transform: rotate(90deg);
  color: var(--green);
}

.swagger-body {
  padding: 16px 18px;
  background: var(--surface2);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.swagger-item.open .swagger-body {
  display: flex;
}

.doc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 6px;
}

.param-row {
  font-size: 12px;
  color: var(--text);
  padding: 4px 0;
}

.param-row code {
  font-family: 'Fira Mono', monospace;
  color: var(--green);
}

.json-block {
  background: #090b0f;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: 'Fira Mono', monospace;
  font-size: 12px;
  color: #a7f3d0;
  overflow-x: auto;
  line-height: 1.5;
}