/*
   Portal style
*/

/* Cursor utilities for CSP compliance */
.cursor-progress {
	cursor: progress !important;
}

:root {
	--color-brand-primary: #1f70f2;
	--color-brand-secondary: #F5F6FA;
	--color-button-primary-hover: #1958BB;
	--color-button-secondary-hover: #000000;
	--color-sidebar-active: #5a96f5;
	--color-sidebar-hover: #278eb1;
	--color-link-hover: #1C65DA33;
	--color-state-info: #1C65DA;
	--color-state-success: #028002;
	--color-state-error: #FF0000;
	--color-state-warning: #FF7E0D;
	--color-black-1: #1C1E1C;
	--color-black-2: #282828;
	--color-white: #FFFFFF;
	--color-gray-1: #6A6A6A;
	--color-gray-2: #C9C9C9;
	--color-gray-3: #D5D5D5;
	--color-gray-4: #E7E7E7;
	--color-gray-5: #F5F5F5;
}

/*===============================
 Message state classes
=================================*/
.message-success {
	text-align: center;
	margin-bottom: 15px;
	color: var(--color-state-success);
}

.message-error {
	text-align: center;
	margin-bottom: 15px;
	color: var(--color-state-error);
}

.message-warning {
	text-align: center;
	margin-bottom: 15px;
	color: var(--color-state-warning);
}

.message-info {
	text-align: center;
	margin-bottom: 15px;
	color: var(--color-state-info);
}

/*===============================
 theme v2
=================================*/
#headerNav {
	background-color: var(--color-brand-primary);
}


#sidebar .newMessageIcon {
    mask-image: url(../images/new_message_v2.svg);
    -webkit-mask-image: url(../images/new_message_v2.svg);
}

#sidebar .inboxIcon {
    mask-image: url(../images/inbox_v2.svg);
    -webkit-mask-image: url(../images/inbox_v2.svg);
}

#sidebar .inboxIcon.unread {
    background-image: url(../images/inbox_unread_v2.svg);
    background-color: transparent;
    mask-image: none;
    -webkit-mask-image: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20px;
}

#sidebar ul li.active > a .inboxIcon.unread {
    background-image: url(../images/inbox_unread_white.svg);
}

#sidebar .sentIcon {
    mask-image: url(../images/sent_v2.svg);
    -webkit-mask-image: url(../images/sent_v2.svg);
}

#sidebar .draftsIcon {
    mask-image: url(../images/drafts_v2.svg);
    -webkit-mask-image: url(../images/drafts_v2.svg);
}

#sidebar .subscriptionsIcon {
    background-image: url(../images/subscription.svg);
}


/*=========================================
	IE specific 
===========================================*/

.ie #sidebar .sidebarIcon {
	background-position: center center; 
}

.ie #sidebar .sideBarMenuLabel {
	vertical-align: top;
}


/*==================================
body and nav bar
===================================*/
html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--color-gray-4);
    overflow-x: hidden;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
	padding: 5px 15px;
    border: none;
    border-radius: 0;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
	background-color: var(--color-brand-cyan-dark);
	height:70px;
}
.navbar-nav {
	display: flex;
	align-items: left;
	gap: .75rem;
}

#headerNav a.dropdown-toggle {
	background-color: var(--color-brand-cyan-dark);
}

#headerNav .navbar-brand {
	background: url(../images/HLK_Logo_White.png) center center no-repeat;
	background-size: 200px 34px;
	height: 34px;
    width: 200px;
}

i,span {
    display: inline-block;
}

#headerMenu a.nav-link {
    color: var(--color-white);
}

.search-header {
	font-size: 2rem;
	font-weight: 600;
	color: var(--color-black-1);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-gray-4);  
 }

#body-row {
    margin-left:0;
    margin-right:0;
}

#content {
    max-width: 100%;
    overflow-x: hidden;
}

#listContainer {
    max-width: 100%;
    overflow-x: hidden;
}

.sticky-offset {
    top: 50px;
}

.progress {
	visibility: visible;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: var(--color-black-1);
	padding-right: 30px;
	position: relative;
	display: inline-block;
}

.progress::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-gray-3);
	border-top-color: var(--color-brand-primary);
	border-radius: 50%;
	animation: progress-spin 0.8s linear infinite;
}

@keyframes progress-spin {
	0% {
		transform: translateY(-50%) rotate(0deg);
	}
	100% {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* Loading Overlay */
.position-relative {
	position: relative;
}

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	backdrop-filter: blur(2px);
}

.loading-overlay-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 100;
}

.loading-content {
	text-align: center;
	background-color: var(--color-white);
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid var(--color-gray-3);
	border-top-color: var(--color-brand-primary);
	border-radius: 50%;
	animation: spinner-rotate 0.8s linear infinite;
	margin: 0 auto 15px;
}

.loading-text {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: var(--color-black-1);
	font-size: 14px;
	margin: 0;
}

@keyframes spinner-rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

#messageTablePagination .pagination-info {
	padding: 10px;
	text-align: right;
	color: var(--color-black-1);
}

/*====================
  referral view
======================
*/

#referralViewHeaderInfoTitle {
	color: var(--color-state-info);
    font-size: 1.0rem;
    font-weight: bold;
    padding: 0;
}

#referralViewHeaderInfo {
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.referralViewHeaderLabel {
	color: var(--color-black-2);
	font-weight: 600;
	padding-left: 0;
}
.referralViewHeaderValue {
	color: var(--color-black-1);
	padding-left: 0;
}

#referralViewContainer {
	display: none;
	width: 100%;
	height: calc(100vh - 50px);
	overflow: hidden;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 24px;
	margin-bottom: 20px;
	flex-direction: column;
}

#referralViewHeaderContainer {
	background: var(--color-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 24px;
	margin-bottom: 20px;
	flex-shrink: 0;
}

#referralViewContentContainer {
	background: var(--color-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: relative;
	flex: 1;
	overflow: hidden;
}

.iframeFull {
	width: 100%;
	height: 100%;
	position: absolute;
	border: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------
    SIDEBAR STYLE
.wrapper {
    display: flex;
    align-items: stretch;
}
----------------------------------------------------- */


#sidebar {
    min-width: 160px;
    max-width: 160px;
    background-color: var(--color-white);
    color: var(--color-black-1);
    transition: all 0.3s;
    min-height: calc(100vh - 50px);   
    padding: 0;
}

#sidebar .sideBarMenuLabel {
	display: inline-block;
	line-height: 24px;
}

#sidebar ul.components {
    padding: 10px 0 0 0;
   /* border-bottom: 1px solid #47748b;*/
}

#sidebar ul li a {
    padding: 10px;
	font-size:0.9em;
	display: flex;
	align-items: center;
	gap: 10px;
}

#sidebar ul li a:hover {
    color: var(--color-black-1);
    background: var(--color-gray-4);
}


#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: var(--color-white);
    background: var(--color-black-2);
}

#sidebar .sidebarIcon {
	background-color: currentColor;
	mask-repeat: no-repeat;
	mask-position: center center; 
	mask-size: 20px;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center center;
	-webkit-mask-size: 20px;
	height: 24px;
    width: 24px;
	flex-shrink: 0;
	position: relative;
	display: inline-block;
}
/*
#sidebar .newMessageIcon {
    background-image: url(../images/new_message.svg);
}

#sidebar .inboxIcon {
    background-image: url(../images/inbox.svg);
}

#sidebar .sentIcon {
    background-image: url(../images/sent.svg) ;
}

#sidebar .draftsIcon {
    background-image: url(../images/drafts.svg);
}
*/

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */


@media (max-width: 991.98px) {
   #headerMenu.navbar-collapse { 
		background: var(--color-brand-primary);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 10px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
		margin-top: 10px;
		max-height: 80vh; /* Instead of fixed 250px */
		overflow-y: auto;
		padding: 1rem;
		z-index: 1030;
	}
	
	/* Add spacing between menu items */
	#headerMenu .navbar-nav .nav-item {
		margin-bottom: 0.5rem;
	}
	
	/* Make menu items more touch-friendly */
	#headerMenu .navbar-nav .nav-link {
		padding: 0.75rem 1rem;
		border-radius: 6px;
		transition: background-color 0.2s ease;
	}
	
	#headerMenu .navbar-nav .nav-link:hover,
	#headerMenu .navbar-nav .nav-link:focus {
		background-color: var(--color-button-primary-hover);
	}
	
	/* Dropdown menu items hover */
	#headerMenu .dropdown-menu .dropdown-item:hover,
	#headerMenu .dropdown-menu .dropdown-item:focus {
		background-color: var(--color-button-primary-hover);
		color: var(--color-white);
	}
	
	/* Hide patient info on mobile (it takes up space) */
	#headerMenu .navbar-text {
		display: none;
	}
	
	/* Mobile menu divider */
	#headerMenu .mobile-menu-divider {
		height: 1px;
		background-color: rgba(255, 255, 255, 0.2);
		margin: 0.75rem 0;
	}
}

/*-------------------------------------------------------
	login page
--------------------------------------------------------*/
.login-bg {
	background: url('../images/login-bg.jpg') center center no-repeat;
	width: 100%;
	height: calc(100vh - 50px);
    background-size: 100%;
}

.login-form-container {
	background: var(--color-white);
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
	max-width: 450px;
	width: 100%;
}

@media (max-width: 575.98px) { 
    .login-bg {
        background-size: 300%;
    }
    .login-form-container {
        margin: 20px;
    }
}

/*-------------------------------------------------------
	Utility Classes
--------------------------------------------------------*/
/*.d-none {
	display: none;
}

/* Layout Utilities */
.text-align-right {
	text-align: right;
}

.text-align-centre {
	text-align: center;
}

.float-left {
	float: left;
}

.width-100 {
	width: 100%;
}

.height-100 {
	height: 100%;
}

/* Font Family Utilities */
.font-family-inter {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Text Decoration Utilities */
.text-decoration-underline {
	text-decoration: underline;
}

.text-decoration-none {
	text-decoration: none;
}

/* List Style Utilities */
.list-style-disc {
	list-style-type: disc;
}

.list-style-none {
	list-style-type: none;
}

/*-------------------------------------------------------
	Color & Typography Utilities
--------------------------------------------------------*/
.text-error {
	color: var(--color-state-error) !important;
}

.text-info {
	color: var(--color-state-info) !important;
}

.text-warning {
	color: var(--color-state-warning) !important;
}

#updateSettingsResult {
	text-align: center;
	margin-bottom: 15px;
	font-weight: 500;
}

#updateSettingsResult.settings-success {
	color: var(--color-state-info);
}

#updateSettingsResult.settings-error {
	color: var(--color-state-error);
}

.font-weight-bold {
	font-weight: bold;
}

.font-size-small {
	font-size: 0.8rem;
}

.font-size-medium {
	font-size: 1.0em;
}

.font-size-large {
	font-size: 1.1em;
}

/*-------------------------------------------------------
	Login & Auth Pages
--------------------------------------------------------*/
.login-message-error {
	color: var(--color-state-error) !important; 
}
.login-message-info {
	color: var(--color-state-info) !important;
}
.login-message-success {
	color: var(--color-state-success) !important;
}
.login-message-info {
	color: var(--color-state-info) !important;
}

.login-message-notice {
	color: var(--color-info-cyan);
}

.login-header-default {
	color: var(--color-black-1);
	font-weight: 600;
	font-size: 2rem;
	margin-bottom: 2rem;
    display: block;
	text-align: center;
}

.login-link {
	color: var(--color-state-info) !important;
	font-size: 0.875rem;
}

/*-------------------------------------------------------
	Unauthorized Access Page
--------------------------------------------------------*/
.unauthorized-container {
	height: 750px;
}

.unauthorized-padding {
	padding-left: 10px;
}

.unauthorized-header {
	background-color: var(--color-light-gray-bg);
	font-size: 1.0em;
	color: var(--color-muted-gray);
}

.unauthorized-header-padding {
	padding-top: 5px;
	padding-bottom: 2.5px;
}

.unauthorized-content {
	background-color: var(--color-white);
	padding-left: 5px;
	font-size: 0.9em;
}

.unauthorized-title {
	float: left;
	color: var(--color-brand-cyan);
	font-weight: bold;
}

.unauthorized-list {
	list-style-type: disc;
	padding-left: 40px;
}

.unauthorized-list-item {
	padding-top: 5px;
}

.unauthorized-link {
	text-decoration: underline;
	color: var(--color-primary-blue);
}

.unauthorized-footer-padding {
	padding-top: 2.5px;
	padding-bottom: 5px;
}

/*-------------------------------------------------------
	Content & iFrame
--------------------------------------------------------*/
#iframeContainer {
	display: none;
	width: 100%;
	height: calc(100vh - 50px);
	overflow: hidden;
	position: relative;
	min-width: 830px;
    min-height: 500px;
}

#formIframe {
	width: 100%;
	height: 100%;
	position: absolute;
	border: 0;
	top: 0;
	left: 0;
	padding: 50px 20px 20px 20px;
}


/*-------------------------------------------------------
	Forms & Validation
--------------------------------------------------------*/
.validation-error-hidden {
	display: none;
}

.db-config-error {
	color: var(--color-brand-orange);
}

.form-success-message {
	font-weight: bold;
}

/*-------------------------------------------------------
	Modals & Dialogs
--------------------------------------------------------*/
#messageTableSection {
	display: none;
}

.message-table-padding {
	padding-top: 10px;
}

.message-table-width {
	width: 100%;
}

.message-summary-textarea {
	width: 100%;
	height: 140px;
}

.status-update-textarea {
	width: 100%;
}

/*-------------------------------------------------------
	Patient Wizard
--------------------------------------------------------*/
#postalAddressDiv {
	display: none;
}

#validationErrDiv {
	display: none;
}

/*-------------------------------------------------------
	User Settings
--------------------------------------------------------*/
#userSettingsDiv {
	display: none;
}

/*-------------------------------------------------------
	Search Form
--------------------------------------------------------*/
#appTypeDiv {
	display: none;
}

/*-------------------------------------------------------
	Display List
--------------------------------------------------------*/
#displayList {
	padding: 20px;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	min-height: calc(100vh - 250px);
}

/*-------------------------------------------------------
	Misc
--------------------------------------------------------*/
.no-records-message {
	font-size: 1.1em;
}

.test-user-finder-width {
	width: 400px;
}

.forget-password-instruction {
    font-size: 0.9rem;
    color: var(--color-black-1);
    margin-bottom: 1.5rem;
}

/* Radio button alignment fix */
.form-check-inline {
	display: inline-flex;
	align-items: center;
}

.form-check-inline .form-check-input[type="radio"] {
	margin-top: 0;
	margin-bottom: 0;
}

.form-check-inline .form-check-label {
	margin-bottom: 0;
}