/*---------------------------------------
   Variables
-----------------------------------------*/

// Colors
@color-primary: #408cd8;
@color-primary-dark: #408cd8;

@color-secondary: rgba(255,255,255, .87);
@color-secondary-dark: #e3e3e3;

@color-text: #212529;

@color-white: #fff;

@color-text-placeholder: rgba(89, 89, 89, .5);

@color-dark: #212529;
@color-dark-transparent: rgba(0, 0, 0, .4);
@color-white-transparent: rgba(255, 255, 255, .05);

@color-white-light: #f8f9fa;

// Sizes
@navbar-height: 48px;
@footer-height: 45px;

@content-page-height: calc(100% - (@navbar-height));

// Mobile Responsive     
	// Max
@sm: (max-width: 575.98px);
@md: (max-width: 767.98px);
@lg: (max-width: 991.98px);
@xl: (max-width: 1199.98px);

	// Min
@md-min: (min-width: 768px);

@media @sm {
	.m-sm-none {
		margin: 0px !important;
	}
}

// Contaiers



/*---------------------------------------
   Clases        
-----------------------------------------*/

.text-primary {
	color: @color-primary;
}

.text-secondary {
	color: @color-secondary;
}

.text-placeholder {
	color: @color-text-placeholder;
}

.bg-primary {
	background-color: @color-primary;
}

.bg-primary-dark {
	background-color: @color-primary-dark;
}

.bg-secondary {
	background-color: @color-secondary;
}

.bg-secondary-dark {
	background-color: @color-secondary-dark;
}

.bg-white-transparent {
	background-color: @color-white-transparent;
}

.bg-dark {
	background-color: @color-dark !important;
}

.bg-dark-transparent {
	background-color: @color-dark-transparent;
}

.bg-placeholder {
	background-color: @color-text-placeholder;
}

.bg-transparent {
	background-color: transparent;
}

.bg-gradient-primary {
	background: linear-gradient(to right top, @color-primary-dark, @color-primary, @color-primary-dark) fixed;
}

.bg-transition {
	-webkit-transition: background-color 500ms linear;
	-moz-transition: background-color 500ms linear;
	-o-transition: background-color 500ms linear;
	-ms-transition: background-color 500ms linear;
	transition: background-color 500ms linear;
}

.bg-image-primary {
	.bg-image('../images/web/background_jewerly_200x100.jpg');
}

.bg-image(@image) {
	background-image: url(@image);
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
}

.bg-image-light(@image) {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url(@image);
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    opacity: 0.6;
}

.box-shadow {
	-webkit-box-shadow: 5px 13px 19px 0px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 5px 13px 19px 0px rgba(0, 0, 0, 0.75);
	box-shadow: 5px 13px 19px 0px rgba(0, 0, 0, 0.75);
}

.box-shadow-none {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

.cursor-pointer {
	cursor: pointer;
}

.icon-sm {
	font-size: 10px !important;
}

.icon-md {
	font-size: 22px !important;
}

.icon-lg {
	font-size: 29px !important;
}

.icon-xl {
	font-size: 36px !important;
}

.overhead {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

@media (min-width: 576px) {
    .collapse {
		&.collapse-reverse {
			&.show {
				display: none !important;
			}

			&:not(.show) {
				display: block !important;
			}
		}
	}
}

/*---------------------------------------
   Style
-----------------------------------------*/

html {
	height: 100%;
}

body {
	.bg-image-primary();
	.bg-dark();
	height: 100%;

	// Scroll bar
	&::-webkit-scrollbar {
		width: .7em;
	}

	&::-webkit-scrollbar-thumb {
		background: rgba(90, 90, 90);
	}

	&::-webkit-scrollbar-thumb {
		&:hover, &:active {
			background-color: rgba(255, 255, 255, 0.30);
		}
	}

	&::-webkit-scrollbar-track {
		background: rgba(0, 0, 0, 0.2);
	}
}

.page {
	height: @content-page-height;

	@media @sm {
		height: initial;
	}

	> .row:first-of-type {
		height: 100%;
	}
}

.container-page {
	margin-right: 15px;
	margin-left: 15px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	.box-shadow-none();
	-webkit-text-fill-color: @color-text;
}

input::-webkit-search-cancel-button {
	cursor: pointer;
}

.btn-primary {
	background-color: @color-dark;
	color: @color-secondary;
	border-color: @color-dark;

	&:hover {
		background-color: @color-dark-transparent;
		color: @color-white;
		border-color: @color-dark-transparent;
	}
}

section {
	padding-top: 1rem;
	padding-bottom: 1rem;
	background-color: @color-white-light;
}

/*---------------------------------------
   Bootstrap        
-----------------------------------------*/

.show {
	display: initial !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}

@media @md-min {
	.col-md-2_5 {
		-ms-flex: 0 0 20.8333335%;
		flex: 0 0 20.8333335%;
		max-width: 20.8333335%;
	}
}

/*-------------------------------------------------------------------------------------------------------
   												Custom Components
---------------------------------------------------------------------------------------------------------*/

/*---------------------------------------
    Go Top Button
-----------------------------------------*/

.go-top {
	background-color: #ffffff;
	box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
	border-radius: 100px;
	transition : all 1s ease;
	bottom: 2em;
	right: 2em;
	color: #333;
	font-size: 22px;
	display: none;
	position: fixed;
	text-decoration: none;
	width: 35px;
	height: 35px;
	line-height: 30px;
	text-align: center;
	z-index: 99;
}

.go-top:hover {
    background: rgb(7, 71, 166);
    color: #ffffff;
}
/*---------------------------------------
   Navbar Navigation
-----------------------------------------*/

.navbar-navbar {
	box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
	height: @navbar-height;
	padding-bottom: 0px;
	padding-top: 0px;

	@media @sm {
		height: initial;
	}

	.navbar-brand {
		img {
			width: 100px;
			height: 40px;
		}
	}

	li {
		min-width: 100px;
		text-align: center;
		border-radius: 5px;

		&.active {
			background-color: rgba(255, 255, 255, 0.30);
			color: #fff;
			font-weight: 500;
		}

		a {
			.text-secondary();
			font-style: italic;
			font-size: 20px;
			padding-top: 10px;
		}
	}

	.navbar-collapse {
		height: 100%;
	}

	.navbar-toggler i {
		.text-secondary();
	}
}

/*---------------------------------------
   Sidebar Navigation
-----------------------------------------*/

.navbar-sidebar {
	padding: 0 0 .5rem 0;
	height: 100%;

	&.animation-in {
		animation: slideInLeft;
		animation-duration: .5s;
	}

	&.animation-out {
		animation: slideOutLeft;
		animation-duration: 2s;
	}

	@media @sm {
		height: initial;

		&.animation-in {
			animation: slideOutUp;
			animation-duration: .5s;
		}
	
		&.animation-out {
			animation: slideInDown;
			animation-duration: .5s;
		}
	}

	.content {
		max-width: 100%;

		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;

		position: -webkit-sticky;
		position: sticky;
		z-index: 1020;

		.header {
			width: 100%;
			background-color: rgba(255, 255, 255, 0.3);
			padding: 1rem 1rem 0rem 1.5rem;
			margin-bottom: 1.5rem;

			.btn-close {
				position: absolute;
				right: 15px;
				padding: 0 .75rem;
				color: rgba(255, 255, 255, 0.87);
				font-size: 24px;
				box-shadow: none;

				@media @md-min {
					display: none;
				}
			}

			.profile {
				align-self: center;
				flex: 0 0 33.333333%;
				width: 33.333333%;
				padding-left: 15px;
				padding-right: 15px;

				img {
					width: 75px;
					padding: 0rem;
					border: 1px solid @color-secondary;
					border-radius: .25rem;
					max-width: 100%;
					height: auto;
					border-radius: 50% !important;
					box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
				}
			}

			.title {
				flex: 0 0 66.666667%;
				width: 66.666667%;
				.text-secondary();
				
				h4 {
					margin: 0px;
				}

				p {
					font-weight: 300;
					margin-bottom: 0px;
				}
			}

			.buttons {
				display: flex;
				flex: 0 0 100%;
				width: 100%;
				justify-content: flex-end;

				@media @sm {
					padding-right: 15px;
				}

				.btn {
					padding: 0 .75rem;
					color: rgba(255, 255, 255, 0.87);
					font-size: 18px;
					box-shadow: none;
				}
			}
		}

		.navbar {
			-ms-flex: 0 0 33.333333%;
			flex: 0 0 33.333333%;
			max-width: 33.333333%;
			justify-content: center;
			padding-top: 0px;
			padding-left: 5px;
			padding-right: 0px;

			ul {
				height: 100%;

				li {
					margin-bottom: 1rem;
					text-align: center;

					&.active {
						border-left: 2px solid white;

						a {
							color: #fff;
						}
					}

					a {
						padding: .5rem 0rem;
						color: rgba(255, 255, 255, 0.87);

						i {
							display: block;
							font-size: 30px;
						}
					}
				}
			}
		}

		.navigation {
			-ms-flex: 0 0 66.666667%;
			flex: 0 0 66.666667%;
			max-width: 66.666667%;
			padding-left: 0px;

			.content-title {
				.text-secondary();
				font-weight: 700;
				text-transform: uppercase;
				padding: 0 1rem .78rem 1rem;
				margin-bottom: 0;
				font-size: 80%;
			}

			ul {
				width: 100%;
				
				a {
					.text-secondary();
					&.active {
						background-color: rgba(255, 255, 255, 0.30);
						border-radius: 0 16px 16px 0;
						color: #fff;
						font-weight: 500;
						opacity: 1;
					}

					i {
						color: #fff;
						opacity: .7;
					}
				}
			}
		}
	}
}

#btn-sidebar-nav {
	border-radius: 50%;
	padding: 12px;
	&:hover {
		background-color: rgba(232,234,237,0.08);
	}

	i {
		.text-secondary();
	}
}

/*---------------------------------------
   Login
-----------------------------------------*/

#form_login {
	.bg-secondary();
	.box-shadow();
	
	padding-left: 3rem;
	padding-right: 3rem;

	.icon {
		display: inline-block;
		width: 115px;
		max-width: 100%;
		height: auto;

		@media @sm {
			width: 115px;
			height: 115px;
		}
	}

	.title {
		color: @color-text;
	}

	.focus-icon i {
		color: @color-text;
	}

	input {
		.bg-secondary-dark();
		color: @color-text;
		transition: background-color 5000s ease-in-out 0s;
	}

	input::placeholder {
		.text-placeholder();
	}

	input:-webkit-autofill,
	input:-webkit-autofill:hover, 
	input:-webkit-autofill:focus,
	input:-webkit-autofill:active {
		.box-shadow-none();
		-webkit-text-fill-color: @color-text;
	}

	button[type=submit] {
		.bg-primary-dark();
		.text-secondary();
		font-weight: bold;
		border: none;
		height: 48px;
		border-radius: 10px;
	}

	.remember-me label {
		color: @color-text;
		margin-left: 10px;
	}

	/* Color border-bottom: background */
	&.formV4 .focus-icon::before {
		background: @color-text;
	}
}

/*---------------------------------------
   Login Modal
-----------------------------------------*/

#modal_loginSelectSession {
	.bg-image-primary();

	.modal-content {
		.bg-transparent();

		.modal-header {
			.bg-white-transparent();

			.modal-title {
				.text-secondary();
				text-transform: uppercase;
				padding: 25px;
				position: relative;
				z-index: 2;
			}
		}

		.modal-body {
			.bg-secondary();
		
			figure {
				.cursor-pointer();

				&:hover img {
					width: 200px;
					margin-top: -15px;
				}

				img {
					transition: all 0.50s ease;
				}

				figcaption {
					.text-primary();
				}
			}
		}
	}
}

/*---------------------------------------
   footer        
-----------------------------------------*/

.footer {
	.bg-dark-transparent();
	.text-secondary();
	height: @footer-height;
	text-align: center;

	.footer-copyright {
		text-align: center;
	}
}
