/* Nexabot Minimal Dashboard - Custom Styles */

body {
  background-color: #090a0f;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f1017;
}
::-webkit-scrollbar-thumb {
  background: #262738;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b3c54;
}

/* Fixed Table Layout to prevent layout shifts */
.table-fixed-cols {
  table-layout: fixed;
  width: 100%;
}

.col-checkbox {
  width: 44px;
}
.col-preview {
  width: 68px;
}
.col-status {
  width: 135px;
}
.col-actions {
  width: 230px;
}

/* Modal and Glassmorphism */
.glass-panel {
  background: rgba(15, 16, 23, 0.85);
}

/* Spinner Animation: Smooth GPU rotation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite !important;
  display: inline-block;
}

/* Header optimization: render on dedicated composite layer */
.sticky-header {
  transform: translateZ(0);
  will-change: transform;
}

/* Dialog & Toast Animations */
@keyframes dialogIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-animate {
  animation: dialogIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-animate {
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
