/* --- Base Styles --- */
body.ss-body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

.ss-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Dark mode */
body.ss-body.ss-dark-mode {
  background-color: #121212;
  color: #f8f9fa;
}

body.ss-body.ss-dark-mode .ss-navbar {
  background-color: #050816;
}

body.ss-body.ss-dark-mode .ss-sidebar {
  background-color: #111827;
  border-color: #1f2933;
}

body.ss-body.ss-dark-mode .ss-card,
body.ss-body.ss-dark-mode .accordion-item {
  background-color: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

/* --- Navbar --- */
.ss-navbar {
  background-color: #343a40;
}

.ss-brand {
  color: #ffffff;
}

.ss-logo-chip {
  background-color: #495057;
  border-radius: 4px;
}

.ss-logo-text {
  color: #ffffff;
}

/* --- Sidebar --- */
.ss-sidebar {
  background-color: #ffffff;
  min-width: 220px;
}

.ss-sidebar-title {
  color: #6c757d;
  letter-spacing: 0.05em;
}

.ss-status-block {
  font-size: 0.8rem;
  color: #6c757d;
}

.ss-demo-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: #ffe8cc;
  color: #d9480f;
  font-size: 0.7rem;
}

/* Sidebar nav buttons full width */
.ss-nav-link {
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
}

/* --- Main Content --- */
.ss-main {
  overflow-y: auto;
  padding: 1rem;
}

.ss-card {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

/* --- Section Titles --- */
.ss-section-title {
  font-weight: 600;
}

/* --- Binary Buttons --- */
.binary-btn {
  min-width: 60px;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* --- Expand / Collapse Buttons --- */
#expand-all-btn,
#collapse-all-btn {
  font-size: 0.8rem;
}

/* --- Demo Patient Button (if added later) --- */
#load-demo-btn {
  margin-left: 10px;
  font-size: 0.8rem;
}

/* --- Inputs --- */
input.form-control,
select.form-select,
textarea.form-control {
  font-size: 0.875rem;
}

/* --- Decision Tree Section --- */
#decision-trees-container {
  background-color: #f1f3f5;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.85rem;
  max-height: 400px;
  overflow-y: auto;
}

body.ss-body.ss-dark-mode #decision-trees-container {
  background-color: #020617;
}

/* --- Settings Panel --- */
.ss-settings-panel {
  position: fixed;
  top: 56px; /* just below navbar */
  right: 0;
  width: 260px;
  background-color: #212529;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0 0 0 10px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ss-settings-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1100;
  background-color: #0d6efd;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

/* --- Misc --- */
.ss-divider {
  border-top: 1px solid #dee2e6;
}

.ss-muted-list {
  padding-left: 1.1rem;
}

.ss-muted-list li {
  font-size: 0.8rem;
}
