.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  color: #a0a0b8;
  transition: all 0.15s;
  text-decoration: none;
  font-size: 0.875rem;
}

.nav-item:hover {
  background: #252540;
  color: #fff;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: #a0a0b8;
  transition: all 0.15s;
  text-decoration: none;
}

.header-icon-btn:hover {
  background: #252540;
  color: #fff;
}

.header-icon-btn.active {
  color: #c8e64c;
  background: #c8e64c15;
}

.nav-item.active {
  background: #c8e64c20;
  color: #c8e64c;
}

.stat-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: #c8e64c40;
  transform: translateY(-1px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
}

.product-card:hover {
  border-color: #c8e64c40;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #12121f;
}

.deal-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s;
}

.deal-card:hover {
  border-color: #c8e64c40;
}

.retailer-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.retailer-card:hover {
  border-color: #c8e64c40;
  transform: translateY(-1px);
}

.effect-bar {
  background: #c8e64c30;
  border-radius: 0.25rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  transition: width 0.6s ease;
}

.effect-bar-fill {
  background: #c8e64c;
  border-radius: 0.25rem;
  height: 100%;
  min-width: 2px;
}

.category-tree-item {
  border-left: 2px solid #2a2a3e;
  padding-left: 1rem;
  margin-left: 0.5rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a2a3e;
  border-top-color: #c8e64c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid #2a2a3e;
  border-top-color: #c8e64c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.toast {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.success { border-left: 3px solid #c8e64c; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid #3b82f6; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green { background: #c8e64c20; color: #c8e64c; }
.badge-red { background: #ef444420; color: #ef4444; }
.badge-blue { background: #3b82f620; color: #3b82f6; }
.badge-yellow { background: #eab30820; color: #eab308; }
.badge-purple { background: #a855f720; color: #a855f7; }

.btn-primary {
  background: #c8e64c;
  color: #000;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: #a0a0b8;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #2a2a3e;
  transition: all 0.15s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #252540;
  color: #fff;
}

.input-field {
  width: 100%;
  background: #0f0f1a;
  border: 1px solid #2a2a3e;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  transition: border-color 0.15s;
}

.input-field:focus {
  outline: none;
  border-color: #c8e64c;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0a0b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem;
  padding-right: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e0e0e8;
}

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

::-webkit-scrollbar-track {
  background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
  background: #2a2a3e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4e;
}

.pagination-btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid #2a2a3e;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #a0a0b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  background: #252540;
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #c8e64c20;
  color: #c8e64c;
  border-color: #c8e64c40;
}

.feature-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.75rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: #c8e64c40;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 230, 76, 0.08);
}

.feature-tab {
  padding: 0.375rem 1rem;
  border: 1px solid #2a2a3e;
  border-radius: 9999px;
  font-size: 0.813rem;
  color: #a0a0b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.feature-tab:hover {
  background: #252540;
  color: #fff;
}

.feature-tab.active {
  background: #c8e64c20;
  color: #c8e64c;
  border-color: #c8e64c40;
}

.mermaid-container {
  overflow-x: auto;
  padding: 1rem 0;
}

.mermaid-container svg {
  max-width: 100%;
  height: auto;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.endpoint-tab {
  padding: 0.375rem 1rem;
  border: 1px solid #2a2a3e;
  border-radius: 9999px;
  font-size: 0.813rem;
  color: #a0a0b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.endpoint-tab:hover {
  background: #252540;
  color: #fff;
}

.endpoint-tab.active {
  background: #c8e64c20;
  color: #c8e64c;
  border-color: #c8e64c40;
}

.endpoint-row {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.5rem;
  transition: border-color 0.15s;
}

.endpoint-row:hover {
  border-color: #3a3a4e;
}

.endpoint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  gap: 1rem;
}

.endpoint-summary {
  padding: 0 1rem 0.75rem 2.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.endpoint-panel {
  border-top: 1px solid #2a2a3e;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.688rem;
  font-weight: 700;
  font-family: monospace;
  min-width: 3rem;
  text-align: center;
  flex-shrink: 0;
}

.method-get { background: #22c55e20; color: #22c55e; }
.method-post { background: #3b82f620; color: #3b82f6; }
.method-put { background: #eab30820; color: #eab308; }
.method-delete { background: #ef444420; color: #ef4444; }

.endpoint-test-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid #2a2a3e;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #a0a0b8;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.endpoint-test-btn:hover {
  background: #c8e64c;
  color: #000;
  border-color: #c8e64c;
}

#sidebar.sidebar-active {
  transform: translateX(0);
}

#main-content.sidebar-active {
  margin-left: 16rem;
}

.client-select-card {
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.client-select-card:hover {
  border-color: #c8e64c60;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 230, 76, 0.08);
}

.client-select-card.add-card {
  border-style: dashed;
  border-color: #2a2a3e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.client-select-card.add-card:hover {
  border-color: #c8e64c;
  background: #c8e64c08;
}

.client-action-btn {
  padding: 0.25rem;
  border-radius: 0.375rem;
  color: #a0a0b8;
  transition: all 0.15s;
  background: transparent;
  border: none;
  cursor: pointer;
}

.client-action-btn:hover {
  background: #252540;
  color: #fff;
}

.client-action-btn.danger:hover {
  background: #ef444420;
  color: #ef4444;
}

@media (max-width: 1023px) {
  #sidebar.sidebar-active {
    z-index: 30;
  }
  #main-content.sidebar-active {
    margin-left: 0;
  }
  #sidebar.open {
    transform: translateX(0);
  }
}
