@import "../css/variable.css";
@import "../libs/select2/select2.min.css";

body {
	font-family: var(--font-primary);
	font-size: 15px;
	overflow-x: hidden;
}

.font-primary {
	font-family: var(--font-primary);
}

.font-secondary {
	font-family: var(--font-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-secondary);
	font-weight: 700;
}

.btn {
	padding: 10px 20px;
	border-radius: 25px;
	font-weight: 700;
	font-size: var(--btn-font-size);
}

.btn-primary {
	background: var(--bg-btn-primary);
	border-color: var(--btn-border-color);

	&:hover {
		background: var(--btn-hover-bg);
		border-color: var(--btn-hover-border-color);
	}
}

.btn-white {
	background: var(--bg-btn-white);
	border-color: var(--btn-border-color);

	&:hover {
		background: var(--btn-hover-bg);
		border-color: var(--btn-hover-border-color);
		color: var(--btn-hover-color);
	}
}

.btn.btn-orange {
	background: var(--bg-btn-orange);
	border-color: var(--btn-border-color);

	&:hover,
	&:focus,
	&:active {
		background: var(--btn-hover-bg);
		border-color: var(--btn-hover-border-color);
		color: var(--btn-hover-color);
	}
}

.bg-blue-primary {
	background: var(--bg-blue-color);
}

.bg-blue-light {
	background: var(--bg-blue-light-color);
}

.text-primary-blue {
	color: var(--text-primary-color);
}

.page-section {
	padding: 50px 0;

	@media (max-width: 767px) {
		padding: 40px 0;
	}
}

a,
.btn {
	text-decoration: none;
	transition: all .3s ease;

	&:hover,
	&:focus {
		text-decoration: underline;
	}
}

.btn {

	&:hover,
	&:focus {
		text-decoration: none;
	}
}

.border-radius {
	border-radius: var(--border-radius);
}

.bg-success {
	background: #5DFF00 !important;
}

.form-control,
.form-select,
.input-group-text {
	border-radius: var(--border-radius);
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
	color: var(--bs-body-color);
	background-color: var(--bs-body-bg);
	border-color: #86b7fe;
	outline: 0;
	box-shadow: 0 0 0 0.20rem rgba(13, 110, 253, 0.25);
}

.form-check-input:hover {
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.20rem rgba(13, 110, 253, 0.25);
}

.card {
	border-radius: 15px;
	border: solid 1px var(--bs-primary-bg-subtle);
}

.success-icon {
	font-size: calc(6rem + 1.5vw);

	@media (min-width: 992px) {
		font-size: 12rem;
	}
}

@media (max-width: 991px) {
	.responsive-table {
		overflow-x: auto;
	}
}

main {
	min-height: 700px;
}

/* Loader */

.sk-cube-grid {
	width: 40px;
	height: 40px;
}

.sk-cube-grid .sk-cube {
	width: 33%;
	height: 33%;
	background-color: var(--btn-primary-bg);
	float: left;
	-webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
	animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

.sk-cube-grid .sk-cube1 {
	-webkit-animation-delay: 0.2s;
	animation-delay: 0.2s;
}

.sk-cube-grid .sk-cube2 {
	-webkit-animation-delay: 0.3s;
	animation-delay: 0.3s;
}

.sk-cube-grid .sk-cube3 {
	-webkit-animation-delay: 0.4s;
	animation-delay: 0.4s;
}

.sk-cube-grid .sk-cube4 {
	-webkit-animation-delay: 0.1s;
	animation-delay: 0.1s;
}

.sk-cube-grid .sk-cube5 {
	-webkit-animation-delay: 0.2s;
	animation-delay: 0.2s;
}

.sk-cube-grid .sk-cube6 {
	-webkit-animation-delay: 0.3s;
	animation-delay: 0.3s;
}

.sk-cube-grid .sk-cube7 {
	-webkit-animation-delay: 0s;
	animation-delay: 0s;
}

.sk-cube-grid .sk-cube8 {
	-webkit-animation-delay: 0.1s;
	animation-delay: 0.1s;
}

.sk-cube-grid .sk-cube9 {
	-webkit-animation-delay: 0.2s;
	animation-delay: 0.2s;
}

@-webkit-keyframes sk-cubeGridScaleDelay {

	0%,
	70%,
	100% {
		-webkit-transform: scale3D(1, 1, 1);
		transform: scale3D(1, 1, 1);
	}

	35% {
		-webkit-transform: scale3D(0, 0, 1);
		transform: scale3D(0, 0, 1);
	}

	;
}

@keyframes sk-cubeGridScaleDelay {

	0%,
	70%,
	100% {
		-webkit-transform: scale3D(1, 1, 1);
		transform: scale3D(1, 1, 1);
	}

	35% {
		-webkit-transform: scale3D(0, 0, 1);
		transform: scale3D(0, 0, 1);
	}

	;
}

/* Tooltip */

.custom-tooltip .tooltip-inner {
	padding: 10px;
	background-color: #3572EF;
	box-shadow: 0 0 10px 2px rgba(0, 30, 0, 0.15);
}

.custom-tooltip .tooltip-arrow::before {
	border-top-color: #3572EF !important;
}

/* Multi Select */

.select2-container--default .select2-selection--multiple {
	padding: .375rem .75rem;
	border-color: var(--bs-border-color);
	border-radius: var(--border-radius);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin: 0 5px 5px 0;
	background-color: #e9ecef;
	border: 1px solid #e7eff7;
}

.select2-container {
	width: 100% !important;
}

/* Badge */

.custom-badge {
	font-weight: 400;
	background: var(--bs-gray-200);
	color: var(--bs-highlight-color);
}

/* Sticky */

@media (min-width: 992px) {
	.sticky-sidebar {
		position: sticky;
		top: 20px;
		height: 100%;
	}
}

/* Header */

header {
	/* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.15); */

	.logo {
		max-width: 200px;

		@media (max-width: 767px) {
			width: 175px;
		}

		@media (max-width: 480px) {
			width: 150px;
		}
	}

	.navbar-toggler {
		color: rgba(var(--bs-primary-rgb));
	}

	.navbar-nav {
		.nav-link {
			color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity));
			text-decoration: none;

			&:hover,
			&:focus {
				color: rgba(var(--bs-primary-rgb));
			}
		}

		.hide-arrow.dropdown-toggle::after {
			display: none;
		}
	}
}

/* Dashboard */

.client-dashboard {
	.client-tabs {
		padding: 2rem;
		display: block;
		background: #fff;
		border: solid 5px var(--bg-blue-color);
		color: inherit;
		height: 100%;
		transition: all .3s ease;

		i {
			font-size: 2.5rem;
			color: var(--btn-primary-bg);
		}

		h4 {
			font-size: 1.2rem;
		}

		&:hover,
		&:focus {
			border: solid 5px var(--btn-primary-bg);
			text-decoration: none;
		}
	}
}

/* Landing */

.custom-form {
	max-width: 550px;

	.custom-radio {
		margin: 0;
		padding: 0;

		.btn-bg {
			padding: 3rem 1.5rem;
			background: #fff;
			border: solid 5px var(--bg-blue-color);
			color: var(--bg-blue-color);

			i {
				font-size: 3rem;
			}

			&:hover,
			&:focus {
				border: solid 5px var(--btn-primary-bg);
			}
		}

		input {
			position: absolute;
			left: 0;
			z-index: -1;
			opacity: 0;

			&:checked~.btn-bg {
				border: solid 5px var(--btn-primary-bg);
			}
		}
	}

	.sm-icon {
		max-width: 25px;
	}
}

/* Sign Up */

.login-bg {
	background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, 0.25)), url("../images/login-bg.jpg") no-repeat 50% 50% / cover;
	background-attachment: fixed;

	h1 {
		font-weight: 500;
		font-size: 2rem;
	}

	.btn-outline-secondary {

		&:hover,
		&:focus {
			img {
				filter: brightness(0) invert(100%);
			}
		}
	}

	.divider {
		margin: 2.5rem 0;
		height: 1px;
		overflow: visible;
		border-top: solid 1px #e7e7e9;
		text-align: center;
		opacity: 1;

		&:after {
			content: 'or';
			position: relative;
			top: -13px;
			padding: 0 15px;
			background: #fff;
			color: #6e6d7a;
		}
	}
}

/* Work In Progress */

.work-in-progress {
	background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5)), url("../images/work-in-progress.jpg") no-repeat 50% 50% / cover;
	background-attachment: fixed;
	color: #FFF;

	.logo {
		filter: brightness(0) invert(100%);
	}

	h1 {
		font-size: 3rem;
	}
}

/* Client Profile */

.image-input {
	position: relative;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: cover;

	&.avatar {
		width: 125px;
		min-width: 125px;
		height: 125px;
		background: url("../images/company/avatar.png") no-repeat 50% 50% / cover;
		border-radius: 50%;
		text-align: center;
	}

	.avatar-wrapper {
		background-repeat: no-repeat;
		background-size: cover;
		width: 100%;
		height: 100%;
		border-radius: 50%;
		overflow: hidden;

		img {
			object-fit: cover;
			width: 100%;
			max-width: 100%;
			height: 100%;
		}
	}

	.file-input {
		position: absolute;
		bottom: 5px;
		right: 5px;
		cursor: pointer;

		input[type='file'] {
			position: absolute;
			width: 30px;
			height: 30px;
			opacity: 0;
			overflow: hidden;
		}

		label {
			background: #FFF;
			text-align: center;
			height: 30px;
			width: 30px;
			line-height: 30px;
			border-radius: 15px;
		}
	}
}

/* Client Jobs */

.client-search {
	border: solid 1px var(--bs-primary-bg-subtle);

	.search-input {
		background: var(--btn-primary-bg);
		color: #FFF;
		transition: all .3s ease;

		&:hover,
		&:focus {
			background: var(--btn-secondary-bg);
		}
	}

	@media (max-width: 991px) {
		.row {
			gap: 0.5rem 0;
		}
	}
}

.client-job-tile-list {
	.client-job-list {
		margin-top: 1.5rem;
		background: var(--bg-blue-light-color);
		background: var(--bs-body-bg);
		border: solid 1px var(--bs-primary-bg-subtle);
		cursor: pointer;
		transition: all .3s ease;

		&:last-child {
			margin-bottom: 0;
		}

		a {

			color: var(--bs-body-color);

			.morelink {
				color: var(--text-primary-color);
			}
		}

		&:hover,
		&:focus {
			background: var(--bs-primary-bg-subtle);

			a {
				text-decoration: none;
			}

			.h4 {
				text-decoration: underline;
			}
		}
	}

	.delete-job {
		height: 2rem;
		width: 2rem;
		border-radius: 50%;

		&:hover,
		&:focus {
			background: #b3d0fb;
		}
	}
}

/* Character Length */

.morecontent span {
	display: none;
}

.morelink {
	display: block;
	margin-top: 0.5rem;
	font-weight: 700;
	font-size: 14px;
}

/* Suggested Consultants */

#suggestedConsultant {
	.accordion-item {
		border: 0;
		border-bottom: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);

		&:last-child {
			border-bottom: 0;
		}
	}

	.accordion-button:not(.collapsed) {
		background: none;
		box-shadow: none;
	}
}

.heart-icon {
	background: none;
	border: none;

	&:hover .fa-heart {
		color: var(--bs-danger);
	}

	.red {
		font-weight: 900;
		color: var(--bs-danger);
	}
}

/* Preferred Candidates */

.client-preferred-list {
	@media (max-width: 767px) {
		.d-flex {
			display: block !important;
			justify-content: center;
			text-align: center;
		}
	}

	@media (max-width: 480px) {
		.btn {
			display: block;
			margin-top: 0.5rem;
			width: 100%;
		}
	}

	.client-list {
		padding: 1rem;
		background: var(--bs-body-bg);
		border-radius: 15px;
		border: solid 1px var(--bs-primary-bg-subtle);
		height: 100%;

		.image-input {
			&.avatar {
				width: 100px;
				min-width: 100px;
				height: 100px;
			}
		}

		&:hover,
		&:focus {
			text-decoration: none;
		}
	}
}

/* Create Offer */

.offer-details {
	@media (max-width: 767px) {
		.d-flex {
			display: block !important;
			justify-content: center;
			text-align: center;
		}
	}

	@media (max-width: 480px) {
		.btn {
			display: block;
			width: 100%;
		}
	}
}

/* Chat */

.chat-container {
	height: 100%;
	background: #FFF;
	border-radius: var(--border-radius);

	&.chat-scroll {
		@media (max-width: 577px) {
			min-width: 500px;
			overflow-x: auto;
		}
	}

	.chat-list,
	.chat-body {
		height: calc(80vh - 5rem);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: rgba(var(--bs-dark-rgb), .2) transparent;

		.chat-snap {
			.image-input {
				&.avatar {
					width: 60px;
					min-width: 60px;
					height: 60px;
				}
			}
		}

		.chat {
			.chat-content {
				position: relative;

				a {
					text-decoration: none;

					.name-overflow {
						text-overflow: ellipsis;
						white-space: nowrap;
					}

					&:hover,
					&:focus,
					&.active {
						background: var(--bs-primary-bg-subtle);
					}
				}
			}
		}
	}

	.chat-body {

		.chat-header {
			background: var(--bs-primary-bg-subtle);
			border-top-right-radius: var(--border-radius);

			.name-overflow {
				text-overflow: ellipsis;
				white-space: nowrap;
			}

			.dropdown {
				transition: transform 1s;

				>a:hover,
				>a:focus {
					background: var(--bs-light);
					border-radius: 50%;
				}

				.dropdown-menu {
					transition: all 0.4s ease-out;
				}
			}
		}

		.chat-main-body {

			.message-in,
			.message-out {
				@media (min-width: 992px) {
					max-width: 65%;
				}
			}
		}

		.chat-footer {
			background: var(--bs-gray-100);
			width: 100%;
		}
	}
}

/* Client Positions */

.client-positions div.dt-container>div.row:first-child .dt-layout-end {
	display: none !important;
}

/* Log Work */

.day-view-table {

	.tabs-wrapper {
		box-shadow: inset 0 -1px #bcbcbc;
		overflow-x: auto;
	}

	.week-tabs,
	.week-tabs ul {
		display: flex;
		align-items: center;
		gap: 15px;

		ul {
			list-style: none;
			margin: 0;
			padding: 0;
		}
	}

	.day-view-week-nav li {
		flex: 100%;

		button {
			display: flex;
			flex-direction: column;
			padding: 8px 5px;
			background: transparent;
			border: 0;
			border-bottom: 2px solid transparent;
			font-weight: 500;

			&:hover,
			&.tab-selected {
				border-color: var(--bs-primary);
				color: var(--bs-primary);
			}
		}
	}

	#day-view-entries {
		.day-view-entry {
			border-bottom: 1px solid #bbb;
		}

		td {
			padding: 15px;
			word-wrap: break-word;
		}
	}

	.time-entry,
	.time-edit {
		vertical-align: middle;

		@media (min-width: 768px) {
			width: 20%;
		}

		@media (min-width: 1200px) {
			width: 12%;
		}

		@media (min-width: 1400px) {
			width: 10%;
		}

		@media (max-width: 767px) {
			width: 30%;
		}

		@media (max-width: 500px) {
			width: 40%;
		}
	}
}

/* Footer */

footer {
	padding: 50px 0;
	background: var(--footer-bg);
	color: var(--bs-gray);

	.email {

		&:hover,
		&:focus {
			color: var(--bs-white);
			text-decoration: none;
		}
	}

	ul.list-unstyled {
		grid-row-gap: 1rem;

		a {
			color: var(--bs-gray);

			&:hover,
			&:focus {
				color: var(--btn-primary-bg);
				text-decoration: none;
			}
		}
	}

	.copyright {
		border-top: 1px solid #2b2b2b;

		.brands {
			grid-column-gap: 1rem;

			a {
				font-size: 1.25rem;
				color: var(--bs-gray);

				&:hover,
				&:focus {
					color: var(--btn-primary-bg);
					text-decoration: none;
				}
			}
		}
	}
}