#shareable-access-error {
	color: #2DA782;
}

#shareable-access-shortcode {
	margin: 10px 0px 10px 10px;
    display: flex;
	flex-direction: row;
    gap: 4px;
	padding: 8px 10px;
    border-radius: 30px;
    background: #1c8c6b;
}

#shortcode_access_code {
	padding:5px;
}

#open-access-modal { 	
    padding: 5px;
    font-weight: 700;
    font-size: large;
}

#shareable-access-shortcode input {
	/*border-radius: 4px;
    font-family: Inter, sans-serif;
	border: 1px solid lightgray;
    font-size: 14px;
    width: 100px;
    text-align: center;*/
	border-radius: 25px;
    font-family: Inter, sans-serif;
    border: 0;
    font-size: 16px;
    width: 100px;
    text-align: center;
    padding: 10px 20px;
}

#shareable-access-shortcode input:focus,
#shareable-access-shortcode input:focus-visible,
#shareable-access-shortcode button:focus,
#shareable-access-shortcode button:focus-visible {
	outline: none;
}

.share-code-form form {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#shareable-access-form input {
	font-size: medium;
    padding: 8px;
    text-align: center;
}

#shareable-access-form input[type=submit],
#shareable-access-form #shareable-cancel-button {
    border: 0;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 500;
}

#shareable-access-form input[type=submit] {
    color: white;
    background: #2DA782
}

#shareable-access-form input[type=submit]:hover {
    background: #248769;
}


.share-code-form input[type="text"] {
    width: 100px;
    padding: 4px;
}

#shareable-access-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* full viewport width */
  height: 100vh; /* full viewport height */
  z-index: 9999;
  overflow: hidden; /* prevents inner scrolling */
  display: flex;
  align-items: center;
  justify-content: center;
}

#shareable-access-modal .modal-content {
	display: none;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* For Safari support */
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  background: white;
  margin: 20px;
  padding: 20px;	
}

/* Style for the modal welcome message */
#shareable-access-modal .welcome-message {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

#shareable-access-modal .welcome-instructions {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

/* Style for the buttons */
#shareable-access-modal button {
  padding: 10px 20px;
  margin: 5px;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* Optional: Center the modal content */
#shareable-access-modal .modal-content {
  text-align: center;
}


#shareable_spinner .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #1c8c6b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

#shareable_spinner {
	margin: 24px auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.prompt-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    white-space: nowrap;
}

#shareable_subject,
#shareable_year {
    width: 100%;
}

.subject-year,
#shareable_topic {
    margin-bottom: 16px;
}

#shareable_topic {
    margin-bottom: 24px;
}

.subject-year {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.subject-year div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/*******/

button {
    text-decoration: none;
    background-color: #1c8c6b;
    color: white;
    padding-top: 12px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 16px;
    border-radius: .33rem;
    border: 0;
    font-weight: 500;
    cursor: pointer;
    font-family: Inter, sans-serif;
}

button:hover {
    box-shadow: rgb(0 0 0 / .1) 0 4px 12px;
    transform: translateY(-1px);
}

/*************/
#history-container button {
	background: #2da782 !important;
}

#history-container button:hover {
	background: #1f735a !important;
}

.page-account div.um-account.uimob800 .um-account-meta a {
	border: 0;
}

.reset-btn {
	display: none;
}

/* Transcript review page */

table.transcript-table {
	width: 100%; 
	border-collapse: collapse;
}

table.transcript-table td,
table.transcript-table th {
	border: 1px solid black;
	margin-top: 20px; 
	padding: 5px;
}

table.transcript-table .role-title {
	min-width: 100px;
	text-align: center;
	font-weight: 600;
	vertical-align: text-top; 
}

table.transcript-table p {
	margin: auto;
	margin-bottom: 12px;
}

/* Prompt Builder and Let's Discuss Page */

.letsdiscuss .input-holder {
	display: flex;
    justify-content: space-between;
}

.letsdiscuss .input-holder input {
    width: 100%;
    box-sizing: border-box;
}

.letsdiscuss select {
	font-family: Inter, sans-serif;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #c6c6c6;
    border-radius: 4px;
}

.letsdiscuss input {
	font-family: Inter, sans-serif;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #c6c6c6;
    border-radius: 4px;
    width: 600px;
	max-width: 95%;
}

#history-container button,
.letsdiscuss button {
    padding: 14px;
    font-size: 16px;
    background-color: #2DA782;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.letsdiscuss .send-msg-holder {
	display: flex;
	flex-direction: row;
	gap: 16px;
}

.letsdiscuss .input-holder {
	display: flex;
	flex-direction: column;
}

.letsdiscuss .button-holder {
	margin-top: 16px;
	display: flex;
	gap: 8px;
}

.letsdiscuss .button-holder button {
	width: 100%;
}

.letsdiscuss div.input-holder button {
	min-width: 150px;
}

.letsdiscuss button.end-btn,
.letsdiscuss button.reset-btn {
	background-color: #602545;
	color: white;
}

div.wp-block-button,
button {
  transition: all 350ms;
  	box-shadow: rgba(0, 0, 0, 0.02) 0 4px 2px;
}

div.wp-block-button:hover,
button:hover {
	/*opacity: 0.9;*/
  	box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  	transform: translateY(-1px);
}

div.wp-block-button:active,
button:active {
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}



.letsdiscuss button.end-btn:hover,
.letsdiscuss button.reset-btn:hover {
	/*background-color: #602545;*/
	color: white;
}

.letsdiscuss button.sysprompt-toggle {
	background-color: #c6c8c7;
    padding: 6px 8px;
    font-size: 14px;
}

#prompt-ul > li > a,
#topic-ul > li > a {
	color: #2DA782;
}

/* Global */
footer {
	margin: 0 16px;
}

/* Main Form Container */
.form-container {
    margin: 0 auto;
}

.form-container #subjects-form > input[type=submit] {
	font-size: 16px;
    color: white;
    background: #2DA782;
    border: 0;
    border-radius: 8px;
    padding: 8px 24px;
}

.form-container #subjects-form,
.form-container .dropdown-container {
	width: 100%;
	display: flex;
    flex-direction: row;
    gap: 16px;
}



/* Form Title */
.form-container h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Flex container for the form fields */
.form-container .form-fields {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Style for each select dropdown */
.form-container select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    color: #333;
    transition: border-color 0.3s;
}

/* Focus State for Selects */
.form-container select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Submit Button */
.form-container button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover Effect for Button */
.form-container button[type="submit"]:hover {
    background-color: #45a049;
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
	
	.letsdiscuss .send-msg-holder,
	.letsdiscuss .button-holder,
	.letsdiscuss .help-button-holder {
		flex-direction: column;
		gap: 8px;
	}
	
	.letsdiscuss div.input-holder{
		display: flex;
		flex-direction: column;
	}

	.letsdiscuss div.input-holder * {
		box-sizing: border-box;
		width: 100%;
		flex-direction: column;
	}

    .form-container {
        padding: 20px;
    }

.form-container #subjects-form,
.form-container .dropdown-container  {
        flex-direction: column; /* Stack the fields vertically on smaller screens */
    }
	
	.form-container .dropdown-container {
		flex-direction: column;
	}

    .form-container select, 
    .form-container button[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
}

/* Mobile Optimized Layout for Small Screens */
@media (max-width: 480px) {
    .form-container h2 {
        font-size: 20px;
    }

    .form-container select, 
    .form-container button[type="submit"] {
        font-size: 12px;
        padding: 8px;
    }
}


.transcript-help-btn {
	color: #ab3644;
    font-style: italic;
}


.feedback-btn a{
	display: flex;
    flex-direction: row;
    gap: 8px;
}


.transcript-table .assistant-role {
	background: #E3F8EF;
}

.transcript-table thead {
	background: #9AD5C3;	
}

#thinking-indicator {
    font-size: 14px;
    color: #888;
    font-style: italic;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}


/* General chatbox and input styling */
#chatbox {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    height: 300px;
    overflow-y: auto;
    box-sizing: border-box;
	text-align: left;
}

.input-holder {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.input-holder input {
    flex: 1;
    padding: 8px;
}

.reset-btn {
    background-color: red;
    color: white;
}

/* Styles for help buttons */
.letsdiscuss .help-button-holder {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}

.letsdiscuss .helpBtn {
    width: 100%;
    color: #2da782;
    background: #E3F8EF;
    font-size: 14px;
}

.letsdiscuss .helpBtn i {
    margin-right: 8px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.letsdiscuss .helpBtn:hover i {
    transform: rotate(0deg) scale(1.2);
    animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {
    0% { transform: rotate(0deg) scale(1.2); }
    25% { transform: rotate(-10deg) scale(1.2); }
    50% { transform: rotate(10deg) scale(1.2); }
    75% { transform: rotate(-5deg) scale(1.2); }
    100% { transform: rotate(0deg) scale(1.2); }
}

#sysprompt-container {
	border: 1px solid #ccc; 
	padding: 10px; 
	margin-top: 20px;
}

/* Additional styles for fullscreen/assessment UI */
#progressBarToast {
    text-align: center;
    margin: 10px 0;
}
#progressBarToast b {
    margin-right: 5px;
}
#progressBar {
    width: 100%;
    background-color: #eee;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
#progressBarFill {
    display: block;
    height: 100%;
    width: 0%;
    background-color: #2da782;
}

.lockout {
    border: 1px solid #333;
    padding: 20px;
    background: #f2f2f2;
    margin-top: 0px;
    font-size: larger;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}


.masked-input {
  -webkit-text-security: disc; /* For WebKit browsers (Chrome, Safari) */
  text-security: disc; /* Non-standard but could work in some browsers */
}

.invigilation {
    top: 0;
    left: 0;
    position: absolute;
    background: white;
    z-index: 9999;
    border: 6px solid #602545;
    box-sizing: border-box;
    overflow: hidden;
}

.fillavailable {
    width: 100vw; /* Most widely supported fallback */
    width: stretch; /* Modern CSS standard */
    width: -moz-available; /* Firefox-specific */
    width: -webkit-fill-available; /* Safari/Chrome-specific */
    
    height: 100vh; /* Most widely supported fallback */
    height: stretch; /* Modern CSS standard */
    height: -moz-available; /* Firefox-specific */
    height: -webkit-fill-available; /* Safari/Chrome-specific */
}

.invigilation #history-container {
	display: none;
}

.lockout {
	position: fixed;
	background-color: #fdfbfa;
	top: 0;
	left: 0;
	z-index: 99999;
	pointer-events: all; /* Prevent interactions behind it */
	border: 6px solid #602545;
	box-sizing: border-box;
	overflow: hidden;
}

.targetDiv {
	width: 100vw;
	height: 100vh;
	position: absolute;
	background-color: #add8e670;
	top: 0;
	left: 0;
	user-select: none;
	visibility: hidden;
}

.error-message {
	color: red;
	font-size: 0.875em;
}



.meter {
  box-sizing: content-box;
  height: 20px; /* Can be anything */
  position: relative;
  margin: 60px 0 20px 0; /* Just for demo spacing */
  background: #555;
  border-radius: 25px;
  padding: 10px;
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
}
.meter > span {
  display: block;
  height: 100%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background-color: rgb(43, 194, 83);
  background-image: linear-gradient(
    center bottom,
    rgb(43, 194, 83) 37%,
    rgb(84, 240, 84) 69%
  );
  box-shadow: inset 0 2px 9px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.meter > span:after,
.animate > span > span {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  z-index: 1;
  background-size: 50px 50px;
  animation: move 2s linear infinite;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: hidden;
}

.animate > span:after {
  display: none;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}


 #countdownToast {
      position: fixed;
      top: 20px;
      left: 20px;
      padding: 10px 20px;
      background-color: rgba(0, 0, 0, 0.7);
      color: white;
      border-radius: 5px;
      font-size: 18px;
      display: none;  /* Initially hidden */
      z-index: 9999;
    }

    #progressBarToast {
      position: fixed;
      top: 20px;
      left: 20px;
      width: 300px;
      padding: 10px;
      background-color: rgba(28, 60, 71, 0.85); /* rgba(0, 0, 0, 0.7); */
      color: white;
      border-radius: 5px;
      font-size: 15px;
      display: none;  /* Initially hidden */
      z-index: 9999;
    }

    #progressBar {
      width: 100%;
      height: 10px;
      background-color: #1C3C47; /* #E3F8EF; */
      border-radius: 5px;
      overflow: hidden;
      
		padding: 0px;
		margin: 8px 0 0px 0;
    }

    #progressBarFill {
      height: 100%;
      background-color: #2DA782;
      width: 0%;
      transition: width 1s linear;
    }


@media (max-width: 768px) {
	
	#lockoutDiv {
        padding: 16px;
		overflow: auto;
	}
}

