@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Ubuntu:wght@300;400;500;700&display=swap');

/* ==========================================================================
   CSS VARIABLES & CORE THEME (ORTHOPEDICUPDATE DESIGN CONCEPT APPLIED)
   ========================================================================== */
:root {
	--root-color: #287bff;
	--blue: #287bff;
	--blue-dark: #0e63cc;
	--blue-light: #438cff;
	--blue-subtle: rgba(40, 123, 255, 0.08);
	--blue-glow: rgba(40, 123, 255, 0.25);
	--white: #ffffff;
	--gray: #f8fafc;
	--gray-100: #f1f5f9;
	--gray-200: #e2e8f0;
	--blak1: #1e293b;
	--black2: #64748b;
	--text-muted: #94a3b8;
	--border-light: #edf2f7;
	--card-shadow: 0 4px 20px -2px rgba(40, 123, 255, 0.07), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
	--card-shadow-hover: 0 14px 28px -4px rgba(40, 123, 255, 0.18), 0 6px 12px -2px rgba(0, 0, 0, 0.06);
	--radius-lg: 16px;
	--radius-md: 10px;
	--radius-sm: 6px;
	--transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: 'Ubuntu', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
	background: var(--gray);
	color: var(--blak1);
}

a {
	color: var(--blue);
	transition: var(--transition);
}

a:hover {
	text-decoration: none;
	color: var(--blue-dark);
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.logincontainer {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
	background: linear-gradient(135deg, #C7C5F4 0%, #776BCC 100%);
}

.screen {		
	background: linear-gradient(135deg, #5D54A4 0%, #7C78B8 100%);		
	position: relative;	
	height: 600px;
	width: 360px;
	max-width: 100%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(92, 86, 150, 0.45);
	transition: var(--transition);
}

.screen__content {
	z-index: 1;
	position: relative;	
	height: 100%;
}

.screen__background {		
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	-webkit-clip-path: inset(0 0 0 0);
	clip-path: inset(0 0 0 0);	
}

.screen__background__shape {
	transform: rotate(45deg);
	position: absolute;
}

.screen__background__shape1 {
	height: 520px;
	width: 520px;
	background: #FFF;	
	top: -50px;
	right: 120px;	
	border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
	height: 220px;
	width: 220px;
	background: #6C63AC;	
	top: -172px;
	right: 0;	
	border-radius: 32px;
}

.screen__background__shape3 {
	height: 540px;
	width: 190px;
	background: linear-gradient(270deg, #5D54A4, #6A679E);
	top: -24px;
	right: 0;	
	border-radius: 32px;
}

.screen__background__shape4 {
	height: 400px;
	width: 200px;
	background: #7E7BB9;	
	top: 420px;
	right: 50px;	
	border-radius: 60px;
}

.login {
	width: 320px;
	max-width: 100%;
	padding: 30px;
	padding-top: 130px;
}

.login__field {
	padding: 16px 0px;	
	position: relative;	
}

.login__icon {
	position: absolute;
	top: 26px;
	left: 0;
	color: #7875B5;
	font-size: 16px;
}

.login__input {
	border: none;
	border-bottom: 2px solid #D1D1D4;
	background: none;
	padding: 10px 10px 10px 28px;
	font-weight: 600;
	width: 100%;
	font-size: 15px;
	color: #333;
	transition: var(--transition);
}

.login__input:active,
.login__input:focus,
.login__input:hover {
	outline: none;
	border-bottom-color: #6A679E;
}

.login__submit {
	background: #fff;
	font-size: 14px;
	margin-top: 28px;
	padding: 14px 20px;
	border-radius: 26px;
	border: 1px solid #D4D3E8;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	width: 100%;
	color: #4C489D;
	box-shadow: 0px 4px 12px rgba(92, 86, 150, 0.35);
	cursor: pointer;
	transition: var(--transition);
}

.login__submit:hover,
.login__submit:focus {
	border-color: #6A679E;
	outline: none;
	transform: translateY(-2px);
	box-shadow: 0px 6px 16px rgba(92, 86, 150, 0.45);
}

.button__icon {
	font-size: 20px;
	margin-left: auto;
	color: #7875B5;
}

.social-login {	
	position: absolute;
	height: 140px;
	width: 160px;
	text-align: center;
	bottom: 0px;
	right: 0px;
	color: #fff;
}

/* ==========================================================================
   APP SHELL & MAIN CONTAINER
   ========================================================================== */
.maincontainer {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background: var(--gray);
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 1040;
	animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.navigation {
	position: fixed;
	width: 300px;
	height: 100%;
	background: var(--blue);
	border-left: 10px solid var(--blue);
	transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-x: hidden;
	overflow-y: auto;
	z-index: 1050;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.navigation.active {
	width: 80px;
}

.navigation ul {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0;
	margin: 0;
}

.navigation ul li {
	position: relative;
	width: 100%;
	list-style: none;
	border-top-left-radius: 30px;
	border-bottom-left-radius: 30px;
	transition: background 0.2s ease;
}

.navigation ul li:hover,
.navigation ul li.hovered {
	background: var(--white);
}

.navigation ul li:nth-child(1) {
	margin-bottom: 25px;
	pointer-events: none;
}

.navigation ul li a {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--white);
	transition: color 0.2s ease;
}

.navigation ul li:hover a,
.navigation ul li.hovered a,
.navigation ul li a.router-link-exact-active {
	color: var(--blue);
}

.navigation ul li:has(a.router-link-exact-active) {
	background: var(--white);
}

.navigation ul li:has(a.router-link-exact-active) a {
	color: var(--blue);
}

.navigation ul li a .icon {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 60px;
	height: 60px;
	text-align: center;
}

.navigation ul li a .icon ion-icon {
	font-size: 1.6em;
}

.navigation ul li a .title {
	position: relative;
	display: block;
	padding: 0 12px;
	height: 60px;
	line-height: 60px;
	text-align: start;
	white-space: nowrap;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.3px;
}

/* Inverted curves on hover/active */
.navigation ul li:hover a::before,
.navigation ul li.hovered a::before,
.navigation ul li:has(a.router-link-exact-active) a::before {
	content: '';
	position: absolute;
	right: 0;
	top: -50px;
	width: 50px;
	height: 50px;
	background: transparent;
	border-radius: 50%;
	box-shadow: 35px 35px 0 10px var(--white);
	pointer-events: none;
}

.navigation ul li:hover a::after,
.navigation ul li.hovered a::after,
.navigation ul li:has(a.router-link-exact-active) a::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -50px;
	width: 50px;
	height: 50px;
	background: transparent;
	border-radius: 50%;
	box-shadow: 35px -35px 0 10px var(--white);
	pointer-events: none;
}

/* User Logo in Sidebar */
.userlogo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	padding-top: 24px;
	padding-bottom: 10px;
	text-align: center;
}

.userlogo img.smallimage {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	margin-bottom: 12px;
	border: 3px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	object-fit: cover;
	transition: var(--transition);
}

.navigation.active .userlogo img.smallimage {
	width: 50px;
	height: 50px;
	border-width: 2px;
}

.userlogo h5.ownername {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 4px;
	letter-spacing: 0.3px;
}

.userlogo h5.ownerdesignation {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 400;
	text-transform: capitalize;
}

.ownername.hide,
.ownerdesignation.hide {
	display: none;
}

/* ==========================================================================
   MAIN CONTENT AREA & TOPBAR (ORTHOPEDICUPDATE CONCEPT)
   ========================================================================== */
.main {
	position: absolute;
	width: calc(100% - 300px);
	left: 300px;
	min-height: 100vh;
	background: var(--gray);
	transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding-bottom: 40px;
}

.main.active {
	width: calc(100% - 80px);
	left: 80px;
}

.topbar {
	width: 100%;
	min-height: 64px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 24px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-light);
	position: sticky;
	top: 0;
	z-index: 100;
}

.menutoggle {
	position: relative;
	width: 44px;
	height: 44px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.8em;
	cursor: pointer;
	border-radius: var(--radius-sm);
	color: var(--blak1);
	transition: var(--transition);
}

.menutoggle:hover {
	background: var(--blue-subtle);
	color: var(--blue);
}

/* ==========================================================================
   MODERN TOPBAR & TOPNAV-LIST (DIRECT FROM ORTHOPEDICUPDATE)
   ========================================================================== */
.modern-topbar {
	position: sticky;
	top: 0;
	z-index: 900;
	background: transparent;
	flex: 1;
	margin: 0 16px;
}

.modern-topbar .topnav-list {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 14px;
	list-style: none;
	overflow: visible;
	white-space: nowrap;
}

.modern-topbar li {
	position: relative;
}

.modern-topbar a,
.modern-topbar .parent-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: #1f2937;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
	position: relative;
}

.modern-topbar a:hover,
.modern-topbar .parent-link:hover {
	background: rgba(148, 163, 184, 0.12);
	transform: translateY(-1px);
	color: #1f2937;
}

/* Active link highlight in root blue color */
.modern-topbar a.router-link-active,
.modern-topbar a.router-link-exact-active,
.topmenubar a.router-link-active,
.topmenubar a.router-link-exact-active,
.topmenubar ul li a.router-link-active,
.topmenubar ul li a.router-link-exact-active {
	background: var(--root-color);
	color: #ffffff !important;
	box-shadow: 0 8px 18px rgba(40, 123, 255, 0.45);
	border-bottom: none !important;
}

/* Caret & Dropdown support */
.dropdown-caret {
	font-size: 11px;
	margin-left: 4px;
	transition: transform 0.2s ease;
}

.modern-topbar .parent-link.router-link-active .dropdown-caret,
.modern-topbar .parent-link.router-link-exact-active .dropdown-caret {
	color: #ffffff;
}

.has-dropdown:hover .dropdown-caret {
	transform: rotate(180deg);
}

.modern-topbar .dropdown-menu {
	position: absolute;
	top: 85%;
	left: 0;
	margin-top: 6px;
	min-width: 200px;
	padding: 8px 0;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
	border: 1px solid rgba(226, 232, 240, 0.9);
	display: none;
	z-index: 9999;
}

.modern-topbar .has-dropdown:hover > .dropdown-menu {
	display: block;
}

.modern-topbar .dropdown-menu li a {
	display: block;
	padding: 7px 14px;
	border-radius: 6px;
	margin: 1px 6px;
	font-size: 13px;
	color: #4b5563;
}

.modern-topbar .dropdown-menu li a:hover {
	background: rgba(40, 123, 255, 0.08);
	color: var(--root-color);
}

.modern-topbar .dropdown-menu li a.router-link-active,
.modern-topbar .dropdown-menu li a.router-link-exact-active {
	background: rgba(40, 123, 255, 0.12);
	color: var(--root-color) !important;
	box-shadow: none;
}

/* Notification Badges */
.notificationbox {
	position: relative;
}

.notification,
.notificationqc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2563eb;
	border-radius: 9999px;
	height: 18px;
	min-width: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	position: absolute;
	top: -6px;
	right: -6px;
	left: auto !important;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	animation: pulse 2s infinite;
}

.notificationqc {
	background: #f59e0b;
	box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.user {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	cursor: pointer;
}

.toggle-on {
	background: var(--blue) !important;
	border-color: var(--blue) !important;
}

/* ==========================================================================
   DASHBOARD CARDS
   ========================================================================== */
.cardBox {
	position: relative;
	width: 100%;
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 24px;
}

.cardBox a {
	text-decoration: none;
	display: block;
}

.cardBox a:hover {
	text-decoration: none;
}

.cardBox .card {
	position: relative;
	background: var(--white);
	padding: 26px 28px;
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	border: 1px solid rgba(40, 123, 255, 0.05);
	box-shadow: var(--card-shadow);
	transition: var(--transition);
}

.cardBox .card .numbers {
	position: relative;
	font-weight: 700;
	font-size: 2.3em;
	color: var(--blue);
	line-height: 1.1;
	transition: color 0.2s ease;
}

.cardBox .card .cardName {
	color: var(--black2);
	font-size: 1.05em;
	font-weight: 500;
	margin-top: 6px;
	letter-spacing: 0.2px;
	transition: color 0.2s ease;
}

.cardBox .card .iconBx {
	font-size: 3.2em;
	color: #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.cardBox .card:hover {
	background: var(--blue);
	transform: translateY(-5px);
	box-shadow: var(--card-shadow-hover);
}

.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
	color: var(--white);
}

/* Full Width Card Box */
.fullcardBox {
	position: relative;
	width: 100%;
	padding: 24px;
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 24px;
}

.fullcardBox .fullcard {
	width: 100%;
	position: relative;
	background: var(--white);
	padding: 30px;
	border-radius: var(--radius-lg);
	box-shadow: var(--card-shadow);
	border: 1px solid var(--border-light);
}

.cardHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.cardHeader h2 {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--blak1);
	margin: 0;
}

.btn {
	position: relative;
	padding: 8px 18px;
	background: var(--blue);
	text-decoration: none;
	color: var(--white);
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	border: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 12px var(--blue-glow);
	transition: var(--transition);
	cursor: pointer;
}

.btn:hover {
	background: var(--blue-dark);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px var(--blue-glow);
}

/* ==========================================================================
   TABLE CONTROLS, SEARCH, PAGINATION & ACTION BUTTONS (ORTHOPEDICUPDATE)
   ========================================================================== */
.table-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 15px;
}

.search-container {
	position: relative;
	flex: 1;
	max-width: 320px;
}

.search-container input {
	width: 100%;
	padding: 10px 14px 10px 38px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	background: #ffffff;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.search-container input:focus {
	border-color: #287bff;
	box-shadow: 0 0 0 3px rgba(40, 123, 255, 0.15);
}

.search-container i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	font-size: 14px;
}

.page-size {
	display: flex;
	align-items: center;
	gap: 8px;
}

.page-size select {
	padding: 6px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	background: #ffffff;
	margin-top: 0;
	width: auto;
}

.page-size span {
	color: #555;
	font-size: 14px;
}

/* Action Buttons from orthopedicupdate */
.action-buttons {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 5px;
}

.action-buttons button,
.action-buttons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
	font-size: 14px;
}

.edit-btn {
	background: #287bff !important;
	color: white !important;
}

.edit-btn:hover {
	background: #0e63cc !important;
	transform: scale(1.08);
}

.delete-btn {
	background: #ff3860 !important;
	color: white !important;
}

.delete-btn:hover {
	background: #e01a48 !important;
	transform: scale(1.08);
}

.view-btn {
	background: #23d160 !important;
	color: white !important;
}

.view-btn:hover {
	background: #1ca64c !important;
	transform: scale(1.08);
}

/* Pagination from orthopedicupdate */
.pagination-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	flex-wrap: wrap;
	gap: 15px;
}

.pagination-info {
	color: #666;
	font-size: 14px;
}

.pagination-controls {
	display: flex;
	gap: 5px;
}

.pagination-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #e0e0e0;
	background: #fff;
	color: #333;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
	background: #287bff;
	color: #fff;
	border-color: #287bff;
}

.pagination-btn.active {
	background: #287bff;
	color: #fff;
	border-color: #287bff;
	font-weight: 700;
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ==========================================================================
   DETAILS & DATA TABLES
   ========================================================================== */
.details {
	position: relative;
	width: 100%;
	padding: 24px;
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 24px;
}

.details .recentOrders,
.recentOrders {
	position: relative;
	display: block;
	min-height: 220px;
	background: var(--white);
	padding: 24px;
	border-radius: var(--radius-lg);
	box-shadow: var(--card-shadow);
	border: 1px solid var(--border-light);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.details table,
.patient-table,
.unit-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 14px;
	min-width: 680px;
}

.details table thead td,
.details table thead th,
.patient-table thead th {
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--black2);
	background: var(--gray-100);
	padding: 12px 14px;
	border-bottom: 1px solid var(--border-light);
}

.details table thead tr th:first-child,
.details table thead tr td:first-child {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}

.details table thead tr th:last-child,
.details table thead tr td:last-child {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

.details .recentOrders table tbody tr,
.patient-table tbody tr {
	transition: background 0.15s ease;
}

.details .recentOrders table tbody tr:hover,
.patient-table tbody tr:hover {
	background: rgba(40, 123, 255, 0.04);
}

.details .recentOrders table tr td,
.patient-table tbody td {
	padding: 12px 14px;
	font-size: 14px;
	color: var(--blak1);
	border-bottom: 1px solid var(--border-light);
	vertical-align: middle;
}

.details .recentOrders table tr:last-child td {
	border-bottom: none;
}

/* Action Icons */
.details .recentOrders ion-icon {
	background: var(--gray-100) !important;
	padding: 8px !important;
	color: var(--blak1) !important;
	font-size: 16px !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	transition: var(--transition);
	cursor: pointer;
}

.details .recentOrders ion-icon:hover {
	background: var(--blue) !important;
	color: var(--white) !important;
	transform: scale(1.1);
}

.details .recentOrders .usernaem {
	position: relative;
	top: -2px;
	padding-left: 6px;
	font-size: 13px;
	font-weight: 500;
}

/* Status Pills */
.status.delivered {
	padding: 5px 12px;
	background: rgba(141, 224, 44, 0.15);
	color: #3b7c06;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

.status.pending {
	padding: 5px 12px;
	background: rgba(249, 202, 63, 0.2);
	color: #9c6c03;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

.status.return {
	padding: 5px 12px;
	background: rgba(239, 68, 68, 0.15);
	color: #b91c1c;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

.status.inprogress {
	padding: 5px 12px;
	background: rgba(23, 149, 206, 0.15);
	color: #0b6992;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
}

/* ==========================================================================
   FORM DESIGN & INPUTS (ORTHOPEDICUPDATE STYLE)
   ========================================================================== */
.form-row {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 15px;
	gap: 15px;
}

.form-group {
	flex: 1;
	min-width: 240px;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
	border-color: var(--blue);
	outline: none;
	box-shadow: 0 0 0 3px var(--blue-subtle);
}

.submit-button {
	border-radius: 7px;
	background: #287bff;
	padding: 12px 22px;
	border: none;
	color: white;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(40, 123, 255, 0.25);
	transition: all 0.2s ease;
}

.submit-button:hover {
	background: #0e63cc;
	transform: translateY(-1px);
}

.primary-btn {
	background-color: #005fcc;
	color: #fff;
}

.primary-btn:hover {
	background-color: #004bb5;
}

.cancel-btn {
	background-color: #999;
	color: #fff;
}

.cancel-btn:hover {
	background-color: #777;
}

/* Legacy Card Form Rows */
.halfcard {
	width: 50%;
	float: left;
	padding-right: 15px;
}

.fivecard {
	width: 16.666%;
	float: left;
	padding: 0 10px;
}

.fivecard .selectcol {
	position: relative;
	top: -35px;
}

.fullcard .halfcard .row100,
.fullcard .fivecard.row100,
.fullcard .row100 {
	position: relative;
	width: 100%;
}

.fullcard .row100 .col {
	position: relative;
	width: 100%;
	padding: 0 10px;
	margin: 24px 0 10px;
	transition: var(--transition);
}

.fullcard .row100 .inputBox {
	position: relative;
	width: 100%;
	height: 44px;
	color: #636e72;
}

.fullcard .row100 .inputBox input,
.fullcard .row100 .textarea textarea {
	position: absolute;
	width: 100%;
	height: 100%;
	background: transparent;
	box-shadow: none;
	border: none;
	outline: none;
	font-size: 16px;
	padding: 0 10px;
	z-index: 1;
	color: var(--blak1);
}

.fullcard .row100 .inputBox .text {
	position: absolute;
	top: 0;
	left: 0;
	line-height: 44px;
	font-size: 16px;
	padding: 0 10px;
	display: block;
	transition: 0.3s ease;
	pointer-events: none;
	color: var(--black2);
}

.fullcard .row100 .inputBox input:focus + .text,
.fullcard .row100 .inputBox input:valid + .text {
	top: -30px;
	left: -5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--blue);
}

.fullcard .row100 .inputBox .line {
	position: absolute;
	bottom: 0;
	display: block;
	width: 100%;
	height: 2px;
	background: var(--border-light);
	transition: 0.3s ease;
	border-radius: 2px;
	pointer-events: none;
}

.fullcard .row100 .inputBox input:focus ~ .line,
.fullcard .row100 .inputBox input:valid ~ .line {
	height: 2px;
	background: var(--blue);
}

.fullcard .row100 .textarea {
	position: relative;
	width: 100%;
	height: 100px;
	padding: 10px 0;
} 

.fullcard .row100 .inputBox textarea {
	height: 100%;
	resize: none;
}

.fullcard .row100 .inputBox textarea:focus + .text,
.fullcard .row100 .inputBox textarea:valid + .text {
	top: -30px;
	left: -5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--blue);
}

.fullcard .row100 .inputBox textarea:focus ~ .line,
.fullcard .row100 .inputBox textarea:valid ~ .line {
	height: 2px;
	background: var(--blue);
}

select {
	word-wrap: normal;
	width: 100%;
	padding: 10px 14px;
	margin-top: 8px;
	border: 1.5px solid var(--border-light);
	border-radius: var(--radius-sm);
	font-size: 14px;
	background: #ffffff;
	outline: none;
	transition: var(--transition);
}

select:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-subtle);
}

input[type="submit"] {
	border: none;
	padding: 10px 32px;
	cursor: pointer;
	outline: none;
	background: var(--blue);
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	border-radius: var(--radius-sm);
	box-shadow: 0 4px 12px var(--blue-glow);
	transition: var(--transition);
}

input[type="submit"]:hover {
	background: var(--blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px var(--blue-glow);
}

/* Progress Bars */
.timepreview {
	width: 100%;
	background: #ffffff;
	height: 12px;
	position: relative;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

.progressbargreen {
	background: #8de02c;
	height: 100%;
	position: absolute;
	left: 0;
}

.progressbarred {
	background: #ef4444;
	height: 100%;
	position: absolute;
	left: 0;
}

.progressbaryellow {
	background: #f9ca3f;
	height: 100%;
	position: absolute;
	left: 0;
}

.progressbarblue {
	background: #1795ce;
	height: 100%;
	position: absolute;
	left: 0;
}

/* Action Buttons & Utilities */
.actiontd {
	text-align: center !important;
}

.actionbutton {
	font-size: 16px;
	cursor: pointer;
	padding: 4px;
	transition: var(--transition);
}

.pencil { color: var(--blue); }
.close { color: #ef4444; }
.refresh { color: #f97316; }
.checkmark { color: #22c55e; }

/* Status Option Widget */
.statusoption {
	width: 250px;
}

.statusoption p {
	line-height: 15px;
	color: #fff;
	font-size: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET TWEAKS FROM ORTHOPEDICUPDATE)
   ========================================================================== */

/* Medium Devices (Tablets & Small Laptops, <= 1199px) */
@media (max-width: 1199px) {
	.cardBox {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 18px;
		padding: 20px;
	}
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
	.navigation {
		position: fixed;
		left: -310px;
		width: 280px;
		height: 100vh;
		z-index: 1050;
		border-left: none;
		box-shadow: 8px 0 24px rgba(0, 0, 0, 0.2);
	}

	.navigation.mobile-open {
		left: 0 !important;
	}

	.main {
		width: 100% !important;
		left: 0 !important;
		margin-left: 0 !important;
	}

	.main.active {
		width: 100% !important;
		left: 0 !important;
	}

	.topbar {
		padding: 8px 16px;
	}

	.modern-topbar {
		margin: 0 10px;
	}

	.modern-topbar a,
	.modern-topbar .parent-link {
		padding: 7px 12px;
		font-size: 12px;
	}

	.cardBox {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 16px;
		padding: 16px;
	}

	.halfcard {
		width: 100% !important;
		float: none !important;
		padding-right: 0 !important;
		margin-bottom: 20px;
	}

	.fivecard {
		width: 100% !important;
		float: none !important;
		padding: 0 !important;
		margin-bottom: 20px;
	}

	.fivecard .selectcol {
		top: 0 !important;
	}
}

/* Phones (<= 768px) */
@media (max-width: 768px) {
	.topbar {
		padding: 6px 12px;
		min-height: 56px;
	}

	.modern-topbar {
		max-width: calc(100vw - 120px);
	}

	.modern-topbar .topnav-list {
		padding: 6px 8px;
		gap: 4px;
		overflow-x: auto;
		white-space: nowrap;
	}

	.modern-topbar a,
	.modern-topbar .parent-link {
		padding: 7px 10px;
		font-size: 12px;
	}

	.modern-topbar .dropdown-menu {
		left: 0;
		right: auto;
		min-width: 180px;
	}

	.modern-topbar .topnav-list::-webkit-scrollbar {
		height: 4px;
	}
	.modern-topbar .topnav-list::-webkit-scrollbar-thumb {
		background: rgba(148, 163, 184, 0.7);
		border-radius: 999px;
	}

	.table-controls {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.search-container {
		max-width: 100%;
		width: 100%;
	}
	
	.pagination-container {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.action-buttons {
		flex-direction: row;
		gap: 6px;
	}

	.form-row {
		flex-direction: column;
	}

	.cardBox {
		grid-template-columns: 1fr;
		grid-gap: 12px;
		padding: 12px;
	}

	.cardBox .card {
		padding: 20px;
		border-radius: var(--radius-md);
	}

	.cardBox .card .numbers {
		font-size: 1.9em;
	}

	.cardBox .card .cardName {
		font-size: 0.95em;
	}

	.cardBox .card .iconBx {
		font-size: 2.6em;
	}

	.details {
		padding: 12px;
	}

	.details .recentOrders {
		padding: 16px;
		border-radius: var(--radius-md);
	}

	.cardHeader h2 {
		font-size: 1.25rem;
	}

	.fullcardBox {
		padding: 12px;
	}

	.fullcardBox .fullcard {
		padding: 18px;
		border-radius: var(--radius-md);
	}

	/* Responsive Login */
	.screen {
		width: 100% !important;
		max-width: 350px !important;
		height: auto !important;
		min-height: 520px !important;
		border-radius: 20px !important;
	}

	.login {
		width: 100% !important;
		padding: 24px 20px 80px 20px !important;
		padding-top: 110px !important;
	}
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
	.modern-topbar a,
	.modern-topbar .parent-link {
		padding: 6px 8px;
		font-size: 11px;
	}

	.logincontainer {
		padding: 12px;
	}

	.login__submit {
		padding: 12px 16px;
		font-size: 13px;
	}
}

/* ==========================================================================
   BEAUTIFUL CHAT WIDGET - MODERNIZED HEADER & PROFILE STYLING
   ========================================================================== */

/* Chat Window Container */
.sc-chat-window {
	width: 380px !important;
	max-height: 600px !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 40px -4px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.9) !important;
	overflow: hidden !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
	z-index: 9999 !important;
}

/* Chat Header ("Chat Bar Area") */
.sc-header {
	min-height: 62px !important;
	height: 62px !important;
	padding: 10px 16px !important;
	display: flex !important;
	align-items: center !important;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	color: #ffffff !important;
	border-top-left-radius: 16px !important;
	border-top-right-radius: 16px !important;
	box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25) !important;
	position: relative !important;
	box-sizing: border-box !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* User Profile Image in Header - Minimized & Beautiful */
.sc-header--img {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	padding: 0 !important;
	margin: 0 12px 0 0 !important;
	border: 2px solid rgba(255, 255, 255, 0.9) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
	background-color: #ffffff !important;
	flex-shrink: 0 !important;
	align-self: center !important;
	display: block !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.sc-header--img:hover {
	transform: scale(1.06) !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28) !important;
}

/* Chat Title in Header */
.sc-header--title {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: #ffffff !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: 1 1 auto !important;
	align-self: center !important;
	letter-spacing: 0.15px !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	user-select: none !important;
}

.sc-header--title.enabled:hover {
	opacity: 0.9 !important;
	box-shadow: none !important;
}

/* Close Button in Header */
.sc-header--close-button {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, 0.16) !important;
	border: none !important;
	margin: 0 0 0 10px !important;
	padding: 0 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.sc-header--close-button:hover {
	background: rgba(255, 255, 255, 0.3) !important;
	transform: scale(1.05) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.sc-header--close-button img {
	width: 14px !important;
	height: 14px !important;
	padding: 0 !important;
	filter: brightness(0) invert(1) !important;
}

/* User list inside chat if toggled */
.user-list .img-msg {
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 1px solid #e2e8f0 !important;
}

/* Chat Launcher Button (floating round button bottom-right) */
.sc-launcher {
	box-shadow: 0 8px 24px -2px rgba(37, 99, 235, 0.45) !important;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
	z-index: 9998 !important;
}

.sc-launcher:hover {
	transform: scale(1.08) !important;
	box-shadow: 0 12px 30px -2px rgba(37, 99, 235, 0.6) !important;
}

/* Message styling polish */
.sc-message-list {
	background-color: #f8fafc !important;
}

.sc-user-input {
	border-bottom-left-radius: 16px !important;
	border-bottom-right-radius: 16px !important;
	border-top: 1px solid #f1f5f9 !important;
	background-color: #ffffff !important;
}

.sc-user-input--text {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	font-size: 13.5px !important;
	color: #1e293b !important;
}

