/* ----------------------------------------------------------------

	Custom CSS



	Add all your Custom Styled CSS here for New Styles or

	Overwriting Default Theme Styles for Better Handling Updates

-----------------------------------------------------------------*/

.card:hover {
	color: black;
	cursor: pointer;
}


.btn-ai-ask {
	background: radial-gradient(circle at center, #6a11cb, #2575fc);
	/* Bold AI-ish gradient */
	color: #fff !important;
	font-weight: 700;
	padding: 0.5rem 1.2rem;
	border: none;
	text-transform: uppercase;
	box-shadow: 0 0 10px rgba(37, 117, 252, 0.6);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-right: 20px;
}

.btn-ai-ask:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(37, 117, 252, 1);
}

/* Make sure the link has no default underline */
.ai-block {
	text-decoration: none;
	margin-top: 50px;
}

/* Card styling for the Ask Wess block */
.ai-block-card {
	background-image: url("../external-media-content/ask-wess-home.jpg");
	background-size: cover;
	background-position: center;
	position: relative;
	min-height: 400px;
	/* Set this to the desired full image height */

	transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Overlay for the text, only behind the text, centered vertically and horizontally */
.overlay-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.3);
	/* Transparent grey background */
	padding: 20px;
	border-radius: 10px;
	text-align: center;

	@media (max-width: 576px) {
		width: 90%;
		max-width: 100%;
		/* Or whatever fits best on mobile */
	}
}

/* Hover effect: scale up and glow */
.ai-block-card:hover {
	transform: scale(1.02);
	box-shadow: 0 0 30px rgba(37, 117, 252, 0.8);
}

/* Icon styling */
.ai-icon i {
	font-size: 3rem;
	/* Increase size as needed */
	color: #fff !important;
}

/* Title styling */
.ai-title {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 10px;
	color: #fff !important;
}

/* Subtitle styling */
.ai-subtitle {
	font-size: 1.25rem;
	margin: 0;
	color: #fff !important;
}

@media (max-width: 768px) {

	/* Hide the table header */
	#request-table thead {
		display: none;
	}

	/* Make table elements display as blocks */
	#request-table,
	#request-table tbody,
	#request-table tr,
	#request-table td {
		display: block;
		width: 100%;
	}

	/* Style each table row like a card */
	#request-table tr {
		margin-bottom: 1rem;
		border: 1px solid #ddd;
		border-radius: 5px;
		background: #fff;
		overflow: hidden;
	}

	/* Convert each cell into a flex container so that the label and value sit side by side */
	#request-table td {
		display: flex;
		align-items: center;
		padding: 8px 10px;
		border-bottom: 1px solid #eee;
	}

	/* Remove the bottom border from the last cell */
	#request-table td:last-child {
		border-bottom: none;
	}

	/* Use the ::before pseudo-element as a label, giving it a fixed width */
	#request-table td::before {
		flex: 0 0 40%;
		/* fixed 40% width for the label */
		font-weight: bold;
		padding-right: 10px;
	}

	/* Set the label text for each column using nth-child selectors */
	#request-table td:nth-child(1)::before {
		content: "Service:";
	}

	#request-table td:nth-child(2)::before {
		content: "Description:";
	}

	#request-table td:nth-child(3)::before {
		content: "City:";
	}

	#request-table td:nth-child(4)::before {
		content: "District:";
	}

	#request-table td:nth-child(5)::before {
		content: "Request Date:";
	}

	#request-table td:nth-child(6)::before {
		content: "Fulfilled:";
	}

	#request-table td:nth-child(7)::before {
		content: "Actions:";
	}

	/* Enlarge and restyle the edit and delete buttons */
	#request-table .edit-button,
	#request-table .delete-button {
		font-size: 1.2rem;
		padding: 0.5rem 0.75rem;
		margin-left: 5px;
	}
}

.powered-by {
	display: block;
	width: fit-content;
	/* or a fixed width */
	margin: 5px auto;
	font-size: 0.85rem;
	color: #444;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background-color 0.3s ease, color 0.3s ease;


}

.powered-by:hover {
	background-color: rgba(37, 117, 252, 0.1);
	color: #2575fc;
}

.powered-by .abbu-logo {
	width: 55px;
	height: auto;
	margin-left: 5px;
	margin-bottom: 5px;
}

/* Separator line: full width with a bold gradient */
.profile-separator {
	border: 0;
	height: 2px;
	background: linear-gradient(90deg, #2575fc, #6a11cb, #2575fc);
	margin: 20px 0;
}

/* Chat Messages Remaining text: bold gradient text */
.chat-remaining {
	font-size: 1.15rem;
	/* Adjust font size as needed */
	font-weight: 800;
	background: linear-gradient(90deg, #2575fc, #6a11cb, #2575fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-align: center;
	margin: 0;
}


@media (max-width: 768px) {
	.chat-remaining {
		margin-top: 0px;
		font-size: 1.15rem;
	}

	.profile-separator {
		margin: 10px 0;
	}
}

.export-chat-container {
	margin-top: 20px;
}

.export-chat-btn {

	border: none;
	color: #fff;
	font-size: 1rem;
	padding: 10px 20px;
	border-radius: 5px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.export-chat-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 8px rgba(37, 117, 252, 0.5);
}

.gradient-icon {
	background: linear-gradient(90deg, #2575fc, #6a11cb, #2575fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.no-pointer {
	cursor: default !important;
}

/* 1) Ensure the input + button share the same height */
.map-picker-wrapper .map-picker-input,
.map-picker-wrapper .btn-map-picker-inline {
  height: calc(2.25rem + 2px);  /* matches Bootstrap default form-control height */
}

/* 2) Make wrapper look like a single control */
.map-picker-wrapper {
  cursor: pointer;
}

/* 3) Prevent the text input from stealing clicks */
.map-picker-wrapper .map-picker-input {
  pointer-events: none;
}

/* 4) Style the inline button to feel part of the control */
.btn-map-picker-inline {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  min-width: 60px;              /* make it a bit wider */
  background-color: #4285f4;    /* solid Google-blue */
  border: 1px solid #4285f4;
  color: #fff;
  transition: background-color .2s ease;
}

.btn-map-picker-inline:hover,
.btn-map-picker-inline:focus {
  background-color: #3367d6;    /* darker on hover */
  border-color: #3367d6;
}

.map-picker-input {
	padding-left: 7px;
  }


body {
  font-family: 'Inter', sans-serif;
}

/* 2) Override only when html[lang="ar"] */
html[lang="ar"] body {
  font-family: 'Tajawal', sans-serif !important;
}


h1[dir="rtl"].mt-2.text-center {
    padding-top: 2px;       
}

html[lang="ar"] h5 {
  font-family: 'Tajawal', sans-serif !important;
}

html[lang="ar"] {
  font-family: 'Tajawal', sans-serif !important;
}

@media (max-width: 768px) {

	/* Adjust padding on pseudo-label */
	html[lang="ar"] #request-table td::before {
	  padding-right: 0;
	  padding-left: 10px;
	}
	/* Arabic labels */
	html[lang="ar"] #request-table td:nth-child(1)::before {
	  content: "الخدمة:";
	}
	html[lang="ar"] #request-table td:nth-child(2)::before {
	  content: "الوصف:";
	}
	html[lang="ar"] #request-table td:nth-child(3)::before {
	  content: "المدينة:";
	}
	html[lang="ar"] #request-table td:nth-child(4)::before {
	  content: "المنطقة:";
	}
	html[lang="ar"] #request-table td:nth-child(5)::before {
	  content: "تاريخ الطلب:";
	}
	html[lang="ar"] #request-table td:nth-child(6)::before {
	  content: "تم الإنجاز:";
	}
	html[lang="ar"] #request-table td:nth-child(7)::before {
	  content: "الإجراءات:";
	}
  }