
/* Scrollbar styles for WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(232, 232, 232, 1); /* Standard */
  border-radius: 5px !important;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(186, 186, 186, 1); /* Hover */
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(124, 124, 124, 1); /* Pressed */
}

#tableOfContents img:focus-visible{
	outline: 1px auto rgba(11, 111, 133, 1) !important;
}

.tableOfContentContainer {
	width: 100%;
	height: 100%;
	background-color: rgba(243, 243, 243, 1);
	position: relative;
	display: flex;
	flex-direction: column;
}

.toc-searchBarContainer {
	background-color: rgba(247, 246, 251, 1);
	height: 55px;
	display: flex;
	padding: 15px 7px;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.search-input {
	border: none;
	outline: none !important;
	flex: 1;
	font-size: 15px;
	font-weight: 400;
	line-height: 18px;
}

.search-input:placeholder {
	color: rgba(137, 137, 137, 1);
}

.search-bar-container {
	display: flex;
	align-items: center;
	border: 1px solid rgba(111, 111, 111, 1);
	border-radius: 4px !important;
	padding: 5px 10px;
	width: -webkit-fill-available;
	width: -moz-available;
	gap: 7px;
	background-color: rgba(255, 255, 255, 1);
	height: 35px;
	min-width: 10px;
	overflow: hidden;
}

.search-bar-container:focus,
.search-bar-container:focus-within{
	border: 1px solid rgba(11, 111, 133, 1);
	box-shadow: 0px 0px 4px 0px rgba(11, 111, 133, 0.25);
}
.search-input {
	font-weight: 400;
	font-size: 14px;
}

.search-input:placeholder {
	color: rgba(115, 115, 115, 1);
}

.search-input:focus, .search-input:focus-visible, .search-input:focus-within
	{
	border-color: unset !important;
	outline: none !important;
	box-shadow: none !important;
}

#searchBar {
	background: unset;
	padding: 0px;
	height: unset;
	border-radius: 0px !important;
	border-width: 0;
}

.action-img {
	cursor: pointer;
}

.action-img:hover, .action-img:focus, .action-img:focus-within {
	background-color: rgb(239, 239, 239);
}

.toc-tabcontainer {
	height: 50px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 15px 7px;
	align-items: center;
	background-color: rgba(247, 246, 251, 1);
}

.toc-tab {
	cursor: pointer;
	padding: 10px;
}

.toc-tab:focus, .toc-tab:hover, .toc-tab:focus-within {
	background-color: rgba(243, 236, 248, 1);
	border-radius: 4px !important;
}

.toc-tab-main-container {
	background-color: rgba(243, 243, 243, 1);
	flex: 1;
	display: flex;
	padding: 0px 20px;
}

.no-res-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 10px;
	flex: 1;
	text-align: center;
	padding: 0px 30px;
}

.no-res-header {
	font-weight: 600;
	font-size: 18px;
	color: rgba(51, 51, 51, 1);
}

.no-res-subtext {
	font-weight: 400;
	font-size: 15px;
	color: rgba(51, 51, 51, 1);
	text-align: center;
}

.editor-container {
	width: 100%;
	display: flex;
	justify-content: center;
	position: sticky;
	bottom: 0px;
	left: 0px;
	margin-top: auto;
}

.editor-container.comments {
	padding: 0px 5px 0px 10px;
}
.editor-expanded{
	width: 100%;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(242, 242, 242, 1);
	border-radius: 10px !important;
}
.collapsed-input {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 1);
	border: 1px solid rgba(242, 242, 242, 1);
	border-radius: 10px !important;
	width: 100%;
	box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.05);
}

.toc-tab-main-container.notes .collapsed-input{
	height: 57px !important;
}

.collapsed-input.comments{
	background-color: rgba(251, 251, 251, 1);
}

.collapsed-input input {
	border: none;
	outline: none;
	flex-grow: 1;
	background: transparent;
}

.collapsed-input input:focus, .collapsed-input input:focus-within {
	border-color: unset !important;
	outline: none !important;
	box-shadow: none !important;
}

.timestamp-capsule {
	border-radius: 4px !important;
	height: 22px;
	padding: 0px 4px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: fit-content;
}

.timestamp-capsule p {
	font-size: 14px;
	font-weight: 400;
	/* color: #333333; */
	margin: 0;
}
.toc-chapter-list:hover .timestamp-capsule,
.toc-chapter-list:focus .timestamp-capsule,
.toc-chapter-list:focus-within .timestamp-capsule,
.toc-caption-container:hover .timestamp-capsule,
.toc-caption-container:focus .timestamp-capsule,
.toc-caption-container:focus-within .timestamp-capsule,
.toc-notes-list:hover .timestamp-capsule,
.toc-notes-list:focus .timestamp-capsule,
.toc-notes-list:focus-within .timestamp-capsule
 {
  background-color: rgba(229, 214, 239, 1) !important;
  color: rgba(51, 51, 51, 1) !important;
}

.toc-chapter-list:active .timestamp-capsule,
.toc-caption-container:active .timestamp-capsule,
.toc-notes-list:active .timestamp-capsule
 {
  background-color: rgba(217, 193, 232, 1) !important;
  color: rgba(51, 51, 51, 1) !important;
}

.toc-caption-container {
	display: flex;
	width: 100%;
	padding: 10px 0px;
	gap: 10px;
}

.toc-tab-main-container.chapters .toc-chapter-list > .toc-info-text{
	word-break: unset !important;
}

.toc-info-text {
	color: rgba(51, 51, 51, 1);
	font-weight: 400;
	font-size: 15px;
	margin: 0px;
	word-break: break-word;
    overflow-wrap: break-word;
}
.toc-info-text *{
	margin: 0;
}

.toc-info-text.bold {
	font-weight: 500;
	color: rgba(25, 25, 25, 1) !important;
	white-space: nowrap;
}

.toc-text-light {
	color: rgba(82, 82, 82, 1);
	font-weight: 400;
	font-size: 14px;
	margin: 0px;
	white-space: nowrap;
}

.toc-tab-main-container.captions {
	display: flex;
	flex-direction: column;
	background-color: rgba(255, 255, 255, 1);
	padding: 10px 0px 0px 0px;
	overflow-y: scroll;
	gap: 4px;
	/* justify-content: center; */
}

.toc-tab-main-container.chapters {
	display: flex;
	flex-direction: column;
	background-color: rgba(255, 255, 255, 1);
	padding: 10px 5px 10px 5px;
	overflow-y: scroll;
}

.toc-tab-main-container.notes {
	background-color: rgba(243, 243, 243, 1);
	display: flex;
	flex-direction: column;
	padding: 10px 5px 10px 10px;
	overflow-y: scroll;
	row-gap: 10px;
	flex-direction: column;
	justify-content: space-between;
}

.toc-caption-container {
	padding: 5px 10px;
}

.toc-caption-container.active {
	background-color: rgba(247, 243, 250, 1);
}

.toc-caption-container:hover, .toc-caption-container:focus {
	background-color: rgba(245, 245, 245, 1);
	cursor: pointer;
}

.toc-chapter-header {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
}

.toc-chapter-division-container {
	display: flex;
	gap: 2px;
	width: 100%;
}

.toc-chapter-division {
	height: 10px;
	width: 76px;
	background-color: rgba(234, 229, 238, 1);
}

.toc-chapter-division:first-child {
	border-radius: 4px 0px 0px 4px;
}

.toc-chapter-division:last-child {
	border-radius: 0px 4px 4px 0px;
}

.toc-chapter-list {
	display: flex;
	row-gap: 5px;
	border-bottom: 1px solid rgba(224, 224, 224, 1);
	padding: 10px 10px 10px 5px;
	/* justify-content: space-between; */
}

.toc-chapter-list.index{
	display: flex;
	row-gap: 5px;
	border-bottom: 1px solid rgba(224, 224, 224, 1);
	padding: 10px 10px 10px 5px;
	justify-content: space-between;
}

.toc-chapter-list.active {
	background-color: rgba(247, 243, 250, 1);
}

.toc-chapter-list:hover, .toc-chapter-list:focus {
	background-color: rgba(245, 245, 245, 1);
	cursor: pointer;
}

.toc-chapter-list-item-left {
	float: left;
	display: flex;
	flex-direction: column;
	row-gap: 10px;
	width: 65%;
}

.toc-chapter-list-container {
	margin-top: 15px;
}

.toc-chapter-img-container {
	width: 110px;
	height: 60px;
	border-radius: 4px !important;
	overflow: hidden;
}

/* .toc-notes-list-container {
	overflow-y: auto;
	display: inherit;
	row-gap: 10px;
	flex-direction: column;
} */

.toc-notes-list {
	width: 100%;
	background-color: rgba(255, 255, 255, 1);
	border-radius: 10px !important;
	padding: 10px;
	/* min-height: 100px; */
	height: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.toc-notes-list:hover .toc-chapter-img-container{
	opacity: 0.7;
	cursor:pointer;
}

.toc-notes-list:hover .timestamp-capsule, .toc-notes-list:focus .timestamp-capsule,
	.toc-notes-list:focus-within .timestamp-capsule {
	cursor: pointer;
}

.toc-notes-list-item-top {
	display: flex;
	gap: 10px;
}

.toc-kabab-menu {
	margin-left: auto;
	cursor: pointer;
}

.toc-kabab-menu:hover,
.toc-kabab-menu:focus,
.toc-kabab-menu:focus-within{
	background-color: #F3ECF8;
	border-radius: 4px !important;
}

.toc-tab-main-container.comments {
	background-color: rgb(255, 255, 255);
	padding: 10px 0px 10px 0px;
	overflow-y: scroll;
	flex-direction: column;
	/* justify-content: space-between; */
	overflow-x: hidden;
}

.toc-comments-list {
	/* min-height: 50px; */
	display: flex;
	flex-direction: column;
	padding: 0px;
}
.toc-replies-list{
	min-height: 50px;
	display: flex;
	padding: 0px;
}
.toc-comments-list.expanded {
	flex-direction: column;
}

.toc-comments-list-container {
	padding: 0px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.toc-comment-avatar-container {
	padding-top: 10px;
	margin-left: 7px;
	height: 100%;
	width: fit-content;
	display: flex;
}

.toc-comment-avatar-container img {
	height: 32px;
	width: 32px;
	overflow: hidden;
}

.toc-comment-details-container {
	padding: 8px 10px 10px 10px;
	row-gap: 10px;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.toc-comment-info {
	display: flex;
	gap: 5px;
	align-items: center;
	flex-wrap: wrap;
}

.comment-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* flex: 1; */
    width: 100%;
}

#tableOfContents{
	container-type: inline-size;
}

/* @container (max-width: 350px) {
  .comment-meta-wrapper {
    width: 100%;
    flex: none;
    align-items: flex-start;
  }
} */
@container (max-width: 250px) {
  .collapsed-input.comments{
  	display: flex;
    flex-direction: column;
    row-gap: 5px;
  }
  
  .collapsed-input.comments > button{
  	margin-left: auto;
  }
}

.toc-comment-actions {
	display: flex;
	gap: 10px;
	padding: 0px 8px;
}

.toc-comment-action-item {
	display: flex;
	gap: 5px;
	align-items: center;
	cursor: pointer;
}

.toc-tab-main-container.resources{
	background-color: rgba(255, 255, 255, 1);
	padding: 0px;
	flex-direction: column;
	overflow-y: scroll;
}

.toc-resources-download-all-container {
	margin-top: 10px;
	display: flex;
	width: 100%;
	height: fit-content;
	justify-content: end;
	padding: 0px 10px;
}

.toc-resources-list-container {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	column-gap: 10px;
}

.toc-resources-list {
	padding: 5px 10px;
	display: flex;
	min-height: 70px;
	align-items: center;
}
/* .toc-resources-list img:hover {
	cursor: pointer;
} */
.toc-resources-list:not(:last-child) {
	border-bottom: 1px solid rgba(224, 224, 224, 1);
}

.toc-resources-list-item-left{
	flex: 1;
	display: flex;
	gap: 8px;
}

img.toc-resources-list-thumbnail {
    min-width: 32px;
    width: 32px;
    height: 32px;
}

#downloadAllResourcesButton{
	margin-right: 0px !important;
}

#downloadAllResourcesButton,
#donwload-notes-btn
{
	padding: 4px 10px;
}

/* Hover state for all TinyMCE toolbar buttons */
.tox .tox-tbtn:hover, .tox .tox-split-button:hover, .tox .tox-mbtn:hover
{
	background-color: rgba(252, 248, 255, 1) !important;
	border-radius: 4px !important;
	cursor: pointer;
}

/* Pressed/active state for all TinyMCE toolbar buttons */
.tox .tox-tbtn.tox-tbtn--enabled, .tox .tox-tbtn:active, .tox .tox-split-button:active,
	.tox .tox-mbtn.tox-mbtn--active, .tox .tox-mbtn:active {
	background-color: rgba(252, 248, 255, 1) !important;
	border-radius: 4px !important;
	/* border: 1px solid rgba(243, 228, 254, 1) !important; */
}
.tox .tox-tbtn.tox-tbtn--enabled{
	border: 1px solid rgba(243, 228, 254, 1) !important;
}
/* Make sure the hover state doesn't override the border on active state */
.tox .tox-tbtn.tox-tbtn--enabled:hover, .tox .tox-split-button.tox-tbtn--enabled:hover,
	.tox .tox-mbtn.tox-mbtn--active:hover {
	border: 1px solid rgba(243, 228, 254, 1) !important;
	border-radius: 4px !important;
}

/* Style for the main TinyMCE container */
.tox.tox-tinymce {
	border-radius: 10px !important;
	border: 1px solid rgba(242, 242, 242, 1) !important;
	background: rgba(255, 255, 255, 1) !important;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1) !important;
	overflow: hidden;
}

/* Also style the toolbar to match the container styling */
.tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar__overflow
{
	background: rgba(255, 255, 255, 1) !important;
	/* border-bottom: 1px solid rgba(242, 242, 242, 1) !important; */
}

/* Style the editor content area */
.tox .tox-edit-area__iframe {
	background: rgba(255, 255, 255, 1) !important;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header {
	box-shadow: unset !important;
}

.tox-toolbar__group:has(button[title="Fullscreen"]) {
  margin-left: auto;
}


.tox-toolbar__group:has(button[title="Exit Fullscreen"]) {
  margin-left: auto;
}

.custom-editor-footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(64px, auto));
	grid-template-rows: auto auto;
	gap: 10px;
	padding: 10px !important;
	border-radius: 10px;
	align-items: center;
}

.custom-editor-footer .timestamp-input-container {
	grid-column: 1/-1;
}


@container ( min-width : 275px) {
	.custom-editor-footer {
		grid-template-columns: 1fr auto auto;
		grid-template-rows: auto;
	}
	.custom-editor-footer .timestamp-input-container {
		grid-column: auto;
		width: 80px !important;
	}
	.custom-editor-footer button {
		justify-self: end;
	}
}

.custom-editor-footer > .btn {
	cursor: pointer;
}


/* PostInputComponent.css */

.post-input-container {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  width: 100%;
  
	position: sticky;
	bottom: 0px;

}

/* Base input styles */
.post-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.post-input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Textarea styles */
.post-textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 12px;
	resize: none;
	background-color: transparent;
	font-size: 14px;
}

.post-textarea.no-border {
	border: none;
	outline: none;
}

.post-textarea.no-border:focus {
	border: none;
	outline: none;
	box-shadow: none;
}

.button-container {
	display: flex;
	justify-content: space-between;
}

.button-container.comments {
	display: flex;
	width: 100%;
	justify-content: flex-end;
	gap: 10px;
}

.button-container-start {
  display: flex;
  justify-content: flex-start;
}


.toc-comments-list.highlight, .toc-replies-list.highlight {
	background-color: rgba(247, 243, 250, 1);
}

.comments .toc-comments-list.highlight, .comments .toc-replies-list.highlight
	{
	background-color: rgba(247, 243, 250, 1);
}

.replyHeader{
	display: flex;
	gap: 7px;
	align-items: center;
}
.replyHeader p{
	color:rgba(109, 109, 109, 1);
	font-weight: 14px;
	font-size: 12px;
	margin:0px;
}

.header-container{
	width: 100%;
}
.shortcut-key-container { 
    background-color: rgba(251, 251, 251, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 10px !important;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transform-origin: bottom;
    animation: smartAnimate 500ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes smartAnimate {
    0% {
        transform: translateY(20px) scaleY(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

.shortcut-overlay{
	background-color: rgba(251, 251, 251, 1);
	display: flex;
    position: absolute;
    width: 100%;
    z-index: 100;
    bottom: 0;
    height: calc(100% - 60px);
    left: 0;
    padding: 0px 10px;
}
.hide-shorcuts-header{
	display: flex;
	justify-content: center;
	width: 100%;
	background-color: rgba(251, 251, 251, 1);
	padding-bottom: 10px;
}
.hide-shortcuts-container{
	display: flex;
    flex-direction: column;
    column-gap: 5px;
    cursor: pointer;
    height: fit-content;
    padding: 5px;
    align-items: center;
}

.shortcut-content tr{
	margin-top: 5px;
}
.hide-shortcuts-container:hover,
.hide-shortcuts-container:focus,
.hide-shortcuts-container:focus-within{
	background-color: rgba(243, 236, 248, 1);
	border-radius: 4px !important;
}
.hide-shortcuts-container p{
	font-weight: 500;
	font-size: 13px;
	color: rgba(97, 97, 97, 1);
	margin: 0px;
}


.shortcut-content{
	overflow-y: scroll;
    padding: 0px 5px 0px 0px;
}

.shortcut-content table {
	width: 100%;
	border-collapse: collapse;
}

.shortcut-content th {
	text-align: left;
    padding-bottom: 8px;
    font-weight: 500;
    color: rgba(66, 41, 110, 1);
    font-size: 15px;
    background-color: rgba(251, 251, 251, 1);
}

.shortcut-content tr:first-child {
	border-top: none;
}

.shortcut-content td {
	font-size: 15px;
	display: table-cell !important;
	height: unset !important;
	border-bottom: none !important;
	background-color: rgba(251, 251, 251, 1) !important;
	padding-top: 5px;
}

.shortcut-content td:hover {
	background-color: rgba(255, 255, 255, 1) !important;
}

.shortcut-content td:first-child {
	color: rgba(51, 51, 51, 1);
	font-weight: 400;
	font-size: 14px;
	
	width: 65% !important;
}

.shortcut-key {
	background-color: #f5f3ff;
	color: #5b21b6;
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
	font-size: 13px;
	min-width: 24px;
	text-align: center;
	font-weight: 500;
}
.shortcut-content td:first-child {
	text-align: left;
}
.shortcut-content td:last-child {
	text-align: right;
}

.download-btn{
	width: 24px;
    height: 24px;
    margin-right: 7px;
    background-image: url(/Dashboard/style/icons/video-player-sidebar/Download.svg);
}

#downloadAllResourcesButton:hover > .download-btn, #downloadAllResourcesButton:focus > .download-btn,
#downloadAllResourcesButton:focus-within > .download-btn,
#donwload-notes-btn:hover > .download-btn, #donwload-notes-btn:focus > .download-btn,
#donwload-notes-btn:focus-within > .download-btn
{
	background-image: url(/Dashboard/style/icons/video-player-sidebar/Download-white.svg);
}

.shortcut-key-img{
	padding: 2px;
	cursor: pointer;
}

.shortcut-key-img:hover, .shortcut-key-img:focus, .shortcut-key-img:focus-within{
	background-color: rgba(247, 237, 255, 1);
}
.shortcut-key-img:active{
	background-color: rgba(243, 236, 248, 1);	
}



.timestamp-input-container{
	background: rgba(255, 255, 255, 1) !important;
	border: 1px solid rgba(224, 224, 224, 1) !important;
	border-radius: 4px !important;
	width: auto;
	height: 35px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 6px !important;
	/* left: 10px;
	bottom: 10px;
    position: absolute !important; */
}
.timestamp-input-container:focus, .timestamp-input-container:focus-within{
	outline: 1px solid rgba(11, 111, 133, 1) !important;
}

.timestamp-input-field{
	border-color: unset !important;
	outline: none !important;
	box-shadow: none !important;
	width: 60px !important;
	color: rgba(111, 111, 111, 1) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
}
.timestamp-input-field:focus,.timestamp-input-field:focus-within{
	border-color: unset !important;
	outline: none !important;
	box-shadow: none !important;
}

.download-notes-btn-container{
	position: fixed;
    bottom: 80px;
    /* z-index: 1000000; */
    right: 17px;
    height: 50px;
    width: 50px;
    border-radius: 50% !important;
    background-color: rgba(243, 236, 248, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
}

.toc-resources-download-icon:hover,
.toc-resources-download-icon:focus,
.toc-resources-download-icon:focus-within
{
	background-color: #F3ECF8;
	border-radius: 4px !important;
}

.toc-resources-download-icon:active
{
	background-color: #E5D6EF;
	border-radius: 4px !important;
}
/* .toc-tab-main-container.comments .action-menu-item
{
	border-radius: 10px !important;
} */

#tableOfContents .tooltip.in{
	opacity: 1 !important;
    right: 7px !important;
    left: unset !important;
}

#tableOfContents .tooltip.in .tooltip-arrow{
	left: 60.5455% !important;
}


#no-res-container,
#no-resources-container{
	padding-bottom: 57px;
}