/* Custom CSS for HCDE Plugin */

/* Email Form Popup */
.hcde-custom-email-popup {
	width: 100%;
	max-width: 600px;
	border-radius: 8px;
	padding: 2rem;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	scrollbar-width: thin;
	z-index: 20;
}
@media (max-width: 768px) {
	:root {
		--header-height: 80px;
	}
}
.hcde-custom-email-popup-overlay {
	position: fixed;
	top: var(--header-height, 134px); /* You can override this value via media queries */
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 19;
	box-sizing: border-box;
	overflow-y: auto;
	height: calc(100vh - var(--header-height, 134px)); /* Fill remaining height under header */
	width: 100%;
}
.hcde-custom-email-popup-overlay.hidden {
	display: none;
}
.hcde-custom-email-popup.hidden {
	display: none;
}
.hidden {
	display: none !important;
}
.hcde-custom-email-popup-content {
	background: #fff;
	padding: clamp(1rem, 3vw, 2rem);
	width: clamp(300px, 90vw, 600px); /* Responsive width using clamp */
	border-radius: 12px;
	position: relative;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	max-height: calc(100vh - clamp(10rem, 20vh, 15rem)); /* Prevent from overflowing view */
	overflow-y: auto;
	box-sizing: border-box;
	color: black !important;
	text-align: start !important;
}
.hcde-custom-input::placeholder {
    color: rgb(85, 85, 85) !important;
    opacity: 1 !important;
}

/* Also include vendor prefixes for maximum compatibility */
.hcde-custom-input::-webkit-input-placeholder {
    color: rgb(85, 85, 85) !important;
    opacity: 1 !important;
}

.hcde-custom-input::-moz-placeholder {
    color: rgb(85, 85, 85) !important;
    opacity: 1 !important;
}

.hcde-custom-input:-ms-input-placeholder {
    color: rgb(85, 85, 85) !important;
    opacity: 1 !important;
}
.hcde-custom-close-btn {
	position: absolute;
	top: 10px; right: 15px;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	cursor: pointer;
}
.hcde-custom-email-popup-content h2 {
	margin-top: 0;
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	color: black;
}
.hcde-custom-email-popup-content input {
	width: 100%;
	padding: 0.75rem;
	margin: 8px 0 16px;
	font-size: clamp(1rem, 2vw, 1.1rem);
	border: 1px solid #ccc;
	border-radius: 8px;
	background-color: rgba(0, 0, 0, 0.04) !important;
    color: rgb(85, 85, 85) !important;
	text-align: start !important;
}
.hcde-custom-editable-message {
	border: 1px solid #ccc;
	padding: 10px;
	min-height: 120px;
	font-size: clamp(1rem, 2vw, 1.1rem);
	border-radius: 8px;
	margin-bottom: 20px;
}
.hcde-custom-editable-message:empty:before {
	content: attr(data-placeholder);
	color: #888;
	pointer-events: none;
}
.hcde-custom-toolbar {
	margin-bottom: 10px;
}
.hcde-custom-toolbar button {
	margin-right: 8px;
	font-size: clamp(0.9rem, 2vw, 1rem);
	cursor: pointer;
}
.hcde-custom-form-actions {
	display: flex;
	justify-content: space-between;
}
.hcde-custom-form-actions button {
	padding: 10px 16px;
	font-size: clamp(1rem, 2vw, 1.1rem);
	cursor: pointer;
	border: none;
	border-radius: 8px;
}
.hcde-custom-form-actions .hcde-custom-cancel-btn {
	background-color: #ccc;
}
.hcde-custom-form-actions button:not(.hcde-custom-cancel-btn) {
	background-color: #0073aa;
	color: white;
}

/* Visually hidden but accessible */
.hcde-custom-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* Main Search Wrapper */
.hcde-employee-search-wrapper {
	width: 100%;
	max-width: 100%;
}

/* Search Input */
.hcde-employee-search-input {
	width: 100%;
	padding: clamp(0.5rem, 1.5vw, 1rem);
	margin-bottom: 1rem;
	border-radius: 0.5rem;
	border: 1px solid #ccc;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Scrollable Results Container */
.hcde-custom-results-scroll-container {
	max-height: 60vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	padding-right: 4px;
}
.hcde-custom-results-scroll-container::-webkit-scrollbar {
	width: 6px;
}
.hcde-custom-results-scroll-container::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 3px;
}
.hcde-custom-results-scroll-container::-webkit-scrollbar-track {
	background: transparent;
}

/* Employee Card */
.hcde-custom-employee-card {
	display: flex;
	align-items: center;
	padding: clamp(0.5rem, 1vw, 1rem);
	border-bottom: 1px solid #ddd;
	height: clamp(3.5rem, 10vw, 8rem);
	position: relative;
	border-radius: 0.5rem;
	margin-left: 10px;
	margin-top:5px;
	box-shadow:
		-4px 2px 12px -2px rgba(0, 174, 239, 0.5),   /* Stronger left-side shadow */
		-2px 4px 12px -2px rgba(0, 139, 204, 0.2),
		-1px 2px 6px -2px rgba(43, 123, 187, 0.15);
	transition: box-shadow 0.3s ease;
}

/* Email Icon Container */
.hcde-custom-icon-container {
	background: none;
	border: none;
	margin-right: clamp(0.75rem, 1.5vw, 1.25rem);
	height: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding:0;
	transition: background-color 0.3s ease, border 0.3s ease;
}
/* Hover effect only on the icon button */
.hcde-custom-icon-container:hover {
	background-color: #CEE6F1;
	border: 1px solid #034C95;
}
.hcde-custom-email-icon {
	height: 100%!important;
}

/* Info Container */
.hcde-custom-employee-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
}
.hcde-custom-employee-name {
	font-weight: bold;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	line-height: 1.2;
}
.hcde-custom-employee-job {
	font-size: clamp(0.9rem, 2vw, 1rem);
	color: #444;
	line-height: 1.2;
}
.hcde-custom-employee-location {
	font-size: clamp(0.85rem, 1.8vw, 0.95rem);
	color: #777;
	line-height: 1.2;
}

/* Optional Location Hiding */
.hide-location .hcde-custom-employee-location {
	display: none !important;
}
.hide-location .hcde-custom-employee-info {
	justify-content: center;
}
.hcde-error-message {
	color: #d00;
	font-size: 0.875rem;
	margin-top: 4px;
	display: block;
  }
