/*Banner (+ Footer)*/
.header-banner { 
  margin: 0px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  color: gray;
  padding-bottom: 10px;
  padding-top: 10px;
}

.heymans-banner {
  color: #dc002d;
}

.username {
  font-style: italic;
  letter-spacing: 0.3px;
}

/*  footer bar is idendictal to the course-title bar */
.footer-bar {
  background-color: #f6f6f6; /* Light gray background */
  color: gray; /* Black text */
  text-align: center; /* Center the course title text */
  padding: 5px;
  font-size: 0.8em; /* Large font size for the title */
}

.footer-bar a {
  color: gray; /* Black text */
}

.top-menu { 
  background-color: #0095e9; /* Lighter blue */ 
  padding: 10px 20px; 
  display: flex; 
  justify-content: center; 
}
.top-menu ul { list-style: none; padding: 0; margin: 0; text-align: center; font-family: 'Arial', sans-serif; font-size: 24px; display: flex; justify-content: space-between; }
.top-menu li { display: inline-block; /* Adjust as needed */ }
.top-menu a { text-decoration: none; color: white; padding: 0 15px; /* Add padding to increase clickable area */ }

/* Default nav link styling (active/normal) */
.nav-link {
  text-decoration: none;
  color: white;
  padding: 0 15px;
  font-weight: 600;
}

/* Disabled styling only applies to links with .disabled class */
.nav-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-bottom: none;
}

.divider {
  background-color: #FFFFFF; /* White background */
  height: 5px; /* Thinner height for the divider */
}

/* Left Menu Styling */
.left-menu { 
  background-color: #f6f6f6; 
  align-self: flex-start;
  flex-shrink: 0;
  flex-grow: 0;

  border: 1px solid #e0e0e0;     /* Subtle border */
  border-radius: 3px;            /* Rounded corners */
}

.left-menu ul { 
	list-style: none; 
	margin: 0;
  padding: 0;
}
.left-menu li { 
  cursor: pointer; 
  padding: 5px 5px 5px 5px;
  margin: 0;
}

.left-menu li:hover {
  background-color: #e0e0e0; /* Darker shade of gray on hover */
}

.left-menu li.selected {
  background-color: #d0d0d0; /* Darker shade of gray for selected item */
}

.left-menu h3 { 
  font-size: 16px;
  cursor: pointer; /* Makes the h3 items indicate they are clickable */
  background-color: #f6f6f6; /* Ensure consistent background */
  margin: 0;
  padding: 5px 5px 5px 5px
}

.left-menu h3:hover {
  background-color: white; /* Turns into 'button' on hover */
  color: #0095e9;
}

/* Buttons; marks interfacing with an LLM */
.llm-button {
  background-color: #006300; /* Green background */
  color: white; /* White text */
  border: 2px solid  #006300; 
  padding: 10px 15px; /* Padding around the text: top/bottom, left,right */
  cursor: pointer; /* Change cursor to pointer on hover */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px; /* Font size */
}

.llm-button:hover {
  background-color: white; /* white background */
  color: #006300; /* green text */
}


.llm-button:disabled {
  background-color: #bfbfbf; /* Gray background for disabled state */
  border-color: #bfbfbf; /* Gray background for disabled state */
  cursor: not-allowed; /* Change cursor to not-allowed */
}

.regular-button {
  background-color: #0095e9; /* blue background */
  color: white; /* White text */
  border: 2px solid #0095e9; /* Adding border with the same color as background */
  padding: 10px 15px; /* Padding around the text */
  cursor: pointer; /* Change cursor to pointer on hover */
  border-radius: 5px; /* Rounded corners */
  font-size: 16px; /* Font size */
}

.regular-button:hover {
  background-color: white; /* white background */
  color: #0095e9; /* blue text */
}

.regular-button:disabled {
  background-color: #bfbfbf; /* Gray background for disabled state */
  border-color: #bfbfbf; /* Gray background for disabled state */
  cursor: not-allowed; /* Change cursor to not-allowed */
}

/*spinners shown next to buttons*/
.spinner-gap {
  display: inline-block;
  width: 18px;
  height: 16px;
  vertical-align: middle;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 2px; 
  border: 2px solid #ccc;
  border-top: 2px solid #888;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  position: relative;
}

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




/* Styling for overlay notifications */
.overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.overlay-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.alarm-symbol {
    font-size: 24px;
    color: red;
}

.heymans-msg {
  font-style: italic;
  color: #006300;
  letter-spacing: 0.3px;
}

.focus-object-line {
/*  margin-top: 1em;*/
  margin-bottom: 1em;
}

.focus-object-line h2 {
  margin: 0;
  padding-top: 0;
}

.focus-object-msg {
  font-style: italic;
  color: gray;
  font-size: 0.95em;
  margin: 0.3em 0 0 0;
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  overflow: hidden;
}

.card-header {
  background: rgba(0, 149, 233, 0.08);
  padding: 0.75em 1em;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.card-header.disabled {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}


.card-body {
  padding: 1em;
}

.toggle-icon {
  font-size: 1.2em;
/*  color: gray;*/
}

/* Slide/fade animation */
.collapse-enter-active,
.collapse-leave-active {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.collapse-enter-from,
.collapse-leave-to {
  max-height: 0;
  opacity: 0;
}

.collapse-enter-to,
.collapse-leave-from {
  max-height: 500px; /* reasonable guess */
  opacity: 1;
}


.markdown-rendered {
  max-width: 800px;
  margin: 1em auto;
  padding: 1.5em;
  background-color: rgba(0, 99, 0, 0.08); /* matches your green */
  border-top: 4px solid #006300;
  border-bottom: 4px solid #006300;
  border-radius: 4px;
  font-size: 0.95em;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow-y: auto; /* enable vertical scrolling */
  max-height: 400px; /* set your preferred limit */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.markdown-rendered h1,
.markdown-rendered h2 {
  font-size: 1.2em;
  margin-top: 1em;
}

.markdown-rendered p {
  margin-bottom: 0.8em;
}

/* Markdown table formatting*/
.markdown-rendered table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 0.95em;
}

.markdown-rendered th,
.markdown-rendered td {
  border: 1px solid #333; /* Thin black border */
  padding: 0.5em 0.75em;
  text-align: left;       /* Left-align all cells */
}

.markdown-rendered th {
  background-color: #e7e7e7;
  font-weight: 600;
}

.explanation-box {
  border: 1px dashed #ccc;
  background-color: #f9f9f9;
  color: #444;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.explanation-box a {
  color: #337ab7;
  text-decoration: underline;
}

/* Generic inline button label style */
.button-label {
  display: inline-block;
  margin: 1px 0;               /* <- Add vertical spacing */
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: default;
  border: 2px solid transparent;
  transition: background-color 0.1s, color 0.1s;
}

/* Match regular button */
.regular-button-label {
  background-color: #0095e9;
  color: white;
  border-color: #0095e9;
}
.regular-button-label:hover {
  background-color: white;
  color: #0095e9;
}

/* Match LLM button */
.llm-button-label {
  background-color: #006300;
  color: white;
  border-color: #006300;
}
.llm-button-label:hover {
  background-color: white;
  color: #006300;
}

/*For me, just to make debg info formatted reasonably.*/
.debuginfo {
  display: none;
  max-width: 800px;
  overflow-x: auto;
  background-color: #f6f6f6;
  border: 1px solid #ccc;
  padding: 1em;
  margin: 2em auto;
  font-size: 0.85em;
  line-height: 1.4;
  white-space: pre-wrap;
}



