/* ==============================================================================
   botamusique PWA Manager - Modern Responsive CSS
   Dark-first, Mobile-optimized, Glassmorphism, PWA Standalone Ready
   ============================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-input: #090d16;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-cyan: 0 0 20px rgba(56, 189, 248, 0.25);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Top Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.app-logo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.logo-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-pwa {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* SSL Badge */
.ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
}

.ssl-badge .icon-svg {
  width: 14px;
  height: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-cyan);
}

.btn-danger-icon:hover {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.4);
}

.btn-install {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #041226;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.btn-outline-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.2);
}

.btn-outline-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.btn-outline-success:hover {
  background: rgba(16, 185, 129, 0.2);
}

.btn-outline-danger {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

.btn-outline-cyan {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-outline-cyan:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}

.btn-block {
  width: 100%;
}

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

/* Spin animation */
@keyframes spin {
  100% { transform: rotate(360deg); }
}

.spinning {
  animation: spin 0.8s linear infinite;
}

/* Main Content */
.app-main {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Summary Section */
.summary-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.stats-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.stat-content {
  display: flex;
  flex-direction: column;
}

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

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-rose); }
.text-muted { color: var(--text-muted); }

.global-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.auto-refresh-toggle input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

.bulk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Instances Section */
.instances-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-wrapper {
  min-width: 280px;
}

.search-input {
  width: 100%;
}

/* Form inputs */
.form-input {
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Grid of Bot Instances */
.instances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

/* Loading State */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Instance Card */
.instance-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.instance-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md), var(--shadow-cyan);
  transform: translateY(-2px);
}

/* Card Header */
.card-header {
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bot-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bot-id-pill {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.bot-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.status-running {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.status-running .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-stopped {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}
.status-stopped .status-dot {
  background: #64748b;
}

.status-failed {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}
.status-failed .status-dot {
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

/* Card Body: Items Inventory */
.card-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.inventory-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  padding-bottom: 0.45rem;
}

.inventory-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-key {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 90px;
  flex-shrink: 0;
}

.item-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.item-val-code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.password-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-eye {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-eye:hover {
  opacity: 1;
}

.badge-ducking {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.ducking-true {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.ducking-false {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Card Actions */
.card-actions {
  padding: 0.85rem 1.25rem 1.1rem;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-action-group {
  display: flex;
  gap: 0.35rem;
}

.btn-settings {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #041226;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.btn-settings:hover {
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-lg {
  max-width: 820px;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.4rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
}

/* Form Layout inside Settings Modal */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-col-12 { grid-column: span 12; }
.form-col-8 { grid-column: span 8; }
.form-col-4 { grid-column: span 4; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.required {
  color: var(--accent-rose);
}

.help-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: normal;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action .form-input {
  width: 100%;
  padding-right: 2.5rem;
}

.btn-icon-inner {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.avatar-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.avatar-input-wrapper .form-input {
  flex: 1;
}

.file-upload-btn {
  white-space: nowrap;
}

.upload-progress {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-top: 0.25rem;
}

/* Switch for Ducking */
.switch-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.switch-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.restart-checkbox-group {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Terminal logs modal */
.terminal-body {
  background: #030712;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.terminal-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.terminal-indicator {
  font-size: 0.72rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-left: 0.5rem;
}

.terminal-screen {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 1rem;
  line-height: 1.45;
  height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Login Modal */
.login-backdrop {
  background: #0b0f19;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.login-logo-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
}

.login-logo {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.login-input {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.login-error-msg {
  color: var(--accent-rose);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1e293b;
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideInRight 0.3s ease forwards;
  min-width: 280px;
  max-width: 420px;
}

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

.toast-success { border-left-color: var(--accent-green); }
.toast-error { border-left-color: var(--accent-rose); }
.toast-warning { border-left-color: var(--accent-amber); }

/* Footer */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-header {
    padding: 0.75rem 1rem;
  }
  
  .brand-title {
    font-size: 1.05rem;
  }
  
  .brand-subtitle {
    display: none;
  }
  
  .app-main {
    padding: 1rem;
  }
  
  .instances-grid {
    grid-template-columns: 1fr;
  }
  
  .form-col-8, .form-col-4 {
    grid-column: span 12;
  }
  
  .summary-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bulk-buttons {
    width: 100%;
  }
  
  .bulk-buttons .btn {
    flex: 1;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }
}
