/* Minimal styling */

/* style.css - redesigned UI styling (place in public/assets/css/style.css) */
/* Keep modal header/footer visible and make only modal body scrollable */
.modal-dialog {
  max-width: 1200px;
  margin: 1.75rem auto;
}
/* make status timeline shorter */
#modal-chart-status,
#chart-status {
  height: 60px !important;
}
.modal-content {
  /* limit modal height to viewport and use flex layout */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Make header/footer remain visible; modal-body will scroll */
.modal-header,
.modal-footer {
  flex: 0 0 auto;
  /* ensure header/footer don't become transparent when scrolled */
  background: var(--bs-body-bg, #fff);
  z-index: 2;
}

/* Allow body to scroll independently inside modal */
.modal-body {
  overflow: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch; /* smoother scrolling on mobile */
}

/* Optional: slightly reduce padding so charts fit better */
.modal-body .card { margin-bottom: 0.75rem; }

/* Ensure spinner and small controls remain visible */
#modal-loading-spinner {
  display: inline-block; /* controlled by JS show/hide */
}

/* Small responsive tweak for very narrow screens (avoid overflowing) */
@media (max-width: 576px) {
  .modal-dialog { margin: 0.5rem; }
  .modal-content { max-height: 94vh; }
}
body {
  background: #f7f9fb;
  color: #222;
}

.card.border-up {
  border-left: 4px solid #198754 ;
}

.card.border-down {
  border-left: 4px solid #dc3545 ;
}

.card .card-body canvas {
  width: 100% ;
}

.server-card .card-body {
  padding: 1rem;
}
.server-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

/* إضافة هامش للعناصر الأبناء ما عدا العنصر الأخير */
.server-card .meta > *:not(:last-child) {
  margin-right: 0.5rem;
}
.server-card .meta {
  display:flex;
  justify-content:space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.sparkline {
  height: 60px;
}

  #history-list::-webkit-scrollbar {
    width: 5px;
  }
  #history-list::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px;
  }
  #history-list::-webkit-scrollbar-thumb:hover {
    background: #555; 
  }
