/* Font Styles */

@font-face {
  font-family: "FuseV2";
  src: url("../fonts/FuseV.2Display-Black.otf");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Fuse";
  src: url("../fonts/Fuse-Bold.otf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueRoman.otf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueBold.otf");
  font-weight: 700;
  font-style: normal;
}

h1,
.h1 {
  font-family: FuseV2, "Helvetica";
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 0px;
}

h2,
.h2 {
  font-family: FuseV2, "Helvetica";
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 0px;
}

h3,
.h3 {
  font-family: FuseV2, "Helvetica";
  font-size: 26px;
  line-height: 26px;
  letter-spacing: 0px;
}

h4,
.h4 {
  font-family: FuseV2, "Helvetica";
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0px;
}

h5,
.h5 {
  font-family: FuseV2, "Helvetica";
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0px;
}

h6,
.h6 {
  font-family: FuseV2, "Helvetica";
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 0px;
}

.blue-text {
  color: #1090d5;
}

.white-text {
  color: white;
}

.black-text {
  color: black;
}

.pointer {
  cursor: pointer;
}

.body-bold {
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
}

.section-intro {
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
}

/* Base Layout Styles */

html {
  height: 100vh;
}

body {
  min-height: 100vh;
  height: 100vh;
  font-family: HelveticaNeue, "Helvetica";
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  font-weight: 400;
  /* display: flex;
  flex-direction: column;
  align-items: center; */
}

main.container {
  flex-grow: 1;
  /* min-height: calc(100vh - 120px); */
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  margin: 0;
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  transition: padding-left 0.3s ease-in-out;
  /* padding: 0 20px; */
}

body:has(.offcanvas.show) main.container {
  padding-left: 120px;
}


@media (max-width: 992px) {
  main.container {
    height: auto;
  }
}

@media (max-height: 760px) {
  main.container {
    height: auto;
  }
  
  .overflow-auto {
    max-height: 150vh !important;
  }
}

.row {
  min-height: 0;
}

.d-flex {
  min-height: 0;
}

/* Header and Sidebar Styles */

#logo {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: block;
}

#header {
  display: flex;
  align-items: center;
  height: 100px;
  min-height: 100px;
  width: 100%;
  flex-shrink: 0;
  padding: 0 10px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000; /* Ensure header stays on top */
}

#menu-toggle {
  font-size: 2rem;
  color: white;
  background-color: #1090d5;
  height: 80px;
  width: 80px;
  border-radius: 0;
}


.nav-pills .nav-item .nav-link {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  font-family: Fuse, FuseV2, "Helvetica";
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0px;
  padding: 0.75rem 1.25rem;
  text-align: center;
}

.nav-link .bi {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

button .bi {
  font-size: 1.25rem;
}

button:has(.bi) {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

ul.nav-pills {
  max-width: 100%;
}

.nav-tabs .nav-item .nav-link {
  color: black;
  font-family: Fuse, FuseV2, "Helvetica";
  font-size: 18px;
  letter-spacing: 0px;
}

.nav-tabs li.nav-item .active {
  background-color: #ECEDEF;
}

.nav-pills .nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-pills .nav-item:hover {
  background-color: #e7f3fa;
}

.offcanvas-header {
  background-color: #1090d5;
  color: white;
  height: 100px;
  padding: 0;
}

.offcanvas-header img {
  max-height: 100%;
  width: 3rem;
}

.offcanvas-size-sm {
  --bs-offcanvas-width: min(95vw, 100px) !important;
}

.offcanvas-body {
  scrollbar-width: none;
  position: relative;
  min-height: calc(100vh - 100px);
}

.offcanvas-body .space-fill {
  flex-grow: 1;
  min-height: 3rem;
}

.offcanvas-body .collapsing{
  transition-duration: 0s;
}

.invert-svg {
  filter: invert(1);
}

#activitySideMenu {
  background-color: #f6f7f9;
}

/* Dashboard Styles */

#lineChart {
  min-width: 80vh;
}

.tab-item {
  padding: 1rem;
  background-color: #f6f7f9;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.tab-item div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tab-item h4 {
  margin: 0;
}

.tab-item:hover h4 {
  text-decoration: underline;
}

.tab-item span {
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
  display: flex;
  align-items: center;
}

.tab-item p {
  margin: 0;
}

p {
  margin: 0;
}

.tab-item:hover {
  background-color: #e7f3fa;
  cursor: pointer;
}

.tab-pane .tab-item:not(:last-child) {
  margin-bottom: 1rem;
}

.tab-pane:not(.show) {
  max-height: 0;
}

/* Button Styles */

.btn {
  position: relative;
  z-index: 1000;
}

.btn-login {
  border-radius: 15px; 
  background-color: #1090d5; 
  border-color: #1090d5; 
  color: white; 
  width: 100px;
}
.btn-login:hover,
.btn-login:focus:hover {
  background-color: #007db7;
  border-color: #007db7;
  color: white;
}

.btn-login:disabled {
  background-color: #b4b8c1;
  border-color: #b4b8c1;
}

.btn-grey,
.btn-grey:focus {
  background-color: #ecedef;
  border-color: #d9dbe0;
  color: black;
}

.btn-grey:hover,
.btn-grey:focus:hover {
  background-color: #d9dbe0;
  border-color: #c6cad1;
}

.btn-grey:active,
.btn-grey:active:focus,
.btn-grey:focus:active {
  background-color: #c6cad1;
  border-color: #b4b8c1;
}

.btn-primary {
  background-color: #1090d5;
  border-color: #1090d5;
}

.btn-primary:hover,
.btn-primary:focus:hover {
  background-color: #007db7;
  border-color: #007db7;
}

.btn-primary:disabled {
  background-color: #b4b8c1;
  border-color: #b4b8c1;
}

.btn-submission {
  background-color: #1090d5;
  border-color: #007db7;
  color: white;
}

.btn-submission:hover {
  background-color: #007db7;
  color: white;
}

.btn-white {
  background-color: white;
  border-color: white;
  color: black;
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
  background-color: white;
  border-color: white;
  color: black;
}

.btn-infocircle {
  background-color: transparent;
  color: white;
  padding: 0.25rem 0.5rem;
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
  font-size: 5rem;
}

.btn-infocircle .bi {
  font-size: 1.2rem;
  padding: 0;
  margin: 0;
}

.btn-infocircle:hover,
.btn-infocircle:focus:hover,
.btn-infocircle:active,
.btn-infocircle:active:hover {
  background-color: white;
  border-color: white;
  color: black;
}

.btn-whiteborder {
  background-color: transparent;
  border-color: white;
  color: white;
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
}

.btn-whiteborder:hover,
.btn-whiteborder:focus:hover,
.btn-whiteborder:active,
.btn-whiteborder:active:hover {
  background-color: white;
  border-color: white;
  color: black;
}

/* Component Styles */

.drop-zone {
  border: 2px dashed #b4b8c1;
  background-color: #f6f7f9;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.drop-zone.dragover,
.drop-zone:hover {
  border: 2px dashed #1090d5;
  background-color: #ecedef;
  color: #1090d5;
}

.blue-card {
  background-color: #1090d5;
  color: white;
  border-color: #1090d5;
}

/* Change accordion active background color */
.accordion-button:not(.collapsed) {
  background-color: #1090d5;
  color: white;
}

.accordion-button {
  background-color: #ecedef;
  color: black;
  margin: 0;
}

.feedback-body {
  display: flex;
  flex-direction: column;
  background-color: #f6f7f9;
  padding: 1rem;
  gap: 0.5rem;
  transition: 0.3s;
  margin-bottom: 1rem;
}

.alert-info {
  background-color: rgba(229, 243, 250);
  border-color: #1090d5;
}

.feedback-body:hover {
  background-color: #ecedef;
}

.feedback-body .form-label {
  font-family: HelveticaNeue, "Helvetica";
  font-weight: 700;
}

.form-check-input:checked {
  background-color: #1090d5;
  border-color: #1090d5;
}

.spaced {
  white-space: pre-line;
  text-indent: 0;
}

textarea {
  resize: none;
}

.min-height-0 {
  min-height: 0;
}

.spaced.text-truncate {
  max-height: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Number of lines to show */
  line-clamp: 3; /* Number of lines to show */
  -webkit-box-orient: vertical;
}

/* Subcompetency table styles */

.competency-header {
  background-color: #1090d5;
  color: white;
  border-color: #1090d5;
  padding: 1.2rem 1rem;
  height: 60px;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 2; /* Ensures it stays above the inner headers */
}

.subcompetency-header {
  background-color: #ecedef;
  padding: 1rem 1rem;
  margin: 0;
  position: sticky;
  top: 60px; /* Below the outer header */
  z-index: 1;
}

.thread-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 1rem;
  margin: 0;
}

.thread-name {
  flex: 3;
  padding: 1rem 0;
  font-weight: 700;
  height: 100%;
}

.thread-rating {
  flex: 1;
  text-align: center;
  padding: 1rem 0;
  height: 100%;
}

.thread-rating.active {
  background-color: #e2f0fc;
  color: black;
  font-weight: 700;
}

/* Agent-related styles */

.msg {
  position: relative;
  max-width: 50%;
  padding: 7px 15px;
  margin-bottom: 3px;
  border-radius: 20px;
  background: #1090d5;
  color: #fff;
  margin-left: auto;
}

.response {
  position: relative;
  max-width: 50%;
  padding: 7px 15px;
  margin-bottom: 3px;
  border-radius: 20px;
  background: #d9dbe0;
  color: #000;
  margin-right: auto;
}

.response * {
  margin: 0;
}

.msg * {
  margin: 0;
}

.response h1,
.response h2,
.response h3,
.response h4 {
  font-size: 18px;
  line-height: 18px;
  padding: 0.8rem 0;
}

.response h5,
.response h6 {
  font-size: 16px;
  line-height: 16px;
  padding: 0.8rem 0;
}


.journal-response {
  border: 2px dashed #1090d5;
  background-color: #e7f3fa;
  color: #1090d5;
  padding: 7px 15px;
  margin-bottom: 3px;
}

.journal-entry {
  display: flex;
  flex-direction: column;
  border: 2px solid #d9dbe0;
  background-color: #f6f7f9;
  padding: 7px 15px;
  margin-bottom: 3px;
}

#agentList .list-group-item {
  display: flex;
  align-items: center;
  height: 3.5rem;
  cursor: pointer;
}

#agentList .list-group-item.active {
  background-color: #1090d5;
  pointer-events: none;
}

/* Course related Styles */

.course-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: scale(1.025);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.course-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.course-card .card-body .card-text {
  flex: 1;
  margin-bottom: 2rem;  
}

.course-img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

/* DataTable Styles */

.dt-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dt-layout-table {
  height: 100%;
  flex-grow: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.dt-layout-full {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.dataTable thead {
  background-color: white;
  position: sticky;
  top: 0;
}

.dataTable tbody span {
  padding: 1rem;
}

.dataTable tbody a {
  text-decoration: none;
}

.dataTable tbody a:hover {
  text-decoration: underline;
}

.dt-layout-row {
  margin: 0 !important;
}

.dt-search {
  display: none;
}

/*--- List Based Page Stylings ---*/

.list-header {
  font-family: "Fuse V.2 Display Black", "Helvetica";
  font-size: 18px;
  line-height: 18px;
  letter-spacing: 0px;
  font-weight: 900;
  background-color: #ecedef;
  text-align: center;
  position: sticky; /* Make header sticky when scrolling */
  top: 0; /* Position it at the top of the container */
  z-index: 0; /* Ensure the header is above the table body */
}

.list-header th {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Limit the height of each row */
.row-container {
  max-height: 60px;
  overflow: hidden; /* Prevent row content from overflowing */
  text-align: center;
}

/* Make the list scrollable */
.list-container {
  overflow: hidden; /* Ensures the scrollbar stays within the border */
  border-radius: 25px;
  border: 1px solid #2d3138; /* Solid border around the rounded corners */
  /* clip-path: inset(0 round 25px); Clips content to match the border radius */
}

.inner {
  max-height: 70vh; /* Limit total list height */
  overflow-y: auto; /* Enable vertical scroll */
  overflow-x: auto;
  top: 50px;
  /* margin-left: 4vh; */
}

/* Standardise scrollbar across different browsers */
/* Customize scrollbar width */
.inner::-webkit-scrollbar {
  width: 12px; /* Set width of the scrollbar */
}

/* Track (background behind the scrollbar) */
.inner::-webkit-scrollbar-track {
  background: #ecedef; /* Match background */
  border-radius: 25px; /* Rounded track */
  /* margin-top: 15vh; */
  /* margin-bottom: 20px; */
  margin-bottom: 3vh;
  margin-left: 10px;
}

.stu-sub-list::-webkit-scrollbar-track {
  margin-top: 12vh;
  margin-bottom: 1vh;
}

/* Handle (scrollbar itself) */
.inner::-webkit-scrollbar-thumb {
  background: #8e95a3; /* Scrollbar color */
  border-radius: 10px; /* Rounded scrollbar */
  border: 3px solid #ecedef; /* Padding effect */
}

/* Handle on hover */
.inner::-webkit-scrollbar-thumb:hover {
  background: #6b7382;
}

/* Add borders between content, but not on the headers */
.table-bordered td,
.table-bordered th {
  border-right: 1px solid black;
  padding: 1px;
}

.table-bordered tr td {
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Remove borders for the first column on the left */
.table-bordered td:first-child,
.table-bordered th:first-child {
  border-left: 0;
}

/* Remove borders for the last column on the right */
.table-bordered td:last-child,
.table-bordered th:last-child {
  border-right: 0;
  border-bottom: 0;
}

tr:nth-child(even) {
  background-color: #f6f7f9;
}

.radio-btn {
  background-color: rgb(63, 166, 221);
  color: white;
}

input[type="radio"]:checked + .radio-btn {
  background-color: rgb(135, 199, 234);
  color: white;
}

input[type="radio"]:hover + .radio-btn {
  background-color: #c3e3f4;
  color: #5b6270;
}

.details-grid {
  max-height: 50vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1vh;
}

.detail-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 4px;
}

.detail-item h6 {
  margin-bottom: 0.5rem;
  color: #333;
}

.btn-view-activity,
.btn-view-submission,
.btn-view-journal {
  background-color: #f6f7f9;
  color: #2d3138;
  /* width: 100%; */
  white-space: nowrap;
}

.btn-view-activity:hover,
.btn-view-submission:hover,
.btn-view-journal:hover {
  background-color: #e7f3fa;
  color: #2d3138;
}

.activity-card,
.submission-card,
.journal-card {
  border: 1px solid #2d3138;
  border-radius: 7px;
}

.card-inner{
  margin-left: 4vh;
}

.journal-activity-list-inner::-webkit-scrollbar-track {
  margin-top: 11vh !important;
}

.journal-activity-list-inner {
  border: 1px round black;
}

.submission-banner {
  overflow: hidden;
}

.banner-button {
  flex: 0 0 150px; /* Fixed width */
}

.banner-text {
  overflow-wrap: break-word;
}

.submission-content .d-flex {
  align-items: flex-start;
}

.feedback-section {
  min-width: 200px;
  flex: 1;
}

.ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.rating-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.rating-score {
  font-weight: bold;
  color: #1090d5;
  margin-top: auto;
}

.rating-score {
  font-weight: bold;
  color: #1090d5;
  margin-top: auto;
  padding-top: 1rem;
}

@media (max-width: 992px) {
  .ratings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ratings-grid {
    grid-template-columns: 1fr;
  }

  .rating-section {
    margin-top: 0;
    text-align: left;
  }

  .feedback-section {
    margin-right: 0 !important;
  }
}

/*Allocate Task Page styles*/
.task-group,
.date-group {
  border: 2px solid #2d3138;
  padding: 50px !important;
  border-radius: 8px;
  position: relative;
  background-color: #f6f7f9;
}

.group-label {
  margin-top: 15px;
  margin-left: 15px;
}

.group-label,
.select-container label {
  margin-left: 1vh;
  background-color: none;
  font-weight: bold;
  font-size: 1rem;
  color: #1e2025;
}
.select-container label {
  top: -10px;
}

.form-select {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  background-color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-select:hover {
  border-color: #adb5bd;
}

.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select option:hover {
  background-color: #f8f9fa;
}

.select-container {
  position: relative;
  margin-bottom: 1rem;
}

.allocate-page::-webkit-scrollbar-track {
  margin-top: 3vh;
}

.submission-display {
  padding: 5px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%; /* Span across the width of the box */
  height: 200px; /* Set a fixed height or let it adjust as needed */
  overflow-y: auto; /* Enable vertical scrolling if content overflows */
  white-space: pre-wrap; /* Ensure text wraps nicely */
  word-wrap: break-word;
}
