[v-cloak] {
  display: none !important;
}

/* CSS Variables for Premium Dark Theme (Compact & Dense) */
:root {
  --bg-app: #080c14;
  --bg-panel: rgba(17, 24, 39, 0.6);
  --bg-panel-hover: rgba(26, 36, 56, 0.85);
  --bg-console: #030712;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-focus: rgba(0, 242, 254, 0.4);

  /* Vibrant Accents */
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --secondary-gradient: linear-gradient(135deg, #7f5af0 0%, #9d4edd 100%);
  --accent-cyan: #00f2fe;
  --accent-purple: #7f5af0;

  /* Status Colors */
  --status-active: #00f5a0;
  --status-stopped: #94a3b8;
  --status-warning: #ffb86c;
  --status-danger: #ff5555;

  /* Text */
  --text-main: #f8f9fa;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Transitions & Shadows */
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
  --panel-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  background-image:
    radial-gradient(at 5% 5%, rgba(127, 90, 240, 0.1) 0px, transparent 40%),
    radial-gradient(at 95% 95%, rgba(0, 242, 254, 0.08) 0px, transparent 40%);
  -webkit-font-smoothing: antialiased;
}

/* Main Layout Flex */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 2px rgba(0, 242, 254, 0.5));
}

.brand h1 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.indicator.online {
  background-color: var(--status-active);
  box-shadow: 0 0 6px var(--status-active);
}

.indicator.offline {
  background-color: var(--status-danger);
  box-shadow: 0 0 6px var(--status-danger);
}

/* Main Content Area */
.app-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar styling */
.sidebar {
  width: 240px;
  border-right: 1px solid var(--border-color);
  background: rgba(13, 19, 33, 0.3);
  display: flex;
  flex-direction: column;
}

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

.sidebar-header h2 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.codespace-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Codespace List Item Card (Dense) */
.codespace-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.codespace-card:hover {
  background: var(--bg-panel-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.codespace-card.active {
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 242, 254, 0.02);
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.card-name {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}

.card-row-actions {
  margin-top: 0.35rem;
  display: flex;
}

.card-btn-group {
  display: flex;
  gap: 0.25rem;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 0;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.card-btn:hover:not(:disabled):not([disabled]) {
  transform: scale(1.2);
  color: var(--text-main);
}

.card-btn:disabled,
.card-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.card-btn-add-xpra,
.card-btn-xpra-count {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lucide and other SVGs inside card buttons */
.card-btn svg,
.card-btn i {
  width: 12px;
  height: 12px;
  stroke-width: 2.2px;
  display: block;
}


.badge {
  font-size: 0;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  cursor: default;
  position: relative;
}

/* Status dot (universal) */
.badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Green: Available / Active / Public ── */
.badge.available,
.badge.active,
.badge.Available,
.badge.Active {
  color: var(--status-active);
}

/* ── Gray: Shutdown / Stopped / Offline / Private ── */
.badge.shutdown,
.badge.stopped,
.badge.Shutdown,
.badge.Stopped,
.badge.unavailable,
.badge.Unavailable {
  color: var(--status-stopped);
}

/* ── Amber: Starting / Provisioning / Queued / Checking / Warning ── */
.badge.starting,
.badge.Starting,
.badge.updating,
.badge.Updating,
.badge.queued,
.badge.Queued,
.badge.provisioning,
.badge.Provisioning,
.badge.creating,
.badge.Creating,
.badge.warning {
  color: var(--status-warning);
}

/* ── Red: Deleting / ShuttingDown / Error ── */
.badge.deleting,
.badge.Deleting,
.badge.shuttingdown,
.badge.shutting-down,
.badge.ShuttingDown,
.badge.ShutdownPending,
.badge.shutdownpending,
.badge.error {
  color: var(--status-danger);
}

/* ── Pinging dot for transitional / in-progress states ── */
.badge.starting::before,
.badge.Starting::before,
.badge.updating::before,
.badge.Updating::before,
.badge.queued::before,
.badge.Queued::before,
.badge.provisioning::before,
.badge.Provisioning::before,
.badge.creating::before,
.badge.Creating::before,
.badge.warning::before,
.badge.deleting::before,
.badge.Deleting::before,
.badge.shuttingdown::before,
.badge.shutting-down::before,
.badge.ShuttingDown::before,
.badge.ShutdownPending::before,
.badge.shutdownpending::before,
.badge.error::before {
  animation: dot-ping 1.4s ease-in-out infinite;
}

@keyframes dot-ping {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 0 0 currentColor;
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 4px 1px currentColor;
  }
}

/* Info Modal Table */
.info-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.info-modal-table th,
.info-modal-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.info-modal-table th {
  color: var(--text-dim);
  font-weight: 500;
  width: 100px;
  white-space: nowrap;
}

.info-modal-table td {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
}

/* Info Modal Sysinfo Section */
.info-sysinfo-section {
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.info-sysinfo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.info-sysinfo-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.info-sysinfo-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-sysinfo-timestamp {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.sysinfo-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}

.sysinfo-pulse.inactive {
  background-color: var(--text-dim);
}

.sysinfo-pulse.active {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: pulse-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse-ping {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 242, 254, 0.7);
  }

  100% {
    box-shadow: 0 0 0 6px rgba(0, 242, 254, 0);
  }
}


.info-sysinfo-pre {
  margin: 0;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 250px;
  overflow-y: auto;
  line-height: 1.5;
}

.btn-sm {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.04);
  color: var(--text-main);
}

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

/* Main Panel styling */
.main-panel {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  background: rgba(8, 12, 20, 0.1);
  display: flex;
  flex-direction: column;
}

/* Empty State view */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  text-align: center;
  gap: 0.5rem;
  padding: 2rem;
}

.empty-state svg {
  color: var(--text-dim);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
}

.empty-state p {
  max-width: 350px;
  font-size: 0.8rem;
}

/* Details Layout (Dense) */
.details-layout-dense {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

/* Metadata Table styles */

.font-mono {
  font-family: var(--font-mono);
}

/* XPRA Card Grid */
.xpra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  width: 100%;
}

.xpra-card {
  max-width: 350px;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}

.xpra-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-panel-hover);
}

.xpra-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.4rem;
}

.xpra-card-title {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-main);
  text-transform: uppercase;
}

.xpra-card-body {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.xpra-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xpra-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* Dense buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 4px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #040811;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.15);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--glow-shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-success {
  background: rgba(0, 245, 160, 0.1);
  color: var(--status-active);
  border-color: rgba(0, 245, 160, 0.15);
}

.btn-success:hover:not(:disabled) {
  background: rgba(0, 245, 160, 0.2);
}

.btn-warning {
  background: rgba(255, 184, 108, 0.1);
  color: var(--status-warning);
  border-color: rgba(255, 184, 108, 0.15);
}

.btn-warning:hover:not(:disabled) {
  background: rgba(255, 184, 108, 0.2);
}

.btn-danger {
  background: rgba(255, 85, 85, 0.1);
  color: var(--status-danger);
  border-color: rgba(255, 85, 85, 0.15);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 85, 85, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color-focus);
}

/* Real Terminal Modal Theme */
.terminal-modal {
  background-color: #080c14 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

.terminal-modal .modal-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-console-pre {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  color: #f1f5f9;
}

.modal-console-pre::-webkit-scrollbar {
  width: 6px;
}

.modal-console-pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-console-pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-script-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  transition: var(--transition-smooth);
  font-family: var(--font-mono);
}

.modal-script-btn:hover:not(:disabled) {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
}

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

.console-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.console-pulse.active {
  background-color: var(--status-active);
  box-shadow: 0 0 5px var(--status-active);
  animation: pulse-glow 1.5s infinite;
}

.console-pulse.inactive {
  background-color: var(--status-stopped);
}

@keyframes pulse-glow {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* Custom terminal color classes */
.log-status {
  color: #00f2fe;
  font-weight: 500;
}

.log-stdout {
  color: #e2e8f0;
}

.log-stderr {
  color: #f87171;
}

.log-error {
  color: #ef4444;
  font-weight: 600;
}

.log-success {
  color: #10b981;
  font-weight: 500;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal {
  background: #0d1321;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  padding: 1.25rem;
  box-shadow: var(--panel-shadow);
  animation: slide-down 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-danger {
  border-color: rgba(255, 85, 85, 0.4) !important;
  box-shadow: 0 8px 32px 0 rgba(255, 85, 85, 0.15) !important;
}

.modal-warning {
  border-color: rgba(255, 184, 108, 0.4) !important;
  box-shadow: 0 8px 32px 0 rgba(255, 184, 108, 0.15) !important;
}

@keyframes slide-down {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

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

.form-group select,
.form-group input {
  background: var(--bg-console);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 100%;
  transition: var(--transition-smooth);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--border-color-focus);
}

.form-group select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Loading animations */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 1.5rem 0;
  gap: 0.4rem;
}

.loading-spinner::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-dim);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* System Resource Widget Styles (Compact) */
.resource-card {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(13, 19, 33, 0.95);
  border: 1px solid var(--border-color-focus);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.resource-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.res-item {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.res-item.full-width {
  grid-column: span 2;
}

.res-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.res-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.res-main {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
}

.res-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.res-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-values {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.res-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  height: 4px;
  border-radius: 9999px;
  overflow: hidden;
}

.res-progress-fill {
  height: 100%;
  border-radius: 9999px;
}

.res-sub-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Pinging/Busy state for clicked action buttons */
.card-btn.busy,
.card-btn.pinging,
.btn.busy,
.btn.pinging {
  pointer-events: none !important;
  animation: button-ping 1.2s cubic-bezier(0.25, 0, 0, 1) infinite !important;
}

@keyframes button-ping {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0px currentColor;
    opacity: 0.6;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.95;
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    opacity: 0.6;
  }
}

/* Skeleton Loading Pulse Animation */
.skeleton-pulse {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  animation: skeleton-glow 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes skeleton-glow {
  0% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.75;
  }

  100% {
    opacity: 0.35;
  }
}

/* Visibility badge style (retaining text & icon) */
.badge.visibility-badge {
  font-size: 0.7rem !important;
  padding: 0.15rem 0.5rem 0.15rem 0.4rem !important;
  border-radius: 4px !important;
  border: 1px solid transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  width: auto !important;
  height: auto !important;
}

.badge.visibility-badge::before {
  display: none !important;
}

.badge.visibility-badge svg {
  width: 10px !important;
  height: 10px !important;
  stroke-width: 2.2px;
  display: inline-block !important;
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* Browser Management Popover (Inline Context Window) */
.browser-popover {
  position: fixed;
  z-index: 1000;
  width: 290px;
  max-width: calc(100vw - 20px);
  background: #090d16;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 242, 254, 0.08);
  backdrop-filter: blur(12px);
  padding: 0;
  overflow: hidden;
  animation: popover-fade-in 0.12s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes popover-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.popover-title {
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.popover-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  transition: color 0.15s ease;
}

.popover-close-btn:hover {
  color: var(--text-main);
}

.popover-body {
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.popover-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.browser-windows-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.25rem;
  background: #03060d;
}

.browser-win-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.45rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

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

.browser-win-title {
  font-size: 0.72rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.card-btn-manage-browsers.active-trigger {
  color: var(--accent-cyan) !important;
  transform: scale(1.2);
  filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.6));
}