/* ==========================================
   ArbiMax Bots Page - Blue Identity Redesign
   Build: 20260201_BOTS_REDESIGN
   ==========================================
   
   PURPOSE:
   Complete UI/UX redesign of the Trading Bots page
   using the new solid-blue ArbiMax identity.
   
   FEATURES:
   - Clean capsule-based bot cards
   - Modern modal system with blur overlay
   - NO gradients, NO purple
   - RTL-first layout
   - Clear status distinction
   
   ========================================== */

/* ==========================================
   SECTION 1: CSS VARIABLES (Bots Scope)
   ========================================== */
.bots-page,
#bots-container,
.bot-inspection-modal {
  /* Primary Blue Identity */
  --bot-accent: #2B8CFF;
  --bot-accent-soft: rgba(43, 140, 255, 0.15);
  --bot-accent-hover: rgba(43, 140, 255, 0.10);
  --bot-accent-active: rgba(43, 140, 255, 0.22);
  --bot-accent-border: rgba(43, 140, 255, 0.35);
  --bot-accent-strong: rgba(43, 140, 255, 0.50);
  --bot-accent-glow: rgba(43, 140, 255, 0.25);
  
  /* Dark Base Colors */
  --bot-bg-base: #0B1220;
  --bot-bg-card: #0E1626;
  --bot-bg-elevated: rgba(14, 22, 38, 0.95);
  --bot-bg-input: rgba(11, 18, 32, 0.8);
  
  /* Text Colors */
  --bot-text: #EAF2FF;
  --bot-text-muted: rgba(234, 242, 255, 0.65);
  --bot-text-dim: rgba(234, 242, 255, 0.40);
  
  /* Border Colors */
  --bot-border: rgba(43, 140, 255, 0.18);
  --bot-border-hover: rgba(43, 140, 255, 0.35);
  --bot-border-active: rgba(43, 140, 255, 0.50);
  
  /* Status Colors */
  --bot-status-active: #10B981;
  --bot-status-paused: #F59E0B;
  --bot-status-stopped: #6B7280;
  --bot-status-error: #EF4444;
  
  /* Transitions */
  --bot-transition: 160ms ease;
}

/* ==========================================
   SECTION 2: RESET LEGACY STYLES
   ========================================== */
.bots-page .card,
.bots-page .bot-card,
.bots-page .metric-grid,
.bots-page .pill,
.bots-page .btn {
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* ==========================================
   SECTION 3: PAGE SHELL
   ========================================== */
.bots-page {
  direction: rtl;
  padding: 24px;
  min-height: 100vh;
  background: var(--bot-bg-base);
}

.bots-page .page-shell {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================
   SECTION 4: PAGE HEADER
   ========================================== */
.bots-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bot-border);
}

.bots-page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--bot-text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bots-page-title .icon {
  font-size: 28px;
  opacity: 0.9;
}

.bots-page-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--bot-text-muted);
}

.bots-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bot-accent-soft);
  border: 1px solid var(--bot-border);
  color: var(--bot-accent);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================
   SECTION 5: TRADING CONTROL PANEL
   ========================================== */
.bots-page .trading-control-panel {
  background: var(--bot-bg-card);
  border: 1px solid var(--bot-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.bots-page .trading-control-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bots-page .trading-control-panel .panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bot-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bots-page .trading-control-panel .panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bots-page .trading-status-info {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bot-border);
  font-size: 12px;
  color: var(--bot-text-muted);
}

/* ==========================================
   SECTION 6: STATUS BADGES (Pills)
   ========================================== */
.bots-page .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.bots-page .status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--bot-status-active);
}

.bots-page .status-pill.paused {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--bot-status-paused);
}

.bots-page .status-pill.stopped,
.bots-page .status-pill.inactive {
  background: rgba(107, 114, 128, 0.15);
  border-color: rgba(107, 114, 128, 0.35);
  color: var(--bot-status-stopped);
}

.bots-page .status-pill.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--bot-status-error);
}

/* Status dot indicator */
.bots-page .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bots-page .status-dot.active {
  background: var(--bot-status-active);
}

.bots-page .status-dot.paused {
  background: var(--bot-status-paused);
}

.bots-page .status-dot.stopped {
  background: var(--bot-status-stopped);
}

.bots-page .status-dot.error {
  background: var(--bot-status-error);
}

/* ==========================================
   SECTION 7: BOT CARDS GRID
   ========================================== */
.bots-page .bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

@media (max-width: 768px) {
  .bots-page .bots-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SECTION 8: BOT CARD
   ========================================== */
.bots-page .bot-card {
  background: var(--bot-bg-card);
  border: 1px solid var(--bot-border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: 
    border-color var(--bot-transition),
    transform var(--bot-transition),
    background var(--bot-transition);
}

.bots-page .bot-card:hover {
  border-color: var(--bot-border-hover);
  background: rgba(14, 22, 38, 0.98);
  transform: translateY(-2px);
}

.bots-page .bot-card:active {
  transform: translateY(0);
}

.bots-page .bot-card.selected {
  border-color: var(--bot-accent-strong);
}

/* Card status bar (top border accent) */
.bots-page .bot-card .status-bar {
  height: 3px;
  width: 100%;
}

.bots-page .bot-card .status-bar.active {
  background: var(--bot-status-active);
}

.bots-page .bot-card .status-bar.paused {
  background: var(--bot-status-paused);
}

.bots-page .bot-card .status-bar.stopped {
  background: var(--bot-status-stopped);
}

.bots-page .bot-card .status-bar.error {
  background: var(--bot-status-error);
}

/* Card content */
.bots-page .bot-card-content {
  padding: 18px 20px;
}

/* Card header */
.bots-page .bot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.bots-page .bot-card-info {
  flex: 1;
  min-width: 0;
}

.bots-page .bot-card-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bot-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bots-page .bot-card-id {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bot-bg-input);
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: var(--bot-text-dim);
}

.bots-page .bot-card-pause-notice {
  margin-top: 6px;
  font-size: 11px;
  color: var(--bot-status-paused);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card metrics grid */
.bots-page .bot-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.bots-page .bot-metric {
  background: var(--bot-bg-input);
  border-radius: 10px;
  padding: 12px;
}

.bots-page .bot-metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bot-text-muted);
  margin-bottom: 4px;
}

.bots-page .bot-metric-value {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  color: var(--bot-text);
}

/* Card accounts section */
.bots-page .bot-card-accounts {
  background: var(--bot-bg-input);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.bots-page .bot-card-accounts .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bot-text-muted);
  margin-bottom: 4px;
}

.bots-page .bot-card-accounts .value {
  font-size: 13px;
  color: var(--bot-text);
  line-height: 1.5;
}

.bots-page .bot-card-accounts .empty {
  color: var(--bot-text-dim);
  font-style: italic;
}

/* Card actions */
.bots-page .bot-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--bot-border);
}

/* ==========================================
   SECTION 9: BUTTONS
   ========================================== */
.bots-page .btn-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--bot-border);
  background: var(--bot-bg-card);
  color: var(--bot-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--bot-transition);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.bots-page .btn-bot:hover {
  background: var(--bot-accent-hover);
  border-color: var(--bot-border-hover);
  color: var(--bot-text);
}

.bots-page .btn-bot:active {
  background: var(--bot-accent-soft);
}

.bots-page .btn-bot:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary action button */
.bots-page .btn-bot.primary {
  background: var(--bot-accent-soft);
  border-color: var(--bot-accent-border);
  color: var(--bot-accent);
}

.bots-page .btn-bot.primary:hover {
  background: var(--bot-accent-active);
  border-color: var(--bot-accent-strong);
}

/* Success button */
.bots-page .btn-bot.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--bot-status-active);
}

.bots-page .btn-bot.success:hover {
  background: rgba(16, 185, 129, 0.20);
}

/* Warning button */
.bots-page .btn-bot.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--bot-status-paused);
}

.bots-page .btn-bot.warning:hover {
  background: rgba(245, 158, 11, 0.20);
}

/* Danger button */
.bots-page .btn-bot.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--bot-status-error);
}

.bots-page .btn-bot.danger:hover {
  background: rgba(239, 68, 68, 0.20);
}

/* Large header button */
.bots-page .btn-bot.large {
  padding: 12px 24px;
  font-size: 14px;
}

/* ==========================================
   SECTION 10: EMPTY STATE
   ========================================== */
.bots-page .bots-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bot-bg-card);
  border: 1px dashed var(--bot-border);
  border-radius: 16px;
}

.bots-page .bots-empty-state .icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.4;
}

.bots-page .bots-empty-state .message {
  font-size: 15px;
  color: var(--bot-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.bots-page .bots-empty-state .actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================
   SECTION 11: ERROR STATE
   ========================================== */
.bots-page .bots-error-state {
  background: var(--bot-bg-card);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 16px;
  padding: 30px 24px;
}

.bots-page .bots-error-state .title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bot-status-error);
}

.bots-page .bots-error-state .message {
  font-size: 14px;
  color: var(--bot-text-muted);
  margin-bottom: 20px;
}

/* ==========================================
   SECTION 12: LOADING / SKELETON
   ========================================== */
.bots-page .bot-skeleton {
  background: var(--bot-bg-card);
  border: 1px solid var(--bot-border);
  border-radius: 16px;
  padding: 20px;
  animation: bot-skeleton-pulse 1.5s ease-in-out infinite;
}

.bots-page .skeleton-line {
  height: 12px;
  background: rgba(43, 140, 255, 0.08);
  border-radius: 6px;
  margin-bottom: 12px;
}

.bots-page .skeleton-line.short { width: 40%; }
.bots-page .skeleton-line.medium { width: 65%; }
.bots-page .skeleton-line.long { width: 90%; }

@keyframes bot-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ==========================================
   SECTION 13: BOT INSPECTION MODAL (OVERLAY)
   ========================================== */
.bot-inspection-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  will-change: opacity;
}

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

/* Prevent body scroll when modal open */
body.bot-modal-open,
html.bot-modal-open {
  overflow: hidden !important;
}

/* ==========================================
   SECTION 14: MODAL DIALOG
   ========================================== */
.bot-modal-dialog {
  position: relative;
  width: min(880px, 94vw);
  max-height: min(760px, 90vh);
  background: var(--bot-bg-elevated);
  border: 1px solid var(--bot-accent-border);
  border-radius: 20px;
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(43, 140, 255, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: 
    opacity 180ms ease,
    transform 180ms ease;
  direction: rtl;
}

.bot-inspection-modal.active .bot-modal-dialog {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================
   SECTION 15: MODAL HEADER
   ========================================== */
.bot-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 26px;
  border-bottom: 1px solid var(--bot-border);
  background: rgba(43, 140, 255, 0.04);
}

.bot-modal-header-info {
  flex: 1;
  min-width: 0;
}

.bot-modal-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bot-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bot-modal-id {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bot-bg-input);
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--bot-text-dim);
}

.bot-modal-mode {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bot-modal-mode.live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--bot-status-active);
}

.bot-modal-mode.paper {
  background: var(--bot-accent-soft);
  border: 1px solid var(--bot-border);
  color: var(--bot-accent);
}

/* Close button */
.bot-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--bot-border);
  background: var(--bot-bg-card);
  color: var(--bot-text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--bot-transition);
  flex-shrink: 0;
}

.bot-modal-close:hover {
  background: var(--bot-accent-hover);
  border-color: var(--bot-border-hover);
}

.bot-modal-close:active {
  background: var(--bot-accent-soft);
}

/* ==========================================
   SECTION 16: MODAL CONTENT
   ========================================== */
.bot-modal-content {
  padding: 0;
  max-height: calc(90vh - 180px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Custom scrollbar */
.bot-modal-content::-webkit-scrollbar {
  width: 6px;
}

.bot-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.bot-modal-content::-webkit-scrollbar-thumb {
  background: var(--bot-border);
  border-radius: 3px;
}

.bot-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--bot-border-hover);
}

/* ==========================================
   SECTION 17: MODAL SECTIONS
   ========================================== */
.bot-modal-section {
  padding: 22px 26px;
  border-bottom: 1px solid var(--bot-border);
}

.bot-modal-section:last-child {
  border-bottom: none;
}

.bot-modal-section-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bot-text-muted);
}

/* Stats grid */
.bot-modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .bot-modal-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bot-modal-stat {
  background: var(--bot-bg-input);
  border: 1px solid var(--bot-border);
  border-radius: 12px;
  padding: 14px;
}

.bot-modal-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bot-text-muted);
  margin-bottom: 6px;
}

.bot-modal-stat-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--bot-text);
}

.bot-modal-stat-value.positive {
  color: var(--bot-status-active);
}

.bot-modal-stat-value.negative {
  color: var(--bot-status-error);
}

/* Strategy/Config info */
.bot-modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bot-border);
}

.bot-modal-info-row:last-child {
  border-bottom: none;
}

.bot-modal-info-label {
  font-size: 13px;
  color: var(--bot-text-muted);
}

.bot-modal-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--bot-text);
}

/* Accounts list */
.bot-modal-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-modal-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bot-bg-input);
  border: 1px solid var(--bot-border);
  border-radius: 10px;
}

.bot-modal-account-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bot-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--bot-accent);
  border: 1px solid var(--bot-border);
  flex-shrink: 0;
}

.bot-modal-account-info {
  flex: 1;
  min-width: 0;
}

.bot-modal-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bot-text);
}

.bot-modal-account-exchange {
  font-size: 12px;
  color: var(--bot-text-muted);
}

/* ==========================================
   SECTION 18: MODAL FOOTER
   ========================================== */
.bot-modal-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 26px;
  border-top: 1px solid var(--bot-border);
  background: rgba(0, 0, 0, 0.15);
}

.bot-modal-footer .btn-bot {
  flex: 0 0 auto;
}

/* ==========================================
   SECTION 19: MODAL LOADING STATE
   ========================================== */
.bot-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--bot-text-muted);
}

.bot-modal-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bot-border);
  border-top-color: var(--bot-accent);
  border-radius: 50%;
  animation: modal-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

/* ==========================================
   SECTION 20: ACCESSIBILITY
   ========================================== */
.bot-modal-dialog[aria-modal="true"] {
  /* Focus trap styles */
}

.bot-modal-dialog:focus {
  outline: none;
}

/* Focus visible for keyboard navigation */
.bots-page .btn-bot:focus-visible,
.bot-modal-close:focus-visible {
  outline: 2px solid var(--bot-accent);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.bot-modal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   SECTION 21: DEBUG INFO (Optional)
   ========================================== */
.bots-page .debug-panel {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bot-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.bots-page .debug-panel summary {
  cursor: pointer;
  color: var(--bot-accent);
  font-weight: 600;
  font-size: 13px;
}

.bots-page .debug-panel .debug-content {
  margin-top: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--bot-text-muted);
  line-height: 1.8;
}

/* ==========================================
   SECTION 22: RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 640px) {
  .bots-page {
    padding: 16px;
  }
  
  .bots-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bots-page-title {
    font-size: 22px;
  }
  
  .bot-modal-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px;
  }
  
  .bot-modal-header,
  .bot-modal-section,
  .bot-modal-footer {
    padding: 16px 18px;
  }
  
  .bot-modal-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .bot-modal-footer {
    flex-direction: column;
  }
  
  .bot-modal-footer .btn-bot {
    width: 100%;
  }
}

/* ==========================================
   SECTION 23: PRINT STYLES
   ========================================== */
@media print {
  .bot-inspection-modal {
    display: none !important;
  }
  
  .bots-page .btn-bot {
    display: none;
  }
}

/* ==========================================
   SECTION 24: RTL ADJUSTMENTS
   ========================================== */
[dir="ltr"] .bots-page,
.bots-page[dir="ltr"] {
  direction: ltr;
}

[dir="ltr"] .bot-modal-dialog,
.bot-modal-dialog[dir="ltr"] {
  direction: ltr;
}

/* ==========================================
   SECTION 25: TRANSITIONS (Page Entry)
   ========================================== */
.bots-page .bot-card {
  animation: bot-card-enter 300ms ease backwards;
}

.bots-page .bot-card:nth-child(1) { animation-delay: 0ms; }
.bots-page .bot-card:nth-child(2) { animation-delay: 50ms; }
.bots-page .bot-card:nth-child(3) { animation-delay: 100ms; }
.bots-page .bot-card:nth-child(4) { animation-delay: 150ms; }
.bots-page .bot-card:nth-child(5) { animation-delay: 200ms; }
.bots-page .bot-card:nth-child(6) { animation-delay: 250ms; }

@keyframes bot-card-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
