﻿.tabs-stage {
	width: 100%;
}

#heading {
	font-size: 32px;
}

#tabbar {
	width: 100%;
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.tab {
	padding-top: 20px;
	text-decoration: none;
	padding-bottom: 20px;
	cursor: pointer;
	font-size: 18px;
	color: rgba(0, 0, 0, 0.7);
}

.tab-active {
	padding-top: 20px;
	text-decoration: none;
	padding-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
	color: #2953b4;
	border-bottom: 4px solid #2953b4;
}

.content-career {
	margin-top: 55px;
	width: 100%;
	display: flex;
	gap: 40px !important;
	min-height: 350px;
}

#detail-box {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.detail-child {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 10px;
	padding-bottom: 10px;
}

.detail-child-top {
	color: #2953b4;
	font-size: 40px;
	font-weight: 600;
}

.detail-child-bottom {
	color: rgba(0, 0, 0, 0.7);
	font-size: 18px;
}

#salary-box {
	position: relative;
	text-align: center;
	flex: 2;
	height: 100%;
	padding-left: 20px;
	padding-top: 20px;
	padding-right: 30px;
	box-sizing: border-box;
	/* Add this line */
}

#demand-box {
	display: flex;
	flex-direction: column;
	justify-content: start;
	max-width: 280px;
	flex: 1;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	/* Add this line */
	text-align: center;
}

.dtext {
	font-size: 22px;
	color: rgba(0, 0, 0, 0.9);
	font-weight: 600;
}

.content-career-box {
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.103);
}

#salary-box h2 {
	font-size: 21px;
	font-weight: 600;
	margin-left: 20px;
}

.line-parent {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	position: relative;
}

.mark {
	width: 40px;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: #555;
	text-align: right;
	margin-right: 10px;
}

.horizontal-line {
	flex-grow: 1;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.07);
}

.salary-chart {
	position: relative;
	margin-top: 25px;
	height: 230px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-bottom: 10px;
	align-items: center;
}

.x-axis {
	position: absolute;
	bottom: 2%;
	right: 5%;
	display: flex;
	justify-content: space-between;
	width: 75%;
}

.x-axis-element {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.7);
}

.bars {
	position: absolute;
	z-index: 10;
	top: -11%;
	right: 0;
	display: flex;
	width: 90%;
	height: 100%;
	gap: 8% !important;
	align-items: flex-end !important;
	justify-content: flex-end;
}

.bar {
	width: 12%;
	transform-origin: bottom;
	animation: growBar 1s ease-out forwards;
}

@keyframes growBar {
	from {
		height: 0;
	}

	to {
		height: var(--final-height);
	}
}

.middle-bar {
	--final-height: 80%;
	height: var(--final-height);
	background: #2953b4;
}

.second-bar {
	--final-height: 60%;
	height: var(--final-height);
	background-color: #d4ddf0;
}

.side-bar {
	--final-height: 40%;
	height: var(--final-height);
	background-color: #d4ddf0;
}

@media (min-width: 993px) {
	#container {
		width: 900px;
	}

	.tab {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.tab-active {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.detail-child-top {
		font-size: 30px;
	}

	.content-career {
		height: 350px;
		margin-top: 45px;
	}
}

@media (min-width: 768px) and (max-width: 992px) {
	#container {
		width: 700px;
	}

	.tab {
		font-size: 13px;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.tab-active {
		font-size: 13px;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.detail-child-top {
		font-size: 25px;
	}

	.detail-child-bottom {
		font-size: 14px;
	}

	#detail-box {
		justify-content: space-evenly;
	}

	.content-career {
		margin-top: 40px;
		height: 350px;
	}

	#heading {
		width: 90%;
		text-align: center;
	}
}

@media (min-width: 320px) and (max-width: 767px) {
	#container {
		width: 100%;
		max-width: 550px;
		padding: 10px;
	}

	#tabbar {
		flex-direction: row;
		overflow-x: auto; /* Enables horizontal scrolling */
		white-space: nowrap; /* Prevents wrapping */
		scrollbar-width: thin; /* Firefox scrollbar styling */
		-webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
	}

	.tab {
		flex-shrink: 0; /* Prevents shrinking */
		padding: 10px 15px;
		font-size: 16px;
	}

	.tab-active {
		flex-shrink: 0; /* Prevents shrinking */
		padding: 10px 15px;
		font-size: 16px;
	}

	.content-career {
		flex-direction: column;
		margin-top: 10px;
		gap: 10px !important;
	}

	.detail-child-top {
		font-size: 25px;
	}

	.detail-child {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.detail-child-bottom {
		font-size: 14px;
	}

	#demand-box {
		padding-left: 0px;
		align-items: center;
		padding-top: 15px;
		padding-bottom: 20px;
		max-width: 100%;
	}

	.x-axis {
		bottom: 2%;
	}
}
/* Dark Theme*/
[data-bs-theme="dark"] body {
	background-color: #121212;
	color: #E0E0E0;
}

[data-bs-theme="dark"] .content-career-box {
	background-color: #1E1E1E;
}

[data-bs-theme="dark"] #salary-box,
[data-bs-theme="dark"] #demand-box {
	background-color: #1E1E1E;
	color: #E0E0E0;
}

[data-bs-theme="dark"] .salary-chart {
	background-color: #1E1E1E;
	color: #E0E0E0;
}

[data-bs-theme="dark"] .middle-bar {
	background: #4A90E2;
}


[data-bs-theme="dark"] .x-axis-element {
	color: #CCCCCC;
}

[data-bs-theme="dark"] .tab {
	color: #FFFFFF;
}

[data-bs-theme="dark"] .detail-child-bottom {
	color: #FFFFFF;
}

[data-bs-theme="dark"] .dtext {
	color: #FFFFFF;
}

[data-bs-theme="dark"] #tabbar {
	background-color: #1E1E1E;
	color: #FFFFFF;
}

[data-bs-theme="dark"] .mark {
	color: #FFFFFF;
}

[data-bs-theme="dark"] .detail-child-top {
	color: #00b2fd;
}

[data-bs-theme="dark"] .horizontal-line {
	background-color: #41484a;
}
