/* ==========================================================================
   Salad Cloud SCE Dashboard - Core Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Setup */
:root {
  --bg-canvas: #07080c;
  --bg-sidebar: #0b0c12;
  --bg-panel: rgba(16, 18, 27, 0.75);
  --bg-panel-solid: #10121b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.15);
  
  /* Harmonious Dark Palette Colors */
  --color-cyan: #00f2fe;
  --color-cyan-glow: rgba(0, 242, 254, 0.3);
  --color-purple: #9b51e0;
  --color-purple-glow: rgba(155, 81, 224, 0.3);
  --color-stopped: #ff4d6d;
  --color-stopped-glow: rgba(255, 77, 109, 0.3);
  --color-warning: #f1c40f;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Font Families */
  --font-interface: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Animations */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Base Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  font-family: var(--font-interface);
  background-color: var(--bg-canvas);
  color: var(--color-text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
a:hover {
  opacity: 0.8;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Layout Structures
   ========================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  width: 100vw;
}

/* Sidebar Styling */
.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  height: 100%;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  padding-left: 8px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.logo-icon {
  color: #ffffff;
  width: 20px;
  height: 20px;
}

.brand-text h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Navigation Menu */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.menu-item {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--color-text-secondary);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-interface);
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

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

.menu-item.active {
  background-color: rgba(0, 242, 254, 0.08);
  color: var(--color-cyan);
  box-shadow: inset 0 0 1px 1px var(--border-glow);
}

.menu-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.menu-item:hover .menu-icon {
  transform: translateX(2px);
}

/* Connection Status Panel */
.sidebar-status-panel {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-indicator-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

.status-dot.offline {
  background-color: var(--color-stopped);
  box-shadow: 0 0 8px var(--color-stopped);
}

.status-indicator-wrapper span {
  font-size: 0.8rem;
  font-weight: 600;
}

.status-detail {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Display Canvas */
.main-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
  flex-wrap: wrap;
}

.header-title h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-title p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ==========================================================================
   Components & Panels
   ========================================================================== */
.view-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.view-panel {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
}

.view-panel.active {
  display: block;
}

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

/* Panel Card Design */
.panel-card {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.panel-card:hover {
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 242, 254, 0.02), var(--glass-shadow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-header-icon {
  width: 24px;
  height: 24px;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Helper Utilities */
.mb-4 { margin-bottom: 24px; }
.mt-4 { margin-top: 24px; }
.mt-3 { margin-top: 16px; }
.mt-2 { margin-top: 8px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.border-left { border-left: 1px solid var(--border-color); }
.hidden { display: none !important; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }

/* ==========================================================================
   Buttons and Forms
   ========================================================================== */
.btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  font-family: var(--font-interface);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

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

.btn-icon-only {
  padding: 10px;
  border-radius: 10px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #07080c;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.35);
}

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

.btn-danger {
  border-color: rgba(255, 77, 109, 0.3);
  color: var(--color-stopped);
}

.btn-danger:hover {
  background-color: rgba(255, 77, 109, 0.08);
  border-color: var(--color-stopped);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

/* Forms controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  font-family: var(--font-interface);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  width: 100%;
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 1px var(--color-cyan-glow);
}

/* Hide default HTML5 up/down spin arrows on numeric inputs globally */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.form-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.select-control {
  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='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Explicit dark theme options for select dropdowns to avoid white-on-white text bugs in Chrome/Edge */
.select-control option {
  background-color: var(--bg-panel-solid);
  color: var(--color-text-primary);
}

.input-password-wrapper {
  position: relative;
  width: 100%;
}

.input-password-wrapper input {
  padding-right: 46px;
}

.btn-toggle-visibility {
  background: transparent;
  border: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-visibility:hover {
  color: var(--color-text-secondary);
}

.btn-toggle-visibility svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Specific Views Detail
   ========================================================================== */

/* 1. Containers Grid View */
.containers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.container-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.container-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.container-card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.container-card-title h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.container-image-path {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  word-break: break-all;
}

/* Status Badges */
.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.status-badge-inline {
  display: inline-block;
}

.status-running {
  background-color: rgba(0, 242, 254, 0.08);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.status-stopped {
  background-color: rgba(255, 77, 109, 0.08);
  color: var(--color-stopped);
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.status-deploying, .status-transitioning {
  background-color: rgba(241, 196, 15, 0.08);
  color: var(--color-warning);
  border: 1px solid rgba(241, 196, 15, 0.25);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.container-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.spec-badge {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-badge svg {
  width: 12px;
  height: 12px;
}

.container-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.container-card-actions .btn {
  flex: 1;
}

/* 2. Replicas View Table */
.replica-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

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

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* 3. Terminal Log Component */
.terminal-panel {
  background-color: #050608;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 520px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background-color: #0b0c10;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot.red { background-color: #ff5f56; }
.terminal-dots .dot.yellow { background-color: #ffbd2e; }
.terminal-dots .dot.green { background-color: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.terminal-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.log-line {
  margin-bottom: 4px;
  word-break: break-all;
  white-space: pre-wrap;
}

.log-line.system-msg {
  color: var(--color-cyan);
}

.log-line.stdout {
  color: #e2e8f0;
}

.log-line.stderr {
  color: var(--color-stopped);
}

/* Settings Setup Guides */
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.instructions-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  background-color: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-panel-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--color-text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-container form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.col-6 { width: 50%; }
.col-4 { width: 33.33%; }
.col-8 { width: 66.66%; }

.env-vars-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.env-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

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

/* ==========================================================================
   Loading and Shimmers
   ========================================================================== */
.shimmer-loader {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.shimmer-card {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(90deg, #10121b 25%, #181b28 50%, #10121b 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}

.empty-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.empty-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ==========================================================================
   Notifications
   ========================================================================== */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -100px);
  z-index: 200;
  background-color: #0b0c12;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast-notification.active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-content svg {
  width: 18px;
  height: 18px;
  color: var(--color-cyan);
}

.toast-content span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Custom Multiselect Component */
.custom-multiselect {
  position: relative;
  width: 100%;
}

.multiselect-trigger {
  cursor: pointer;
  user-select: none;
  min-height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 36px;
}

.multiselect-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInFast var(--transition-fast) forwards;
}

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

.multiselect-search-wrapper {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}

.multiselect-search {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.multiselect-options {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.multiselect-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.multiselect-option-item.selected {
  color: var(--color-cyan);
  background-color: rgba(0, 242, 254, 0.05);
}

.multiselect-option-item input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.multiselect-option-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border-color: transparent;
}

.multiselect-option-item input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  border: solid #07080c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Premium Segmented View Control */
.segmented-control {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
  align-items: center;
}

.segment-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-interface);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segment-btn:hover {
  color: var(--color-text-primary);
}

.segment-btn.active {
  background-color: rgba(0, 242, 254, 0.08);
  color: var(--color-cyan);
  box-shadow: inset 0 0 1px 1px var(--border-glow);
}

/* Premium Profile Tag Badge */
.profile-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background-color: rgba(155, 81, 224, 0.08);
  color: var(--color-purple);
  border: 1px solid rgba(155, 81, 224, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* ==========================================================================
   Bulk Deploy Features & Custom Multiselect / Progress
   ========================================================================== */
.bulk-tab-btn {
  transition: all var(--transition-fast);
  outline: none;
}
.bulk-tab-btn:hover {
  color: var(--color-text-primary) !important;
}
.bulk-tab-btn.active {
  color: var(--color-cyan) !important;
  border-bottom: 2px solid var(--color-cyan) !important;
}
.bulk-tab-content {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
}
.bulk-tab-content.active {
  display: block;
}

/* Spinner Animation for Lucide */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1.5s linear infinite;
  display: inline-block;
}

/* Step list logging */
.bulk-step-row {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}
.bulk-step-row.success {
  border-color: rgba(0, 242, 254, 0.15);
  background: rgba(0, 242, 254, 0.02);
}
.bulk-step-row.failed {
  border-color: rgba(255, 77, 109, 0.15);
  background: rgba(255, 77, 109, 0.02);
}
.bulk-step-row.deploying {
  border-color: rgba(241, 196, 15, 0.15);
  background: rgba(241, 196, 15, 0.02);
}

.bulk-step-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.bulk-step-status {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.bulk-step-status.pending { color: var(--color-text-muted); }
.bulk-step-status.deploying { color: var(--color-warning); }
.bulk-step-status.success { color: var(--color-cyan); }
.bulk-step-status.failed { color: var(--color-stopped); }

.bulk-step-name {
  color: var(--color-text-primary);
  font-weight: 500;
}
.bulk-step-error {
  font-size: 0.72rem;
  color: var(--color-stopped);
  margin-top: 6px;
  word-break: break-all;
  display: block;
  font-family: var(--font-mono);
  background: rgba(255, 77, 109, 0.05);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 109, 0.1);
}

