@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

html,
body {
	box-sizing: border-box;
	font-family: Roboto, Arial, Helvetica Neue, Helvetica, sans-serif;
	overflow-x: hidden;
	font-size: 15px;
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
}

:root {
	--black-accent: #212121;
	--dark-accent: #3c3c3c;
	--focus-outline: #b1b1b1;
	--search-hover-bg: #f0f0f0;
	--error: rgb(255, 50, 50);
	--primary-blue:  #19286e; 
	--secondary-blue: #0070c0;
	--secondary-green: #65BA4D;
	
}

.dataTable thead th.sorting:before, .dataTable thead th.sorting:after{
	bottom: unset !important;
	top: 15px;
}

/* Custom scroillbar for webkit based browsers like Chrome, Safari and other Chromium based browsers */
body::-webkit-scrollbar {
	width: 0.65rem;
}

body::-webkit-scrollbar-track {
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background-color: rgb(188, 188, 188);
}

body::-webkit-scrollbar-thumb {
	background-color: rgb(80, 80, 80);
	outline: 1px solid slategrey;
	border-radius: 0.5rem;
	cursor: pointer;
}

/* Custom scroillbar for webkit based browsers like Chrome, Safari and other Chromium based browsers */

/* Custom scrollbar for Firefox */
html {
	/* overflow: scroll; */
	scrollbar-color: rgb(77, 77, 77) rgb(168, 168, 168);
	scrollbar-width: thin;
}

/* Custom scrollbar for Firefox */

/* Margin for the content which was getting covered right below the navbar */
.navbar+main {
	margin-top: 7rem;
	margin-bottom: 5rem;
}

/* Input field accent color  */
input {
	accent-color: var(--secondary-blue);
}

/* Label styling when checkbox is checked */
input[type=checkbox]:checked+label {
	font-weight: 600;
}

/* Styling of links, buttons and inputs on different states */

:disabled,
.disabled {
	pointer-events: auto !important;
	cursor: not-allowed;
}

:is(a, button):focus {
	box-shadow: none !important;
}

:is(a, button):active {
	scale: 1.01;
}

:is(a, button, input, select, textarea):focus-visible {
	box-sizing: border-box;
	outline: 1px solid var(--focus-outline) !important;
	border-color: var(--focus-outline) !important;
	box-shadow: 0 0 0 0.025rem rgba(0, 0, 0, .1) !important;
}

.btn.btn-sm {
	min-width: max-content;
}

/* Styling of links, buttons and inputs on different states */


/* Add this class to apply tab-design to the element */
.tab-element {
	all: unset;
	cursor: pointer;
	font-weight: 500;
	padding: 0.25rem;
	font-size: 1.1rem;
	transition: all 0.2s ease;
	color: rgba(0, 0, 0, 0.5);
}

.tab-element.active {
	color: var(--black-accent);
	border-bottom: 3px solid var(--black-accent);
}

.tab-element:hover {
	color: var(--black-accent);
	border-bottom: 2px solid var(--black-accent);
}

/* Add this class to apply tab-design to the element */


/* Details section view styles */
.parent {
	display: flex;
}

.parent>* {
	padding: 0.75rem;
}

.parent .title {
	display: flex;
	background-color: rgba(188, 188, 188, 0.2);
	align-items: center;
	font-weight: 600;
	width: 30%;
}

.parent .value {
	width: 70%;
}

/* Details section view styles */


/* Card styles for filtering data in tables */
.users {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1rem;
	background-color: white;
	padding-block-end: 1rem;
}

.users a {
	font-weight: 600;
	all: unset;
	cursor: pointer;
}

.user-card .title {
	width: 100%;
	overflow: hidden;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #000000;
}

.user-card .count {
	overflow: hidden;
	font-weight: 600;
	font-size: 1.5rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #000000;
}

.user-card.active,
.user-card:hover {
	color: #ffffff;
	border-color: #ebf3fa;
	background-color: #ebf3fa;
}

.user-card.active .count, .user-card.active .title{
	color: #ffffff;
}

.user-card.active {
	color: #f0f0f0;
	background-color: #444444;
	box-shadow: 1px 1px 10px 2px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #3479B8 0%, #9CC2E5 33%, #3479B7 66%, #9CC2E5 100%);
    border: none;
}


.user-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	border-radius: 0.5rem;
	cursor: pointer;
	border: 2px solid lightgrey;
	transition: all 0.3s ease-in-out;
}

.user-card .right-side {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.right-side div {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: right;
}

/* Card styles for filtering data in tables */

/* Form question form error styles */
.question_form_error_div {
	display: none;
	color: var(--error);
}

.question_form_error_row {
	display: none;
	text-align: center;
	color: var(--error);
}

/* Form question error styles */


/* Styling for all audio elements */
audio {
	height: 2rem;
	min-width: 11rem;
	max-width: 100%;
}

/* Styling for all audio elements */


/* Reusable flex styles for all pages */
.flex-space {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;

}

/* Reusable flex styles for all pages */

/* Profile section elements */
.dropdown-menu {
	width: max-content;
}

.dropdown-menu i {
	width: 2rem;
	text-align: center;
}

.dropdown-menu p,
.dropdown-menu a {
	font-size: 1rem;
}

.dropdown-item-text {
	text-align: left;
}

.dropdown-menu a:active {
	background-color: var(--dark-accent);
}

.avatar-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
}

.avatar-link img {
	aspect-ratio: 1;
	width: 1.25rem;
	border-radius: 50%;
	translate: 0 -0.1rem;
}

/* Profile section elements */


.page-heading {
	font-weight: 700;
	font-size: 1.65rem;
	margin-block: 1rem;
}

/* Animation style custommization */
/* .animate__animated.animate__fadeInDown {
	--animate-duration: 0.35s;
} */

/* Navbar elements styling */
.navbar-profile {
	position: relative;
}

.nav-right-section {
	width: 100%;
	height: 100%;
	display: flex;
	gap: 1rem;
	color: white;
	align-items: center;
	justify-content: flex-end;
}

.edu-orgn {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}

.orgn-name {
	max-width: 15rem;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.firstname {
	color: white !important;
}

/* Navbar elements styling */


/* Popover element styling for question title description on hover*/
.popover-wrapper {
	position: relative;
	cursor: pointer;
}

.popover-title {
	top: 0.5rem;
	right: 0.5rem;
	cursor: pointer;
	color: #4a4a4a;
	font-size: 0.9rem;
	position: absolute;
	text-decoration: none;
}

.popover-element {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 2.15rem;
	left: 50%;
	translate: -50%;
	background-color: #f0f0f0;
	padding: 1rem 1rem 0.7rem 1rem;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
	width: max-content;
	max-width: 30rem;
}

.popover-element::after {
	z-index: -10;
	content: "";
	position: absolute;
	top: -8px;
	right: calc(50% - 10px);
	border-style: solid;
	border-width: 0 10px 10px 10px;
	border-color: transparent transparent #bebebe transparent;
}

.popover-wrapper:hover .popover-element {
	opacity: 1;
	z-index: 100;
	visibility: visible;
	transition: all 0.25s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.regular-content {
	margin-right: 1rem;
}


/* Popover element styling for question title description on hover*/

/* Pagination section custom styling */
.page-link {
	font-weight: 500;
	color: var(--dark-accent) !important;
	box-shadow: 1px 4px 8px rgb(128 128 128 / 25%);
}

.page-item.active .page-link {
	color: white !important;
	border-color: var(--primary-blue) !important;
	background-color: var(--primary-blue) !important;
}

/* Pagination section custom styling */


/* Media query for screens less than 768px for navbar */
@media screen and (max-width: 768px) {
	.nav-right-section {
		position: unset;
		height: 2.25rem;
	
	}

	.orgn-name {
		max-width: 14rem !important;
	}

	.navbar+main {
		margin-top: 8rem;
	}

	#messaging-section {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 100;
		height: 100vh;
		width: 100%;
		padding: 24px 10px;
		margin: unset;
	}

	.dismiss-msg{
		align-self: flex-start;
	}

}

@media screen and (min-width: 768px) {
	.dismiss-msg {
		display: none;
	}
}

/* Media query for screens less than 768px for navbar */

/* Media query for screens less than 992px for navbar */
@media screen and (max-width: 992px) {
	.orgn-name {
		max-width: 8rem;
	}
}

/* Media query for screens less than 992px for navbar */

/* Loading animation styling */
.loading-bg,
.loading-bg-alt {
	top: 0;
	left: 0;
	z-index: 100;
	height: 100%;
	width: 100%;
	position: fixed;
	display: none;
}

.loading-position {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	user-select: none;
}

.loading-animation {
	animation: blink 1s linear infinite;
}

@keyframes blink {
	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* Loading animation styling */

/* Floating Chat section*/
.chat-section {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 100;
}

.chat-btn {
	background-color: #212121;
	color: white;
	font-size: 1.4rem;
	border: none;
	border-radius: 50%;
	padding: 0.4rem 0.8rem;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	border-radius: 34px 34px 34px 2px;
	cursor: pointer;
}

.chat-btn:hover {
	background-color: #212121;
}

/* Floating Chat section*/


/* Table elements styling */
table {
	padding-block: 1rem !important;
	text-align: center !important;
}

th {
	line-height: 1.25;
}

tr.dt-hasChild.parent {
	display: table-row !important;
}

td a {
	all: unset;
	cursor: pointer;
	font-weight: bold;
}

/* Select td which has a button inside */
td:has(button),
td:has(a.btn),
td:has(a button) {
	text-align: center;
}

td button {
	width: max-content;
	margin-bottom: 0.25rem;
}

td .btn-group a+a {
	margin-left: 0.25rem !important;
}

/* Table elements styling */


/* Data-table utility elements styling */
.dt_right_btn {
	float: right;
}

.dt-buttons {
	display: flex;
	gap: 0.25rem;
	position: absolute !important;
	top: 0rem;
	right: 14.5rem !important;
	margin-right: .5rem;
}

.dataTables_filter {
	position: absolute;
	top: 0rem;
	right: 0;
}

/* Data-table utility elements styling */

/* version 2024------------------- */

/* version 2024------------------- */

@media(max-width: 500px){
	.nav-right-section{
		margin-top: 10px;
	}
}

/*----------------------------------- tables style */
th {
	padding: 1rem !important;
	color: #ffffff;
	background: var(--primary-blue) !important;

}

.label-style{
	margin-bottom: .5rem;
	font-weight: 600;
	text-align: left;
}

.input-style{
	min-width: 100% !important;
	border: 1px solid var(--focus-outline);
	border-radius: 4px;
	padding-left: .7rem;
	min-height: 32px;
	font-size: 0.9rem;
}

.input-style:focus{
	width: 100%;
	border: 1px solid var(--focus-outline);
	padding-left: .7rem;
	border-radius: 4px;

}


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

/* buttons style-------------------------- */

.primary-wa-btn, .primary-wa-disabled-btn{
	background: var(--primary-blue);
	border: 1px solid var(--primary-blue);
	color: #ffffff;
}
.primary-wa-btn:hover{
	background: #ffffff;
	color: var(--primary-blue);
}

.primary-wa-disabled-btn:hover{
	color: white;
}
.primary-wa-btn:disabled{
	pointer-events: none !important;
}
.secondary-wa-btn{
	background: var(--secondary-blue);
	border: 1px solid var(--secondary-blue);
	color: #ffffff;
}
.secondary-wa-btn:hover{
	background: transparent !important;
	color: var(--secondary-blue);
}

@media(max-width: 500px){
	.nav-right-section{
		margin-top: 10px;
	}
}

/* underline the text partially */
.decorated-text{
	position: relative;
}

.decorated-text::after{
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	background: #717171;
	width: 30px;
	height: 3px;
	border-radius: 100px;
}

.button-style.disabled, .button-style:disabled {
	background-color: #aaa;
}
.dt-buttons button{
	border:none;
	font-weight: 500;
	padding: 5px 15px !important;
	margin-right: 0.1rem !important;
	border-radius: .2rem !important;
}
.dt-buttons button:first-child {
	background: var(--secondary-blue);
	color: #ffffff;
}

.dt-buttons button:first-child:hover{
	background:  rgba(0, 112, 192, 0.9);
	border: none !important;
}