/* index.css */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

html, body {
	margin: 0;
	padding: 0;
	font-family: "Inter", sans-serif;
}

.title-header {
	min-height: 96px;
}

.tab-active-caret .nav-link {
	color: #748194 !important;
	font-size: 0.8333333333rem !important;
	font-weight: 700 !important;
	font-family: "Inter", sans-serif;
	padding: 0.5rem 1rem !important;  
	border: none !important;
	transition: none !important;
}

.tab-active-caret .nav-link:hover {
	border: none !important;
	background: transparent !important;
}

.tab-active-caret .nav-link.active {
	color: #0054a6 !important;
	background: transparent !important;
	position: relative;
	z-index: 1000;
}

.tab-active-caret .nav-link.active:after {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	bottom: -6px;
	left: 45%;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	background: #f8f9fa;
	border-right: 1px solid #dee2e6;
	border-bottom: 1px solid #dee2e6;
}

#map {
	height: 550px;
	width: 100%;
}

#statistics-content {
	height: auto;
}

#statBukaTab {
	border-bottom: 1px solid #dee2e6 !important;
	background-color: #f8f9fa;
}

.chart-container {
	height: 100%;
	min-height: 250px;
	width: 100%;
}

.chart-wrapper {
	background: #fff;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 10px;
}

@media (max-width: 767.98px) {
	.chart-container {
		min-height: 450px;
		padding-bottom: 50px;
	}
}

@media (max-width: 991.98px) {
	.chart-container {
		height: 400px;
	}
	
	#statistics-content {
		height: auto !important;
		min-height: 600px;
	}
	
	.chart-wrapper {
		margin-bottom: 2rem;
	}
}

#uploadStatus {
	font-size: 0.9rem;
	min-height: 24px;
  margin-top: 1rem;
}

#alert-container {
	font-size: 0.9rem;
	z-index: 1080;
}

.spinner-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}

.spinner-content {
	text-align: center;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	min-width: 300px;
}

.spinner-border {
	width: 3rem;
	height: 3rem;
}

#alert-container .alert {
	width: 100%;
	margin: 0 auto;
}

@media (min-width: 480.98px) and (max-width: 551.98px) {
	#alert-container {
		max-width: 85%;
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-width: 551.98px) {
	#alert-container {
		width: 90%;
		left: 50%;
		transform: translateX(-50%);
	}
}

/* AI suggestions and chat */
#ai-content {
  height: auto;
  overflow-y: auto;
	overflow-x: hidden;
}

#aiSuggestionsContainer {
  overflow-y: visible;
  max-height: none;
}

#aiSuggestionsContainer .card {
  height: auto;
  overflow: visible;
}

#chatbox {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 5px;
  border: 1px solid #dee2e6;
  padding: 10px;
}

#chatbox .user-container {
  text-align: right;
  width: 100%;
}

#chatbox .ai-container {
  text-align: left;
  width: 100%;
}

.chat-message-user {
  background-color: #e5e5e5;
  border-radius: 16px;
  padding: 8px 16px;
  margin: 8px 0 8px auto;
  display: inline-block;
  max-width: 80%;
  text-align: center;
}

.chat-message-ai {

}