/*
This program has been developed by students from the bachelor Computer Science at Utrecht
University within the Software Project course.
© Copyright Utrecht University (Department of Information and Computing Sciences)
*/
.dashboardContainer {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Left = content, Right = logs */
  grid-template-rows: auto 1fr auto; /* Header, Main, Footer */
  grid-template-areas:
    "header logs"
    "main logs"
    "footer footer";
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: Arial, sans-serif;
}

/* HEADER */
.experimentOverview {
  grid-area: header;
  display: flex;
  color: color;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow);
  padding: 1rem;
  box-shadow: var(--panel-shadow);
  position: static; /* ensures it scrolls away */
}

.controlsButtons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  max-width: 260px;
  flex-wrap: wrap;

  button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
  }
}

.phaseProgress {
  margin-top: 0.5rem;
}

.phase {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin: 0 3px;
  text-align: center;
  line-height: 25px;
  background: gray;
}

.completed {
  background-color: green;
  color: white;
}

.current {
  background-color: rgb(255, 123, 0);
  color: white;
}

.connected {
  color: green;
  font-weight: bold;
}

.disconnected {
  color: red;
  font-weight: bold;
}

.pausePlayInactive{
  background-color: gray;
  color: white;
}

.pausePlayActive{
  background-color: green;
  color: white;
}

.next {
  background-color: #6c757d;
  color: white;
}

.stop {
  background-color: red;
  color: white;
}

.restartExperiment{
  background-color: red;
  color: white;
}

/* MAIN GRID */
.phaseOverview {
  grid-area: main;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 1rem;
  box-shadow: var(--panel-shadow);
  
}

.phaseBox {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--panel-shadow);
  padding: 1rem;
  display: flex;         
  flex-direction: column;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
  
  height: 250px;   
}

.phaseBox ul {
  list-style: none;
  padding: 0;
  margin: 0;
  
  overflow-y: auto;       
  flex-grow: 1;          
  

}

.phaseBox ul::-webkit-scrollbar {
  width: 6px;
}

.phaseBox ul::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.phaseOverviewText {
  grid-column: 1 / -1; /* make the title span across both columns */
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;            /* remove default section margin */
  padding: 0.25rem 0;   /* smaller internal space */
}

.phaseOverviewText h3{
  margin: 0;            /* removes top/bottom whitespace */
  padding: 0;           /* keeps spacing tight */
}

.phaseBox h3 {
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.checked::before {
  content: '✔️ ';
}

.statusIndicator {
  display: inline-block;
  margin-right: 10px;
  user-select: none; 
  transition: transform 0.1s ease;
  font-size: 1.1rem;
}

.statusIndicator.clickable {
  cursor: pointer;
}

.statusIndicator.clickable:hover {
  transform: scale(1.2);
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  transform: scale(1.2);
}

.active {
  opacity: 1;
}

.statusItem {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.itemDescription {
  line-height: 1.4;
}

/* FOOTER */
.controlsSection {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--panel-shadow);
  padding: 1rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.controlsSection button {
  background: var(--bg-surface);
  box-shadow: var(--panel-shadow);
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.gestures,
.speech,
.directSpeech {
  flex: 1;
}

.speechInput {
  display: flex;
  margin-top: 0.5rem;
}

.speechInput input {
  flex: 1;
  padding: 0.5rem;
  background-color: Canvas;
  color: CanvasText;
  border: 1px solid var(--border-color);
}

.speechInput button {
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background-color: Canvas;
  color: CanvasText;
  border: 1px solid var(--border-color);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .phaseOverview {
    grid-template-columns: 1fr;
  }

  .controlsSection {
    flex-direction: column;
  }
}
