/* Make the iframe content fill the entire iframe */
html, body {
  background-color: black !important;
  color: white !important;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Bootstrap containers must stretch to full height */
.container-fluid,
.col-12 {
  background-color: black !important;
  color: white !important;
  min-height: 100vh;   /* CRITICAL */
}

/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */

body {
  margin: 0;
  padding: 0rem 2rem 2rem 0;  /* top, right, bottom, left */
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  text-align: left;
  width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  border-right: 1px solid #595959;
}

header {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between logo and h1 */
}

.logo {
  height: 40px; /* adjust as needed */
  width: auto;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: top;   /* vertical centering */
  align-items: center;       /* horizontal centering */
  height: 100vh;             /* full viewport height */
  text-align: center;
}

.header-bar {
  display: flex;
  justify-content: space-between;  /* h1 left, links right */
  align-items: center;             /* vertical alignment within the bar */
  padding: 1rem 2rem;
  background-color: #000000;
  color: #f8f8f8;
  border-bottom: 1px solid #ccc;
}

.header-bar h1 {
  margin: 0;
  font-size: 1.5rem;
}

.link-group a {
  margin-left: 1rem;
  text-decoration: none;
  color: #007BFF;
}

.link-group a:hover {
  text-decoration: underline;
}

form {
  background-color: #f9f9f9;
  color: #000000;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ohif-container {
  display: flex;
  flex-direction: row;
  height: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#webquiz_iframe {
  width: 50%;
  transition: width 0.3s ease, opacity 0.3s ease;
}

#webquiz_iframe.collapsed {
  width: 0;
  opacity: 0;
  pointer-events: none;
  flex-basis: 0 !important;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#ohif_iframe {
  flex-grow: 1;
  transition: width 0.3s ease;
}

#toggle-btn {
  background-color: #00B3F6;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

a {
  color: #00B3F6;
  font-size: 20px;
}

h1 {
  text-align: center;
}

h4{
font-weight: bold;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: inline-block;
  width: 200px;
}

input, select {
  width: 100px;
}

.form-button {
  margin-right: 1rem;
}

.button-group {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  border: 1px
}


.header-bar {
  display: flex;
  justify-content: space-between;  /* Push h1 left, links right */
  align-items: center;             /* Vertically align items */
  padding: .5rem;
  border-bottom: 1px solid #595959;   /* Optional: visual separation */
}

.header-bar h1 {
  margin: 0;
  font-size: 1.5rem;
}

.link-group a {
  margin-left: 1rem 0;
  text-decoration: none;
  color: #007BFF;                  /* Optional: link color */
}

.link-group a:hover {
  text-decoration: underline;
}

.content-area {
  flex: 1; /* Takes up remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* Even vertical spacing */
  align-items: center;
  padding: 2rem 0;
}


/* ============================ */
/*   Login styling   */
/* ============================ */
.login-container form input[type="email"],
.login-container form input[type="text"],
.login-container form input[type="password"] {
  width: 250px; /* Expands box width to fit email addresses */
  padding: 8px 10px; /* Adds comfortable inner spacing */
  font-size: 14px;
  box-sizing: border-box;
}

/* Ensure labels align cleanly next to wider inputs */
.login-container label {
  display: inline-block;
  width: 120px;
  text-align: right;
  margin-right: 10px;
}


/* ============================ */
/*   Management tasks styling   */
/* ============================ */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center; /* center the whole group */
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.company-name {
  font-size: 2rem;   /* increase size */
  font-weight: 600;    /* semi-bold */
}

/* Title centered under the logo/company name */
.page-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Container for the manager page */
.index-container {
  text-align: center;
}

.manager-button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;  
}

.level2-button {
  display: inline-block;
  padding: 10px 16px;
  background: #2f80ed;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.level2-button:hover {
  background: #2563c7;
}

/* Group container */
.task-group {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

/* Group title */
.task-title {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* Space between buttons */
.task-group form {
  margin: 0.5rem 0;
}


/* ============================ */
/*   Progress report styling   */
/* ============================ */
/* .progress-report {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.progress-report th,
.progress-report td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}

.progress-report th {
  background-color: #f2f2f2;
}

.progress-report tbody td {
  color: #666;
  text-align: center;
} */

table.progress-report {
  border-collapse: collapse;
}

table.progress-report th,
table.progress-report td {
  padding: 4px 8px;
  text-align: left;
  white-space: nowrap; /* prevents wrapping */
}

table.progress-report th.study-col,
table.progress-report td.study-col {
  width: 220px; /* ~20 chars */
}

table.progress-report th.user-col,
table.progress-report td.user-col {
  width: 120px; /* ~8 chars + spacing */
}
