/*
*	Bartaxchange front-end styling
*/

/*
*	Variables
*/

:root {
	--contrast-1:		#222222;
	--contrast-2:		#5a5a60;
	--contrast-3:		#939597;
	--base-1:			#ffffff;
	--base-2:			#f1f3f4;
	--base-3:			#fafafa;
	--accent-1:			#1c8d90;
	--accent-2:			#fdc04b;
	--accent-1-trans-1:	#1f979b18;
	--accent-2-trans-1:	#fdc04b18;
	--accent-1-trans-2:	#1f979b50;
	--accent-2-trans-2:	#fdc04b50;
	--black:			#222222;
	--dark-grey:		#5a5a60;
	--mid-grey:			#939397;
	--light-grey:		#d3d3d7;
	--white:			#ffffff;
	--teal:				#1f979b;
	--gold:				#fdc04b;
	--red:				#fe7a3a;
	--blue:				#225fb1;
	--header-bg:		#f1f3f4;
	--page-bg:			#fafafa;
	--radius-norm:		12px;
	--gap-norm:			20px;
	--gap-small:		10px;
	--sidebar-width:	35%;
	/*	Google place autocomplete (doesn't work!) */
	--gmpx-color-primary:	#cccccc;
}

/*
*	General
*/

.no-bottom-margin {
	margin-bottom: 0px;
}

.bottom-margin {
	margin-bottom: var( --gap-norm );
}

.bottom-margin.small {
	margin-bottom: var( --gap-small );
}

.accent-1 {
	color: var( --accent-1 );
}

.accent-2 {
	color: var( --accent-2 );
}

.flex-wrap {
	display: flex;
	flex-wrap: wrap;
	column-gap: var( --gap-norm ); 
	row-gap: 5px;
}

.flex-nowrap {
	display: flex;
	flex-wrap: nowrap;
	column-gap: var( --gap-norm ); 
	row-gap: 5px;
}

.flex-wrap-mobile-only {
	display: flex;
	flex-wrap: nowrap;
	column-gap: var( --gap-norm ); 
	row-gap: 5px;
}

.flex-grow {
	flex-grow: 1;
}

.space-between {
	justify-content: space-between;
}

.box-padding {
	padding: 10px 15px;
}

.stacked {
	width: 100%;
	text-align: center;
}

button {
	border-radius: var( --radius-norm );
	padding: 5px 25px;
	background-color: var( --accent-1 );	
	color: var( --white );
	font-weight: 400;
	opacity: 0.75;
	transition: all 0.4s ease-in-out;
}

button.hollow {
	background-color: #ffffff00;	
	color: var( --accent-1 );
	border: 2px solid var( --accent-1 );
}

button.hollow:hover {
	color: var( --white );
}

button:hover {
	background-color: var( --accent-1 );	
	opacity: 1;
}

button.cancel {
	background-color: var( --red );	
}

button.hollow.cancel {
	background-color: #ffffff00;	
	color: var( --red );
	border: 2px solid var( --red );
}

button.hollow.cancel:hover {
	background-color: var( --red );	
	color: var( --white );
}

button.info {
	background-color: var( --blue );	
}

button.hollow.info {
	background-color: #ffffff00;	
	color: var( --blue );
	border: 2px solid var( --blue );
}

button.hollow.info:hover {
	background-color: var( --blue );	
	color: var( --white );
}

/*
*	bxTree
*/

/* Tree styling */

.bxTree {
	min-height: 350px;
	overflow: auto;
	position: relative;
}

.bxTree .tree-node {
	padding: 2.5px;
}

.bxTree .tree-node input {
	/*margin-right: 10px;*/
	margin-left: 3px;
	transform: scale( 1.5 );
	accent-color: var( --accent-1 );
	outline: none; /* Remove default outline */
	cursor: pointer; /* Change cursor to pointer */
}

.bxTree .tree-node input:hover {
	accent-color: var( --accent-1 );
	background-color: var( --accent-1 );
	color: var( --accent-1 );
}

.bxTree .tree-label {
	cursor: pointer;
}

.bxTree .expand-icon {
	/*margin-right: 5px;*/
	font-weight: 200;
	font-size: 1.5em;
	cursor: pointer;
	color: var( --accent-1 );
	display: inline-block;
	min-width: 1em;
}

.bxTree .child-count {
	font-size: 0.9em;
	color: #666;
	margin-left: 10px;
}

.bxTree .tree-children {
	margin-left: 20px; /* Indent children */
	max-height: 0; /* Set initial height to 0 */
	overflow: hidden; /* Hide overflow */
	transition: max-height 0.7s ease; /* Smooth transition for height */
	padding-top: 3px;
}

.bxTree .tree-total {
	position: absolute;
    bottom: 15px;
    left: 15px;
    background: #f0f0f0;
    padding: 10px 15px;
    right: 15px;
    border-radius: 12px;
}
	
/* Smooth expansion */
.bxTree .tree-children.open {
}

.bxTree .tree-child {
	padding: 2.5px 3px;
}

/*
*	Dashboard
*/

.dashboard.sidebar-block,
.posted_task .sidebar-block {
	background-color:	var( --header-bg );
	border: 1px solid var( --mid-grey );
	border-radius: var( --radius-norm );
	padding: 15px;
	margin-bottom: var( --gap-norm );
}

.dashboard.sidebar-block .avatar {
	max-width: 90px;
	max-height: 90px;
	width: 90px;
	height: 90px;
	overflow: hidden;
	border-radius: 60%;
}

.dashboard.sidebar-block .balance-row {
	display: flex; 
	gap: var( --gap-norm ); 
	justify-content: space-between; 
	align-items: center;
	padding-top: var( --gap-norm );
}

.dashboard.sidebar-block .menu-row {
	display: flex;
	justify-content: space-between;
	margin: 8px 0px;
}

.dashboard.sidebar-block .menu-row .menu-icon {
	text-align: left;
	width: 2em;
	flex-basis: 2em;
	font-size: 15px;
	font-weight: 200;
	padding-top: 2px;
	color: var( --accent-1 );
}

.dashboard.sidebar-block .menu-row .menu-label {
	text-align: left;
	flex-grow: 1;
	font-size: 16px;
	font-weight: 300;
}

.dashboard.sidebar-block .menu-row .menu-label.current {
	color: var( --accent-1 );
	font-weight: 600;
}

.dashboard.sidebar-block .menu-row .menu-label a {
	color: var( --contrast-2 );
}

.dashboard.sidebar-block .menu-row .menu-label a:hover {
	color: var( --accent-2 );
}

.dashboard.sidebar-block .menu-row .menu-alert.alert {
	width: 20px;
	height: 20px;
	max-width: 20px;
	max-height: 20px;
	overflow: visible;
	background-color: var( --accent-1 );
	color: var( --base-1 );
	border-radius: 60%;
	margin-right: 0.7em;
	text-align: center;
}

.dashboard.sidebar-block .menu-row .menu-alert span {
	font-size: 10px;
	font-weight: 500;
}

.dashboard-tab-group {
	display: flex;
	border-bottom: 1px solid var( --dark-grey );
	margin: 20px 0px 40px;
}

.dashboard-tab {
	margin: 8px 2px 0px;
	padding: 6px 25px;
	border-top: 1px solid var( --dark-grey );
	border-left: 1px solid var( --dark-grey );
	border-right: 1px solid var( --dark-grey );
	border-top-right-radius: var( --radius-norm );
	border-top-left-radius: var( --radius-norm );
	background-color: var( --header-bg );
}

.dashboard-tab.active {
	background-color: var( --page-bg );
	margin-top: 0px;
	padding-top: 15px;
	border-bottom: none; /* Remove bottom border for active tab */
	position: relative;
	top: 1px; /* Slightly lift the active tab to cover the group border */
}

.dashboard-tab a {
	color: var( --mid-grey );
}

.dashboard-tab a:hover {
	color: var( --accent-2 );
}

.dashboard.header .data {
	font-size: 0.9em;
}


/*
*	Forms
*/

.bx-form .label {
	color: var( --accent-1 );
	font-weight: 400;
	font-size: 1.05em;
}

.bx-form .help {
	color: var( --contrast-3 );
	font-size: 0.85em;
}

input, textarea, .white-box {
	border: 1px solid var( --light-grey ) !important;
	border-radius: 6px !important;
	background-color: var( --base-1 ) !important;
}

input:focus, textarea:focus {
	border: 1px solid var( --contrast-3 ) !important;
}

input[type=checkbox] {
	margin: 0px 8px 0px 6px;
    transform: scale(1.5);
    accent-color: var(--accent-1);
    outline: none;
    cursor: pointer;
}


/*
*	GooglePlace
*/

gmp-place-autocomplete {
	xborder: 3px solid red !important;
	border-radius: 6px !important;
	background-color: var( --base-1 ) !important;
}

.focus-ring {
	border: 0px solid #ffffff !important;
	opacity: 0 !important;
}

/*
*	Task blocks 
*/

.task-block-wrapper {
	background-color: var( --base-1 );
	padding: 15px;
	margin: var( --gap-norm ) 0px;
	border: 1px solid #bbbbbb;
	border-radius: var( --radius-norm );
	filter: drop-shadow( 0px 2px 6px #00000016 );
}

.task-block-wrapper.dashboard .content.preview {
	max-height: 80px;
	position: relative;
	overflow: hidden;
	margin-top: 15px;
	padding: 5px 0px;
	/*border-top: 1px solid var( --light-grey );
	border-bottom: 1px solid var( --light-grey );*/
} 

.xtask-block-wrapper.dashboard .content.preview::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%; /* Adjust the height as needed */
	background: linear-gradient( to top, white, rgba( 255, 255, 255, 0 ) );
	pointer-events: none; /* Ensures the overlay doesn't block interactions with content */
}

.content.categories {
	padding: 15px 0px;
}

.task-category-badge {
	padding: 4px 10px;
	background-color: var( --accent-1-trans-1 );
	color: var( --accent-1 );
	border: 1px solid var( --accent-1 );
	border-radius: 50px;
	font-size: 0.85em;
	font-weight: 500;
}

.key-value.half {
	flex-basis: 45%;
}

.key-value.twofifths {
	flex-basis: 40%;
}

.strong {
	font-size: 1.1em;
	font-weight: 400;
}

.key-value .right {
	text-align: right;
}

.admin-only,
.mod-only {
	border: 1px solid var( --light-grey );
	border-radius: var( --radius-norm );
	margin: 10px 0px;
	padding: 15px;
}




/*
 *	Media query for mobile phones in portrait mode
 */
 
@media only screen and (min-width: 414px) and (max-width: 736px) and (orientation: portrait) ,
	only screen and (min-width: 375px) and (max-width: 667px) and (orientation: portrait),
	only screen and (min-width: 360px) and (max-width: 640px) and (orientation: portrait),
	only screen and (min-width: 320px) and (max-width: 568px) and (orientation: portrait) {

	.flex-wrap-mobile-only {
		flex-wrap: wrap;
	}


}
