/* Bluedrop Enterprise Console — Console-specific styles */

/* Service iframe — fills the content area */
.service-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0a0f;
}

/* Inline search input in header */
.search-input {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 2rem;
  color: #e5e7eb;
  font-size: 0.875rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.search-input:focus {
  outline: none;
  border-color: #e22658;
  background: rgba(31, 41, 55, 0.8);
}
.search-input::placeholder {
  color: #6b7280;
}

/* Command palette backdrop */
.palette-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Palette result items */
.palette-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  transition: background-color 0.1s;
  cursor: pointer;
}
.palette-item:hover,
.palette-item.active {
  background-color: rgba(31, 41, 55, 0.8);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast-in { animation: toast-in 0.25s ease-out; }
.toast-out { animation: toast-out 0.25s ease-in forwards; }

/* Service status badges */
.status-healthy { color: #34d399; }
.status-unhealthy { color: #fbbf24; }
.status-unreachable { color: #f87171; }
.status-unknown { color: #9ca3af; }

.status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.healthy { background-color: #34d399; }
.status-dot.unhealthy { background-color: #fbbf24; }
.status-dot.unreachable { background-color: #f87171; }
.status-dot.unknown { background-color: #9ca3af; }

/* Iframe loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Sidebar transition */
.sidebar {
  transition: width 0.2s ease;
  overflow: hidden;
}

/* Scrollbar for sidebar */
.sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 2px;
}

/* Nav links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
}
.nav-link:hover {
  color: #e5e7eb;
  background-color: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
  color: #fff;
  background-color: rgba(226, 38, 88, 0.15);
}
.nav-link.active svg {
  color: #e22658;
}