html,
body {
	margin: 0;
	padding: 0;
}
body {
	/*background-color: #d9d0c2; */
	background: url(//www.probabilitycourse.com/images/Template/newbackground.png);
	color: #333;
	font: 16px 'Myriad Pro', Verdana, Geneva, Arial, sans-serif;
	line-height: 24px;
}
h1 {
	color: #333;
	left: 20px;
	text-align: center;
}
a {
	color: #74A662;
}

p {
	margin: 0 0 18px;
}
.left {
	float: left;
	text-align: left;
}
.right {
	float: right;
	text-align: right;
}
.clear {
	clear: both;
}
#container {
	width: 1175px;
	margin: 0 auto;
	background-color: #f6f4f2;
}
#printcontainer {
	width: 1175px;
	margin: 0 auto;
	padding: 50px;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
	#content {
		word-wrap: break-word;
	}
	#wrapper {
		word-wrap: break-word;
	}
	img {
		text-decoration: none;
		border: 0;
		outline: none;
	}
}

/* Header */
#header_wrapper {
	height: 119px;
	margin: 0;
	padding: 0;
	top: 0px;
}

#header {
	background: url(//www.probabilitycourse.com/images/Template/HeaderBg.png) repeat-x;
	height: 119px; /*width: 1100px; */
	margin: 0;
	padding: 0;
	position: relative;
	display: inline-block;
}
#header p {
	color: #f2fcf7;
	font-size: 18px;
	font-weight: 300;
	padding: 32px 0 0 48px;
}
#header h1 {
	color: #73c3f6;
	font-size: 23px;
	font-weight: 400;
	margin: -27px 10px 0 18px;
	line-height: 24px;
	text-align: left;
}
/* This line needs to be fixed */

#header font {
	color: #f2fcf7;
	font-size: 18px;
}

/*google search bar*/
#google_search {
	width: 400px;
	float: right;
	top: 0px;
}
#google_bar {
	display: inline-block;
	float: right;
}
/* Header elements */
#bigp {
	font-size: 52px;
	font-weight: 300;
	letter-spacing: -10px;
	color: #73c3f6;
}
#diceimg {
	width: 120px;
	height: 91px;
	margin: -40px 0 -20px -40px;
}
#robability {
	color: #73c3f6;
}
a.nostyle {
	text-decoration: none;
}
#logo_image {
	margin-left: 20px;
	margin-top: 7px;
	float: left;
	width: 570px;
}

#wrapper {
	margin-top: 29px;
	background-image: url(//www.probabilitycourse.com/images/Template/container.jpg);
	background-repeat: repeat-x;
}
#wrapper {
	background-image: url(//www.probabilitycourse.com/images/Template/container.jpg);
	background-repeat: repeat-x;
}
/* Content Style */
#content {
	background-image: url(//www.probabilitycourse.com/images/Template/container.jpg);
	background-repeat: repeat-x;
	text-align: justify;
	min-height: 250px;
	padding-right: 70px;
	padding-top: 14px;
}
#content p {
	background-attachment: fixed;
}

/*#navigation_wrapper     { height: 36px; background: #014148; clear: both;  font-size: 16px;  margin-bottom: 0; top: 0; position:relative;}*/

#navigation {
	height: 36px;
	background: #014148;
	clear: both;
	font-size: 16px;
	font-family: sans-serif;
	font-weight: bold;
	width: 1175px;
	margin-bottom: 0 auto;
	z-index: 9999;
	margin-top: 0px;
}
#navigation a {
	color: #f2fcf7;
	text-decoration: none;
}
#navigation a:hover {
	color: #73c3f6;
	font-family: sans-serif;
	font-weight: bold;
}

#navigation ul {
	list-style: none;
	margin: 0 0 0 28px;
	padding: 5px 0 0 0;
}
#navigation li {
	display: inline;
	padding: 0 20px 0 0;
}

#nameuser {
	color: #88ffff;
	font-family: cursive;
	font-size: 18px;
}

#right {
	display: inline;
	float: right;
}
#right p:hover {
	color: #73c3f6;
	font-family: sans-serif;
	font-weight: bold;
}

#left {
	display: inline;
	float: left;
}

.container {
	margin: 0 auto;
	padding: 0px;
}

.login_container {
	margin: 0 auto;
	width: 100px;
	height: 25px;
	line-height: 25px;
	cursor: pointer;
}

.login_container {
	color: #fff;
}

.login_extended {
	width: 170px;
	height: 150px;
	display: none;
	background-color: #014148;
	position: absolute;
	color: #f2fcf7;
	margin-top: 5px;
	right: 0px;
	text-align: center;
	border-bottom-right-radius: 10% 10%;
	border-bottom-left-radius: 10% 10%;
	font-weight: bold;
	font-size: 15px;
	font-family: serif;
	z-index: 9999;
}
.login_extended a {
	position: relative;
	bottom: 5px;
}

.instructor_container {
	margin: 0 auto;
	width: 100px;
	height: 25px;
	line-height: 25px;
	cursor: pointer;
}
.instructor_extended {
	width: 160px;
	height: 100px;
	display: none;
	background-color: #014148;
	position: absolute;
	color: #f2fcf7;
	margin-top: 1px;
	right: 594px;
	text-align: center;
	border-bottom-right-radius: 10% 10%;
	border-bottom-left-radius: 10% 10%;
	font-weight: bold;
	font-size: 15px;
	font-family: serif;
}
.instructor_extended a {
	position: relative;
	margin-left: 5px;
	margin-right: 5px;
	padding-top: 10px;
	line-height: 2%;
}
.instructor_extended span {
	position: relative;
	top: 10px;
	margin-bottom: 5px;
	line-height: 25px;
	display: inline-block;
}

#menu_button {
	display: none;
}
#mobile_menu {
	display: none;
}

#menu {
	font-size: 15px;
	line-height: 18px;
	margin-top: 45px;
	margin-left: 20px;
	border: 4px outset;
	border-color: black #73c3f6;
	margin-bottom: 10px;
}
#menu ul {
	cursor: pointer;
	list-style: none;
	margin: 0px;
	padding: 0px;
}
#menu ul a {
	background: #d9d0c2;
	color: #000;
	display: block;
	line-height: 18px;
	padding: 7px 5px;
}
#menu ul ul {
	display: none;
}
#menu ul ul a {
	background: #416e8b;
	color: #000;
	padding: 7px 15px;
}
#menu ul ul ul a {
	background: #d9e5eb;
	color: #353535;
	padding: 7px 7px 7px 25px;
}
#menu a:hover {
	background: #014148;
	color: #eee;
}
#menu .active {
	font-weight: bold;
}

#menu_risk {
	font-size: 15px;
	line-height: 18px;
	margin-top: 45px;
	margin-left: 20px;
	border: 4px outset;
	border-color: black #73c3f6;
	margin-bottom: 10px;
}
#menu_risk ul {
	cursor: pointer;
	list-style: none;
	margin: 0px;
	padding: 0px;
}
#menu_risk ul a {
	background: #1a4e36;
	color: #fff;
	display: block;
	line-height: 18px;
	padding: 7px 5px;
}
#menu_risk ul ul {
	display: none;
}
#menu_risk ul ul a {
	background: #f3ebdb;
	color: #000;
	padding: 7px 15px;
}
#menu_risk ul ul ul a {
	background: #d9e5eb;
	color: #353535;
	padding: 7px 7px 7px 25px;
}
#menu_risk a:hover {
	background: #014148;
	color: #eee;
}
#menu_risk .active {
	font-weight: bold;
}

#footer {
	background: url(//www.probabilitycourse.com/images/Template/HeaderBg.png) repeat-x; /*background: #014148; border-bottom: 2px solid #999; */
	clear: both;
	font-size: 13px;
}
#footer a {
	color: #eee;
}
#footer p {
	color: #ccc;
	margin: 0;
	padding: 10px 18px 10px;
}

#sticker {
	padding: 20px;
	margin: 100px 0;
	background: #aaa;
	width: 190px;
	max-height: 50%;
}

@media only screen and (min-width: 1400px) {
	.stick {
		position: fixed;
		top: 0px;
	}
	#menu {
		overflow: auto;
		max-height: 525px;
	}
	#menu_risk {
		overflow: auto;
		max-height: 525px;
	}
}

::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.thinblock {
	padding: 10px 0 10px;
}

.solvedprob {
}
.solvedprob ul {
	cursor: pointer;
	list-style: none;
	margin-bottom: 30px;
	padding: 0px;
}
.solvedprob ul ul {
	display: none;
	margin-top: 30px;
}
.solvedprob ul a {
	/*background: #F4F4F4;*/
	background: #d9e5eb;
	color: green; /*color: #353535;*/
	padding: 7px 15px;
	border: 1px solid #8e8e8e;
}

.extendlist {
	line-height: 33px;
	text-decoration: underline;
}
.notes-toolbar {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.pen-size-group {
    display: flex;
    align-items: center;
    gap: 4px; /* Very small gap */
	height: 24px
}

.pen-color-group {
    display: flex;
    align-items: center;
    gap: 4px; /* Very small gap */
	height: 24px
}

.notes-toolbar label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
}

.notes-toolbar input[type="range"] {
    width: 100px;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0; /* Remove any default margins */
}

.notes-toolbar input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
}

.notes-toolbar input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
}

.pen-size-display {
    min-width: 25px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #495057;
    margin: 0; /* Remove any default margins */
}

.notes-toolbar input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0; /* Remove any default margins */
}

.notes-toolbar input[type="color"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.notes-toolbar input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 6px;
}

.notes-toolbar input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.eraser-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0; /* Remove any default margins */
}

.eraser-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.eraser-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eraser-btn.active {
    background: linear-gradient(135deg, #dc3545, #c82333);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    }
}

.extendlist ul {
	cursor: pointer;
	list-style: none;
	margin: 0px;
	padding: 0px;
}
.extendlist ul a {
	padding: 7px 5px;
}
.extendlist ul ul {
	display: none;
}
.extendlist ul ul a {
	padding: 7px 40px;
}

.video {
}
.video ul {
	cursor: pointer;
	list-style: none;
	padding: 0px;
}
.video ul ul {
	display: none;
	margin-top: 20px;
}

/* Content Positioning and Size */
#menu {
	float: left;
	width: 250px;
}
#menu_risk {
	float: left;
	width: 250px;
}
#content {
	float: right;
	width: 800px;
}
#no_menu_content {
	width: 90%;
}

.demo-container {
	box-sizing: border-box;
	width: 600px;
	height: 450px;
	padding: 20px 15px 15px 15px;
	margin: 15px auto 30px auto;
	border: 1px solid #ddd;
	background: #fff;
	background: linear-gradient(#f6f6f6 0, #fff 50px);
	background: -o-linear-gradient(#f6f6f6 0, #fff 50px);
	background: -ms-linear-gradient(#f6f6f6 0, #fff 50px);
	background: -moz-linear-gradient(#f6f6f6 0, #fff 50px);
	background: -webkit-linear-gradient(#f6f6f6 0, #fff 50px);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	-o-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	-ms-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	-webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.demo-placeholder {
	width: 100%;
	height: 100%;
	font-size: 14px;
	line-height: 1.2em;
}

#placeholder .button {
	position: absolute;
	cursor: pointer;
}

#placeholder div.button {
	padding: 0px;
}

.legend table {
	border-spacing: 5px;
}

.link_button {
	background: none;
	color: #74A662;
	border: none;
	cursor: pointer;
}

label {
	display: inline-block;
	width: 5em;
}

/*Youtube window styles in video section  */
#youtube {
	width: 640px;
	height: 360px;
}

/*Sign up form from book request page*/
#signup_form {
	width: 600px;
	margin: 0 auto;
	padding-bottom: 10px;
}
fieldset {
	width: 550px;
}
label {
	display: inline;
	text-align: left;
	width: 250px;
	margin-right: 50px;
}

#printButton {
	cursor: pointer;
}
.mobile {
	display: none;
}
.no_mobile {
	display: block;
}

/* Content Boxes */
.cbox {
	padding: 25px;
	margin: 30px 40px;
	border: 2px solid black;
}

/* Centered Text */
.centered {
	text-align: center;
}

#floating-dice {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background: var(--dice-bg-color, #74A662);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border: 3px solid #fff;
}

#floating-dice:hover {
	transform: scale(1.1) rotate(5deg);
	background: var(--dice-hover-color, #5d8a4f);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#floating-dice img {
	width: 35px;
	height: 35px;
	filter: var(--dice-icon-filter, invert(1) brightness(2));
	transition: transform 0.3s ease;
}

#floating-dice:hover img {
	transform: rotate(-5deg);
}

#settings-trigger {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: #666;
	border-radius: 50%;
	cursor: pointer;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: white;
	transition: all 0.3s ease;
}

#dice-settings {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 280px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	padding: 20px;
	z-index: 10000;
	display: none;
	border: 1px solid #ddd;
}

#dice-settings.show {
	display: block;
}

.setting-group {
	margin-bottom: 15px;
}

.setting-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.setting-group input,
.setting-group button {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
/* ADD these new styles - don't replace anything */
.setting-group button {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 5px;
	background: #f5f5f5;
	cursor: pointer;
}

.setting-group button:hover {
	background: #e0e0e0;
}

#reset-all {
	background: #ff6b6b;
	color: white;
}

#reset-all:hover {
	background: #ff5252;
}
@media only screen and (max-device-width: 750px) {
	#floating-dice {
		width: 50px;
		height: 50px;
		bottom: 15px;
		right: 15px;
	}

	#floating-dice img {
		width: 28px;
		height: 28px;
	}
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	background: url(//www.probabilitycourse.com/images/Template/newbackground.png);
	font-family: 'Myriad Pro', Verdana, Geneva, Arial, sans-serif;
	color: #333;
	height: 100vh;
	overflow: hidden;
}
.tutor-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
	background-color: #ffffff;
	position: relative;
}
.tutor-header {
	background: linear-gradient(135deg, #0d5a47);
	color: #ffffff;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(237, 234, 234, 0.2);
	position: relative;
	z-index: 100;
}
.tutor-header h1 {
	font-size: 2.5em;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-weight: bold;
}
.tutor-header p {
	font-size: 1.2em;
	color: #e8f5e8;
	font-weight: 500;
}
.close-button {
	position: absolute;
	top: 15px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: none;
	padding: 8px 12px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1.1em;
	transition: background 0.3s ease;
}
.close-button:hover {
	background: rgba(255, 255, 255, 0.3);
}
.main-content {
	display: flex;
	flex: 1;
	overflow: hidden;
}
.chat-section {
    width: 650px;
    max-width: 55vw;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #ffffff;
}

.chat-header {
    padding: 16px 20px;
	background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
	color: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 12px 0 0;
}

.chat-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafbfc;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: slideIn 0.3s ease-out;
}
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message {
    align-self: flex-start;
}
.message-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.user-message .message-avatar {
	background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
	color: white;
}
.bot-message .message-avatar {
    background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
    color: white;
}
.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    font-size: 14px;
    color: #374151;
    border: 1px solid #f3f4f6;
    position: relative;
}
.user-message .message-content {
    background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
    color: white;
    border: none;
}

.bot-message .message-content {
    background: white;
}

/* Summary message styling */
.bot-message .message-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 12px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: white;
}

.user-message .message-content::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 12px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #337810;
}
.typing-animation {
	animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.message-content ul {
	margin: 10px 0;
	padding-left: 20px;
}
.message-content li {
	margin: 5px 0;
}
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}
.chat-input-container input {
	flex: 1; /* Make input flexible */
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 25px;
	outline: none;
	min-width: 0; /* Add this for proper flex behavior */
}
.chat-input-container button {
	flex-shrink: 0; /* Prevent button from shrinking */
	padding: 12px 20px;
	background: #337810;
	color: white;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	white-space: nowrap; /* Prevent text wrapping */
}
#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #374151;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}
#chatInput:focus {
	border-color: #337810;
	box-shadow: 0 0 0 3px rgba(51, 120, 16, 0.1);
    background: white;
}
/* Enhanced Save Chat Button */
#chatControls button:first-child {
    background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatControls button:first-child:hover {
    background: linear-gradient(135deg, #2a6209 0%, #1e4607 100%);
    transform: translateY(-3px) scale(1.05);
}

#chatControls button:first-child:active {
    transform: translateY(-1px) scale(1.02);
}

/* Subtle shine effect for Save Chat button */
#chatControls button:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s;
}

#chatControls button:first-child:hover::before {
    left: 100%;
}

/* Enhanced Generate Summary Button */
#chatControls button:last-child {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatControls button:last-child:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-3px) scale(1.05);
}

#chatControls button:last-child:active {
    transform: translateY(-1px) scale(1.02);
}

/* Subtle shine effect for Summary button */
#chatControls button:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#chatControls button:last-child:hover::before {
    left: 100%;
}

/* Pulse animation for both buttons when they're working */
#chatControls button.processing {
    animation: pulse 2s infinite;
}

#chatInput::placeholder {
    color: #9ca3af;
    font-style: italic;
}
#sendButton {
    background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    height: 44px;
}

#sendButton:hover {
    background: linear-gradient(135deg, #2a6209 0%, #1e4607 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#sendButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.whiteboard-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: white;
}
.whiteboard-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 16px 24px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-bottom: 2px solid #dee2e6;
	flex-wrap: wrap;
	gap: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.whiteboard-header h3 {
	color: #2c3e50;
	font-size: 1.4em;
	font-weight: 700;
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	background: linear-gradient(135deg, #2c3e50, #34495e);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.whiteboard-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.whiteboard-controls button {
	padding: 10px 18px;
	border: 2px solid #dee2e6;
	background: white;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
	white-space: nowrap;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	pointer-events: auto;
	z-index: 10;
}

.whiteboard-controls button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.6s;
}

.whiteboard-controls button:hover::before {
	left: 100%;
}

.whiteboard-controls button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.whiteboard-controls button:nth-child(1) { /* Draw button */
	border-color: #28a745;
	color: #28a745;
}

.whiteboard-controls button:nth-child(1):hover,
.whiteboard-controls button:nth-child(1).active {
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
	border-color: #20c997;
}

.whiteboard-controls button:nth-child(2) { /* Eraser button */
	border-color: #dc3545;
	color: #dc3545;
}

.whiteboard-controls button:nth-child(2):hover,
.whiteboard-controls button:nth-child(2).active {
	background: linear-gradient(135deg, #dc3545, #fd7e14);
	color: white;
	border-color: #fd7e14;
}

.whiteboard-controls button:nth-child(3) { /* Clear button */
	border-color: #ffc107;
	color: #856404;
}

.whiteboard-controls button:nth-child(3):hover {
	background: linear-gradient(135deg, #ffc107, #ffca2c);
	color: white;
	border-color: #ffca2c;
}

.whiteboard-controls button:nth-child(4) { /* Expand button */
	border-color: #17a2b8;
	color: #17a2b8;
}

.whiteboard-controls button:nth-child(4):hover {
	background: linear-gradient(135deg, #17a2b8, #20c997);
	color: white;
	border-color: #20c997;
}
/* Math buttons styling */
.math-buttons {
	display: none;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 8px;
	padding: 12px;
	background: rgba(0, 123, 255, 0.05);
	border-radius: 8px;
	border: 1px solid rgba(0, 123, 255, 0.1);
}

.math-buttons button {
	min-width: 40px;
	height: 40px;
	border: 2px solid #007bff;
	background: white;
	color: #007bff;
	border-radius: 8px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.math-buttons button:hover {
	background: #007bff;
	color: white;
	transform: scale(1.05);
}


.math-buttons button:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.whiteboard-container {
	flex: 1;
	position: relative;
	overflow: hidden;
	margin: 16px;
	border-radius: 12px;
	background: white;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 2px solid #f1f3f4;
}

#whiteboard,
#teacherWhiteboard,
#studentWhiteboard {
	width: 100%;
	height: 100%;
	cursor: crosshair;
	background: 
		radial-gradient(circle at 1px 1px, rgba(0,0,0,.15) 1px, transparent 0);
	background-size: 20px 20px;
	background-position: -10px -10px;
	border-radius: 10px;
	transition: all 0.3s ease;
	pointer-events: auto;
	touch-action: none;
	position: relative;
	z-index: 1;
}
#chartContainer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
}


.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #337810;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

.loading-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 25px 30px;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 15px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	border: 1px solid rgba(51, 120, 16, 0.1);
	min-width: 280px;
}

.loading-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.loading-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#loadingMessage {
	font-size: 16px;
	font-weight: 600;
	color: #337810;
}

#loadingTime {
	font-size: 13px;
	color: #666;
	font-style: italic;
}

.progress-bar {
	width: 100%;
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #337810, #2a6209, #337810);
	border-radius: 3px;
	width: 0%;
	transition: width 0.3s ease;
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% { background-position: -200px 0; }
	100% { background-position: 200px 0; }
}

.spinner {
	width: 24px;
	height: 24px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #337810;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
#whiteboard:hover,
#teacherWhiteboard:hover,
#studentWhiteboard:hover {
	box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
}
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Tablet and small desktop */
@media (max-width: 1200px) {
	.chat-section {
		flex: 0 0 400px;
		min-width: 300px;
	}
	
	.whiteboard-controls {
		gap: 6px;
	}
	
	.whiteboard-controls button {
		padding: 8px 12px;
		font-size: 12px;
	}
	
	.whiteboard-header {
		padding: 12px 16px;
	}
}

@media (max-width: 768px) {
	.whiteboard-section {
		height: 50vh;
	}
	
	.whiteboard-header {
		padding: 10px 15px;
		flex-wrap: wrap;
	}
	
	.whiteboard-header h3 {
		font-size: 1.1em;
		margin-bottom: 8px;
		width: 100%;
	}
	
	.whiteboard-controls {
		width: 100%;
		justify-content: space-between;
	}
	
	.whiteboard-controls button {
		padding: 6px 8px;
		font-size: 11px;
		flex: 1;
		max-width: 70px;
	}
	
	.whiteboard-container {
		margin: 8px;
	}
}

.mobile-nav {
	display: none;
	flex-direction: row;
	gap: 8px;
	margin-top: 15px;
	justify-content: center;
}

.mobile-nav-btn {
	padding: 8px 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border-radius: 20px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-btn.active {
	background: white;
	color: #0d5a47;
	border-color: white;
}

/* Mobile landscape and small tablets */
@media (max-width: 1100px) {
	.mobile-nav {
		display: flex;
	}
	
	.main-content {
		flex-direction: column;
		flex: 1;
	}
	
	.chat-section {
		width: 100%;
		max-width: 100%;
		flex: 1;
		display: flex;
	}
	
	.whiteboard-section {
		width: 100%;
		height: calc(100vh - 180px);
		flex: none;
		display: none !important;
	}
	
	.whiteboard-section.mobile-active {
		display: flex !important;
	}
	
	.chat-section.mobile-hidden {
		display: none !important;
	}
	
	.tutor-header h1 {
		font-size: 1.8em;
	}
	.tutor-header p {
		font-size: 1em;
	}
	.whiteboard-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
	}
	.tab-button {
		flex: 0 0 auto;
		padding: 8px 12px;
		font-size: 12px;
	}
	.math-buttons {
		gap: 2px;
	}
	.math-buttons button {
		min-width: 28px;
		height: 28px;
		font-size: 14px;
		padding: 4px 6px;
	}
	
	#chatControls {
		flex-shrink: 0;
		min-height: 50px;
	}
	
	#chatControls button {
		flex-shrink: 0;
		min-width: 100px;
		white-space: nowrap;
	}
	
	/* Hide session controls in mobile view */
	.session-controls {
		display: none !important;
	}
}

/* Prevent session controls from shrinking on all screen sizes */
.session-controls {
	flex-shrink: 0;
	min-width: 100%;
}

.session-actions {
	flex-wrap: wrap;
	gap: 8px;
}

.session-btn {
	flex-shrink: 0 !important;
	min-width: 80px !important;
	white-space: nowrap !important;
	font-size: 11px !important;
	padding: 8px 12px !important;
}

.session-actions {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 6px !important;
	width: 100% !important;
}

.voice-controls-row {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 6px !important;
	width: 100% !important;
}

@media (max-width: 768px) {
	.session-btn {
		font-size: 10px !important;
		padding: 6px 8px !important;
		min-width: 70px !important;
	}
}
}

/* Mobile portrait */
@media (max-width: 600px) {
	.tutor-header {
		padding: 15px 10px;
	}
	.tutor-header h1 {
		font-size: 1.5em;
		margin-bottom: 5px;
	}
	.tutor-header p {
		font-size: 0.9em;
	}
	.close-button {
		top: 10px;
		right: 10px;
		padding: 6px 8px;
		font-size: 0.9em;
	}
	.chat-section {
		height: 50vh;
	}
	.whiteboard-section {
		height: 50vh;
	}
	.chat-input-container {
		padding: 10px;
		gap: 6px;
	}
	#chatInput {
		padding: 10px 12px;
		font-size: 14px;
	}
	#sendButton {
		padding: 10px 15px;
		font-size: 14px;
	}
	.whiteboard-header {
		padding: 10px 15px;
		flex-wrap: wrap;
	}
	.whiteboard-header h3 {
		font-size: 1.1em;
		margin-bottom: 8px;
		width: 100%;
	}
	.whiteboard-controls {
		width: 100%;
		justify-content: space-between;
	}
	.whiteboard-controls button {
		padding: 6px 8px;
		font-size: 11px;
		flex: 1;
		max-width: 70px;
	}
	.math-buttons {
		width: 100%;
		justify-content: center;
		margin-top: 6px;
		padding-top: 6px;
	}
	.math-buttons button {
		min-width: 24px;
		height: 24px;
		font-size: 12px;
		padding: 2px 4px;
	}
	.upload-btn {
		min-width: 36px;
		height: 36px;
		font-size: 14px;
	}
}

/* Very small screens */
@media (max-width: 400px) {
	.tutor-header h1 {
		font-size: 1.3em;
	}
	.chat-input-container {
		padding: 8px;
	}
	.whiteboard-header {
		padding: 8px 10px;
	}
	.math-buttons button {
		min-width: 20px;
		height: 20px;
		font-size: 10px;
	}
}
.slide-in {
	animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Resize handle for chat section */
.resize-handle {
	position: absolute;
	right: -15px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 60px;
	background: linear-gradient(135deg, #dee2e6, #adb5bd);
	border-radius: 15px;
	cursor: col-resize;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
	font-size: 12px;
	font-weight: bold;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	z-index: 10;
}

.resize-handle:hover {
	background: linear-gradient(135deg, #007bff, #0056b3);
	color: white;
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.whiteboard-controls button.active {
	position: relative;
}

.whiteboard-controls button.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 50%;
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
	50% { transform: translateX(-50%) scale(1.2); opacity: 0.7; }
}
.resize-handle:active {
	background: #337810;
	color: white;
}

/* Make chat section position relative to contain the resize handle */
.chat-section {
	position: relative;
}

/* Ensure main content uses flexbox properly for resizing */
.main-content {
	display: flex;
	flex: 1;
	overflow: hidden;
}

.chat-section {
	flex: 0 0 650px;
	position: relative;
	min-width: 280px;
	max-width: 650px;
}

/* Whiteboard Tabs Styling */
.whiteboard-tabs {
	display: flex;
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
	flex-wrap: wrap; /* Add this for small screens */
	gap: 2px; /* Add small gap */
}

.tab-button {
	flex: 1; /* Make tabs flexible */
	padding: 12px 20px;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap; /* Prevent text wrapping */
	min-width: 0; /* Allow shrinking if needed */
}

.tab-button:last-child {
	border-right: none;
}

.tab-button:hover {
	background: #dee2e6;
}

.tab-button.active {
	background: #014148;
	color: white;
	font-weight: bold;
}

/* Whiteboard Panel Styling */
.whiteboard-panel {
	display: none;
	flex-direction: column;
	height: 100%;
	background: white;
}

.whiteboard-panel.active {
	display: flex;
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.whiteboard-canvas {
	width: 100%;
	height: 100%;
	cursor: crosshair;
	background: white;
	border-radius: 8px;
	pointer-events: auto;
	touch-action: none;
	position: relative;
	z-index: 1;
	display: block;
}

/* Whiteboard Panel Styling */
.whiteboard-panel {
	display: none;
	flex-direction: column;
	height: 100%;
}

.whiteboard-panel.active {
	display: flex;
}

.whiteboard-canvas {
	width: 100%;
	height: 100%;
	cursor: crosshair;
	background: white;
}

/* Notes Panel Styling */
.notes-container {
	flex: 1;
	padding: 20px;
	background: white;
	overflow: hidden;
}

#studentNotes {
	width: 100%;
	height: 100%;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	font-family: 'Myriad Pro', Verdana, Geneva, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	resize: none;
	outline: none;
	background: #fafafa;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

#studentNotes:focus {
	border-color: #337810;
	background: white;
	box-shadow: 0 0 0 3px rgba(51, 120, 16, 0.1);
}

#studentNotes::placeholder {
	color: #999;
	font-style: italic;
}

/* Scrollbar styling for notes */
#studentNotes::-webkit-scrollbar {
	width: 8px;
}

#studentNotes::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

#studentNotes::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

#studentNotes::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Whiteboard Panel Styling */
.whiteboard-panel {
	display: none;
	flex-direction: column;
	height: 100%;
}

.whiteboard-panel.active {
	display: flex;
}

.whiteboard-canvas {
	width: 100%;
	height: 100%;
	cursor: crosshair;
	background: white;
}

/* Notes Panel Styling - Notebook Design */
.notebook-container {
	flex: 1;
	padding: 20px;
	background: #f5f5f5;
	background-image: linear-gradient(90deg, #e8e8e8 1px, transparent 1px), linear-gradient(#e8e8e8 1px, transparent 1px);
	background-size: 20px 20px;
	overflow: hidden;
}

.notebook-paper {
	position: relative;
	width: 100%;
	height: 100%;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #e0e0e0;
	overflow: hidden;
	/* Add the red margin line */
	background-image: linear-gradient(to right, #ff6b6b 40px, transparent 40px),
		repeating-linear-gradient(transparent, transparent 29px, #e8f4f8 29px, #e8f4f8 30px);
	background-size: 100% 100%, 100% 30px;
}

.notebook-paper::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 40px;
	background: linear-gradient(to right, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
	border-right: 2px solid #ff6b6b;
	z-index: 1;
}

/* Notebook mode toggle */
.notebook-mode-toggle {
	display: flex;
	gap: 4px;
	background: #f0f0f0;
	border-radius: 0;
	overflow: hidden;
	flex-shrink: 0; /* Add this */
}
.mode-btn {
	padding: 8px 16px;
	border: 2px solid #ccc;
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1; /* Make buttons equal width */
	white-space: nowrap; /* Prevent text wrapping */
}

.mode-btn:hover {
	background: #f0f8ff;
	transform: translateY(-1px);
}

.mode-btn.active {
	background: #014148;
	color: white;
	box-shadow: 0 2px 4px rgba(1, 65, 72, 0.3);
}

#studentNotes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	padding: 15px 20px 15px 50px; /* Left padding for margin line */
	font-family: 'Courier New', monospace;
	font-size: 14px;
	line-height: 30px; /* Match the ruled lines */
	resize: none;
	outline: none;
	background: transparent;
	color: #333;
	z-index: 2;
	overflow-y: auto;
	vertical-align: top;
	text-align: left;
	padding-top: 30px; /* Align with first line */
}

#studentNotes::placeholder {
	color: #999;
	font-style: italic;
	line-height: 30px;
}

.notes-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: crosshair;
	z-index: 3;
	display: none;
}

/* Scrollbar styling for notes */
#studentNotes::-webkit-scrollbar {
	width: 8px;
}

#studentNotes::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

#studentNotes::-webkit-scrollbar-thumb {
	background: rgba(1, 65, 72, 0.3);
	border-radius: 4px;
}

#studentNotes::-webkit-scrollbar-thumb:hover {
	background: rgba(1, 65, 72, 0.5);
}

/* Expanded notebook view */
.whiteboard-panel.expanded {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 10000;
	background: white;
}

.expanded .notebook-container {
	padding: 40px;
}

.expanded .notebook-paper {
	max-width: 800px;
	margin: 0 auto;
	height: calc(100vh - 140px);
}

/* Notebook spiral binding effect */
.notebook-paper::after {
	content: '';
	position: absolute;
	left: 15px;
	top: 20px;
	bottom: 20px;
	width: 10px;
	background: repeating-linear-gradient(to bottom, transparent 0px, transparent 25px, #ddd 25px, #ddd 30px);
	border-radius: 5px;
	z-index: 1;
}

/* Voice control styles */
#voiceControls button:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#voiceToggle {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    color: #374151;
}

#voiceToggle:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

#voiceInputBtn.listening {
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

.voice-status-active {
	background: #e8f5e8 !important;
	color: #337810 !important;
}

.voice-status-error {
	background: #ffe8e8 !important;
	color: #ff6b6b !important;
}

/* Add some paper texture */
.notebook-paper {
	background-color: #fefefe;
	background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0),
		linear-gradient(to right, #ff6b6b 40px, transparent 40px),
		repeating-linear-gradient(transparent, transparent 29px, #e8f4f8 29px, #e8f4f8 30px);
}
/* Chat controls styling */
#chatControls {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

#chatControls button {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: white;
    color: #374151;
}

#chatControls button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Chat input container with inline upload button */
.chat-input-container {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 15px;
	background: white;
	border-top: 1px solid #e0e0e0;
}

/* Upload button inline with input */
.upload-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* File preview below input */
.file-preview {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.file-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.file-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.file-name {
    margin: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    color: #374151;
    font-weight: 500;
}

.file-icon {
    margin-right: 4px;
    font-size: 14px;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.whiteboard-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
	border-radius: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid #e9ecef;
}
/* Chapter images */
#chapter_image {
	width: 65%;
	display: block;
	margin-left: auto;
	margin-right: auto;
	padding-top: 20px;
	padding-bottom: 20px;
}
figure {
	display: inline-block;
}
figure figcaption {
	text-align: center;
}

/* Chapter table */
.table_formula tr td:last-child {
	padding-left: 75px;
}

/* This is to stop spam attacks */
#username_comments {
	display: none;
}

#chapterpdf {
	color: black;
	font-size: 21px;
	font-weight: 300;
}

.privacy-notice {
	text-align: center;
	padding: 15px 20px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	margin: 20px;
	color: #666;
	font-size: 0.9em;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.privacy-notice p {
	margin: 0;
	font-style: italic;
}

/* LaTeX Table Styling */
.message-content table {
	border-collapse: collapse;
	margin: 15px 0;
	width: 100%;
	max-width: 600px;
	font-size: 14px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content table th {
	border: 1px solid #ddd;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	font-weight: 700;
	text-align: left;
	color: #2c3e50;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.message-content table td {
	border: 1px solid #ddd;
	padding: 10px 16px;
	text-align: left;
	vertical-align: top;
	line-height: 1.4;
	color: #374151;
}

.message-content table tr:nth-child(even) {
	background-color: #f8f9fa;
}

.message-content table tr:hover {
	background-color: #e3f2fd;
	transition: background-color 0.2s ease;
}

/* Special styling for probability tables */
.message-content table th:first-child {
	background: linear-gradient(135deg, #337810 0%, #2a6209 100%);
	color: white;
}

.message-content table strong {
	font-weight: 700;
	color: #2c3e50;
}

/* Mobile responsive tables */
@media (max-width: 600px) {
	.message-content table {
		font-size: 12px;
		max-width: 100%;
		overflow-x: auto;
		display: block;
		white-space: nowrap;
	}
	
	.message-content table th,
	.message-content table td {
		padding: 8px 10px;
	}
}
