@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* RESET */
*,
*::before,
*::after {
	box-sizing: border-box;
}
* {
	margin: 0;
}
body {
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}
input,
button,
textarea,
select {
	font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}
#root,
#__next {
	isolation: isolate;
}
/* END RESET */

:root {
	/* Static Values */
	--br-md: 7px;
	--br-lg: 12px;
	--br-full: 100%;
	--b-width: 2px;
	--font-sans: "DM Sans", "Inter", sans-serif;
	--font-display: "Fraunces", Georgia, serif;
	--shadow-card: 0 0 0 1px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.10), 0 32px 64px rgba(0,0,0,0.08);
	--shadow-sm: 0 1px 4px rgba(0,0,0,0.08);

	/* Wellbox Colors */
	--wb-light-green: #70c055;
	--wb-blue: #1c8ccd;
	--wb-cyan: #0cb7ba;
	--wb-lg: #939597;

	/* Static Colors */
	--white: #fff;
	--black: #030712;
	--light-gray: #d1d5db;
	--success: #16a34a;
	--error: #f87171;

	/* Dynamic Colors */
	--bg: #f3f4f6;
	--foreground: #fff;
	--to-message-bg: #e5e7eb;
	--text: #1f2937;
	--text-light: #6b7280;
}

[data-theme="dark"] {
	--bg: #1f2937;
	--text: #f3f4f6;
	--text-light: #9ca3af;
	--to-message-bg: #374151;
}

body {
	font-family: var(--font-sans);
	font-size: 16px;
	background-color: var(--bg);
	color: var(--text);
	height: 100vh;
	width: 100%;
}

::-webkit-scrollbar {
	width: 5px;
}

::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px var(--foreground);
	border-radius: 2.5px;
}

::-webkit-scrollbar-thumb {
	background: var(--light-gray);
	border-radius: 2.5px;
}

/* BUTTONS */
button {
	border: none;
	outline: none;
	background-color: transparent;
	font-size: 1rem;
	font-weight: 600;
}

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

button:disabled,
button[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

button:disabled:hover,
button[disabled]:hover {
  background-color: inherit;
  color: inherit;
  cursor: not-allowed;
}

button:hover {
	cursor: pointer;
	opacity: 0.9;
}

/* icon buttons */

button.primary {
	background-color: var(--wb-blue);
	color: var(--white);
	padding: 0.5rem 1rem;
	border-radius: var(--br-md);
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	font-family: var(--font-sans);
	font-weight: 600;
}

button.primary:hover {
	opacity: 0.9;
}

button.primary:active {
	filter: brightness(0.9);
}

button.primary-outline {
	background-color: transparent;
	color: var(--wb-blue);
	padding: 0.5rem 1rem;
	border-radius: var(--br-md);
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
	border: 2px solid var(--wb-blue);
	width: 100%;
	font-family: var(--font-sans);
	font-weight: 600;
}

button.primary-outline:hover {
	color: var(--white);
	background-color: var(--wb-blue);
}

button.primary-outline:active {
	filter: brightness(0.9);
	transition: none;
}

button.hangup-outline {
	background-color: transparent;
	color: var(--error);
	padding: 0.5rem 1rem;
	border-radius: var(--br-md);
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
	border: 2px solid var(--error);
	/* width: 100%; */
	font-family: var(--font-sans);
	font-weight: 600;
}

button.hangup-outline:hover {
	color: var(--white);
	background-color: var(--error);
}

button.hangup-outline:active {
	filter: brightness(0.9);
	transition: none;
}

button.icon-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--br-md);
	color: var(--text);
	font-family: var(--font-sans);
}

button.icon-btn svg {
	width: 25px;
	height: 25px;
	min-width: 25px;
	min-height: 25px;
}

button.inline-icon-btn {
	width: 100%;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	border-radius: var(--br-md);
	color: var(--text);
	gap: 0.25rem;
	font-family: var(--font-sans);
}

button.icon-btn.primary {
	background-color: var(--wb-blue);
	color: var(--white);
	cursor: pointer;
}

button.icon-btn.primary:hover {
	filter: brightness(0.9);
	background-color: var(--wb-blue);
}

button.inline-icon-btn.primary:hover {
	filter: brightness(0.9);
	background-color: var(--wb-blue);
}

button.icon-btn:hover {
	background-color: var(--to-message-bg);
	cursor: pointer;
}

button.inline-icon-btn:hover {
	background-color: var(--to-message-bg);
	cursor: pointer;
}

button.icon-btn:active {
	filter: brightness(0.9);
}

button.inline-icon-btn:active {
	filter: brightness(0.9);
}

/* end icon buttons */

/* END BUTTONS */

/* INPUTS */

input[type="checkbox"].toggle {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 45px;
	height: 25px;
	display: inline-block;
	position: relative;
	border-radius: 20px;
	outline: none;
	border: none;
	cursor: pointer;
	background-color: var(--light-gray);
	transition: background-color ease 0.3s;
}

input[type="checkbox"].toggle:before {
	content: "";
	display: block;
	position: absolute;
	z-index: 2;
	width: 20px;
	height: 20px;
	background: #fff;
	left: 2px;
	top: 2.5px;
	bottom: 2.5px;
	border-radius: 50%;
	color: #fff;
	transition: all cubic-bezier(0.3, 1.5, 0.7, 1) 0.3s;
}

input[type="checkbox"].toggle:checked {
	background-color: var(--wb-blue);
}

input[type="checkbox"].toggle:checked:before {
	left: calc(100% - 2px - 20px);
}

/* END INPUTS */

/* LANDING PAGE */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300&display=swap");

#app .landing-page {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	font-family: "DM Sans", "Inter", sans-serif;
}

/* animated gradient mesh overlay - modern dark theme matching chat interface */
.lp-overlay {
	position: absolute;
	inset: 0;
	/* dark gradient background matching call-layout */
	background: radial-gradient(ellipse at center, #252545 0%, #1a1a2e 70%);
}

.lp-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 60% at 20% 30%, rgba(28, 140, 205, 0.15) 0%, transparent 60%),
		radial-gradient(ellipse 50% 50% at 80% 70%, rgba(12, 183, 186, 0.12) 0%, transparent 55%),
		radial-gradient(ellipse 70% 70% at 50% 50%, rgba(112, 192, 85, 0.08) 0%, transparent 70%);
	animation: lp-mesh-drift 15s ease-in-out infinite alternate;
}

@keyframes lp-mesh-drift {
	0%   { opacity: 0.8; transform: scale(1); }
	100% { opacity: 1; transform: scale(1.02); }
}

/* card - modern dark theme with glassmorphism */
.lp-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	background: rgba(30, 30, 56, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.3),
		0 8px 32px rgba(0, 0, 0, 0.4),
		0 0 80px rgba(28, 140, 205, 0.1);
	overflow: hidden;
	animation: lp-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lp-card-in {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* top accent bar with animated gradient */
.lp-card-accent {
	height: 4px;
	background: linear-gradient(90deg, var(--wb-blue) 0%, var(--wb-cyan) 50%, var(--wb-light-green) 100%);
	background-size: 200% 100%;
	animation: lp-accent-slide 4s linear infinite;
}

@keyframes lp-accent-slide {
	0%   { background-position: 0% 0%; }
	100% { background-position: 200% 0%; }
}

.lp-card-body {
	padding: 2rem 2rem 2.25rem;
}

/* header: logo + title */
.lp-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 1.25rem;
}

.lp-logo {
	height: 38px;
	width: auto;
	flex-shrink: 0;
	filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lp-logo-wordmark {
	height: 50px;
}

.lp-title-group {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.lp-title {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 400;
	color: #e0e0e0;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.lp-subtitle {
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--wb-cyan);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 0.15rem;
	width: auto;
	padding: 0;
}

.lp-divider {
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
	margin-bottom: 1.5rem;
}

/* form */
.lp-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lp-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.lp-field-label-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.lp-label {
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: #b0b0b0;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* info button */
.lp-info-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	color: #888;
	transition: color 0.15s;
}

.lp-info-btn svg {
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
}

.lp-info-btn:hover {
	color: var(--wb-blue);
	opacity: 1;
}

.lp-tooltip {
	visibility: hidden;
	opacity: 0;
	width: 210px;
	background-color: rgba(22, 22, 42, 0.95);
	color: #e0e0e0;
	text-align: left;
	border-radius: 8px;
	padding: 0.5rem 0.65rem;
	position: absolute;
	bottom: calc(100% + 6px);
	right: 0;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	z-index: 100;
	transition: opacity 0.2s;
	pointer-events: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	text-transform: none;
	letter-spacing: 0;
}

.lp-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 6px;
	border: 5px solid transparent;
	border-top-color: rgba(22, 22, 42, 0.95);
}

.lp-info-btn:hover .lp-tooltip {
	visibility: visible;
	opacity: 1;
}

/* text input - dark theme */
.lp-input {
	width: 100%;
	height: 2.75rem;
	padding: 0 0.875rem;
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 0.9rem;
	font-weight: 400;
	color: #e0e0e0;
	background: rgba(22, 22, 42, 0.6);
	border: 1.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.lp-input::placeholder {
	color: #666;
	font-weight: 400;
}

.lp-input:focus {
	border-color: var(--wb-blue);
	background: rgba(22, 22, 42, 0.8);
	box-shadow: 0 0 0 3px rgba(28, 140, 205, 0.2);
}

/* error */
.lp-error {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.3rem;
	color: var(--error);
	font-size: 0.78rem;
	font-weight: 500;
	width: auto;
	padding: 0;
	margin: 0;
}

.lp-error svg {
	width: 13px;
	height: 13px;
	min-width: 13px;
	flex-shrink: 0;
}

.lp-hint {
	font-size: 0.85rem;
	color: #b0b0b0;
	margin: 0 0 8px;
}

.lp-auth-btn {
	margin-top: 10px;
	width: 100%;
}

.lp-link-btn {
	background: none;
	border: none;
	padding: 4px 0;
	margin-top: 6px;
	cursor: pointer;
	text-decoration: underline;
	font-size: 0.85rem;
	color: #b0b0b0;
}

.lp-link-btn:hover {
	color: #f3f4f6;
}

.user-menu-btn {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 10001;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #f3f4f6;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-menu-btn:hover {
	background: rgba(255, 255, 255, 0.16);
}

.user-menu-btn svg {
	width: 20px;
	height: 20px;
}

.user-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10000;
}

.user-menu-panel {
	position: fixed;
	top: 64px;
	right: 16px;
	z-index: 10002;
	min-width: 230px;
	padding: 6px;
	border-radius: 10px;
	background: #1f2937;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.user-menu-email {
	color: #b0b0b0;
	font-size: 0.8rem;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 4px;
	word-break: break-all;
}

.user-menu-item {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	color: #f3f4f6;
	padding: 8px 10px;
	font-size: 0.9rem;
	font-family: inherit;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
}

.user-menu-item:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* select wrapper */
.lp-select-wrap {
	position: relative;
	display: block;
}

.lp-select {
	width: 100%;
	max-width: 100%;
	height: 2.75rem;
	padding: 0 2.25rem 0 0.875rem;
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 0.9rem;
	font-weight: 400;
	color: #e0e0e0;
	background: rgba(22, 22, 42, 0.6);
	border: 1.5px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
	margin: 0;
}

.lp-select:focus {
	border-color: var(--wb-blue);
	background: rgba(22, 22, 42, 0.8);
	box-shadow: 0 0 0 3px rgba(28, 140, 205, 0.2);
}

.lp-select-icon {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 15px;
	height: 15px;
	color: #888;
}

/* start button - modern dark theme */
.lp-start-btn {
	margin-top: 0.5rem;
	width: 100%;
	height: 2.875rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, var(--wb-blue) 0%, #0cb7ba 100%);
	color: var(--white);
	border: none;
	border-radius: 10px;
	font-family: "DM Sans", "Inter", sans-serif;
	font-size: 0.925rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(28, 140, 205, 0.3);
}

.lp-start-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
}

.lp-start-btn:hover::before {
	transform: translateX(100%);
}

.lp-start-btn:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(28, 140, 205, 0.4);
}

.lp-start-btn:active {
	filter: brightness(0.95);
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(28, 140, 205, 0.3);
}

.lp-start-btn:disabled {
	opacity: 0.4;
	pointer-events: none;
	transform: none;
	box-shadow: none;
	background: linear-gradient(135deg, #444 0%, #555 100%);
}

.lp-start-btn svg {
	width: 16px;
	height: 16px;
	min-width: 16px;
}

/* Keep legacy selectors intact so other parts of the app are unaffected */
.email-input, .dropdown {
	width: 50%;
	max-width: 300px;
	height: 3rem;
	padding: 10px;
	font-size: 16px;
	border: 2px solid var(--light-gray);
	border-radius: 5px;
	margin: 10px 0;
	background-color: var(--white);
	color: var(--text);
	transition: border-color 0.2s ease-in-out;
}

.email-input:focus, .dropdown:focus {
	outline: none;
	border-color: var(--wb-blue);
}

/* END LANDING PAGE */

/* HEADER */

div#app header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100vw;
	height: auto;
	position: fixed;
	top: 0;
	left: 0;
	padding: 1rem;
	background-color: var(--foreground);
	font-family: var(--font-sans);
	box-shadow: var(--shadow-sm);
	z-index: 1;
}

div#app header img {
	width: 175px;
	height: auto;
}

div#app header div#profilePicture {
	width: 40px;
	height: 40px;
	border-radius: var(--br-full);
	background-color: var(--bg);
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

div#app header div#profilePicture:hover {
	cursor: pointer;
	outline: 2px solid var(--wb-blue);
}

/* END HEADER */

/* SIDEBAR */

div#app aside {
	visibility: hidden;
	width: 0px;
	min-width: 0px;
	height: calc(100vh - 72px);
	background-color: var(--foreground);
	transition: all 0.5s ease-in-out;
	z-index: 100;
	overflow: hidden;
}

div#app aside img {
	width: 50%;
	height: auto;
}

div#app aside.visible {
	visibility: visible !important;
}

div#app aside.full {
	width: 100vw !important;
	min-width: 100vw !important;
}

div#app aside.sm {
	width: 300px !important;
	min-width: 300px !important;
}

div#app aside div.staticSidebarBody.full {
	width: 100vw !important;
	min-width: 100vw !important;
}

div#app aside div.staticSidebarBody.sm {
	width: 300px !important;
	min-width: 300px !important;
}

div#app aside div.staticSidebarBody {
	height: calc(100vh - 72px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	gap: 1rem;
	transition: all 0.5s ease-in-out;
	font-family: var(--font-sans);
}

div#app aside div.sidebarHeader {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	gap: 1rem;
}

div#app aside div.sidebarHeader div.row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

div#app aside div.conversation-history-container {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 2rem;
	padding: 0.5rem 0;
}

div#app aside div.conversation-history-container ul {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
}

div#app aside div.conversation-history-container ul p {
	color: var(--text-light);
	font-size: 1rem;
	width: 100%;
	text-align: left;
	font-weight: 600;
}

div#app aside div.conversation-history-container ul > li {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem;
	border-radius: var(--br-md);
}

div#app aside div.conversation-history-container ul > li svg {
	width: 25px;
	height: 25px;
	min-width: 25px;
	min-height: 25px;
}

div#app aside div.conversation-history-container ul > li span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

div#app aside div.conversation-history-container ul > li:hover {
	background-color: var(--to-message-bg);
	cursor: pointer;
}

div#app aside div.profileSection {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

div#app aside div.profileSection div.infoRow {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 0.5rem;
}

div#app aside div.profileSection div.infoRow div.imgContainer {
	width: 50px;
	height: 50px;
	border-radius: var(--br-full);
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

div#app aside div.profileSection div.infoRow h3 {
	color: var(--text);
	font-weight: 500;
	font-size: 1.2rem;
}

/* END SIDEBAR */

/* CONTROL CENTER */

div#app {
	height: 100vh;
	max-height: 100vh;
	overflow: hidden;
	width: 100%;
	padding-top: calc(1rem + 72px);
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
}

div.contentWrapper {
	position: relative;
	height: calc(100vh - 72px);
	max-height: calc(100vh - 72px);
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
}

div#app div.contentWrapper div.controlContainer {
	position: relative;
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-end;
	padding: 0.5rem;
	border-radius: var(--br-md);
	border: 2px solid var(--light-gray);
	transition: all 0.15s ease-in-out;
	gap: 1rem;
	background-color: var(--foreground);
}

div#app div.contentWrapper div.controlContainer .messageTextInput {
	width: 100%;
	height: auto;
	resize: none;
	overflow-wrap: break-word;
	border: none;
	outline: none;
	background-color: transparent;
	color: var(--text);
	align-self: center;
	max-height: calc(28px * 8);
}

div#app div.contentWrapper div.controlContainer button {
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: var(--br-md);
	background-color: var(--wb-blue);
	color: var(--white);
	position: relative;
	align-self: flex-end;
}

div#app div.contentWrapper div.controlContainer button:hover {
	cursor: pointer;
	opacity: 0.9;
}

div#app div.contentWrapper div.controlContainer button:active {
	filter: brightness(0.9);
}

div#app div.contentWrapper div.controlContainer button svg {
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
}

div#app div.contentWrapper div.messageContainer {
	height: 100%;
	width: 100%;
	overflow-y: auto;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-start;
	align-items: center;
	gap: 1rem;
}

button.send-email {
	background-color: var(--wb-blue);
	color: var(--white);
	padding: 0.5rem 1rem;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 0.25rem;
	width: 50%;
	max-width: 300px;
	height: 3rem;
	margin-top: auto;
	margin-bottom: 0;
	border-radius: var(--br-md);
	font-family: var(--font-sans);
	font-weight: 600;
}

div#app div.contentWrapper div.messageContainer::-webkit-scrollbar {
	width: 16px;
}

div#app div.contentWrapper div.messageContainer::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px var(--bg);
	border-radius: 2.5px;
}

div#app div.contentWrapper div.messageContainer::-webkit-scrollbar-thumb {
	background: var(--light-gray);
	border-radius: 15px;
	border: 5px solid rgba(0, 0, 0, 0);
	background-clip: padding-box;
}

div#app div.contentWrapper div.messageContainer div.message {
	width: 90%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	font-weight: 500;
}

div#app div.contentWrapper div.messageContainer div.message.to {
	align-self: flex-end;
	align-items: flex-end;
}

div#app div.contentWrapper div.messageContainer div.message.from {
	align-self: flex-start;
	align-items: flex-start;
}

div#app div.contentWrapper div.messageContainer div.message.to p {
	background-color: var(--to-message-bg);
	color: var(--text);
	padding: 0.5rem 1rem;
	border-radius: 12px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	line-height: 1.55;
}

div#app div.contentWrapper div.messageContainer div.message.from p,
div#app div.contentWrapper div.messageContainer div.message.from div {
	background-color: var(--wb-blue);
	color: var(--white);
	padding: 0.5rem 1rem;
	border-radius: 12px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	line-height: 1.55;
}

div#app div.contentWrapper div.messageContainer div.message span.ts {
	color: var(--text-light);
	font-size: 0.8rem;
	font-family: var(--font-sans);
}

@media screen and (min-width: 1280px) {
	div#app div.contentWrapper div.messageContainer div.message {
		width: 70%;
	}
}

/* END CONTROL CENTER */

/* MODAL */

div#app div.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}

div.modal-backdrop div.modal {
	width: 100%;
	max-width: 550px;
	height: auto;
	background-color: var(--foreground);
	border-radius: var(--br-lg);
	border: none;
	box-shadow: var(--shadow-card);
	overflow: hidden;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 1rem;
	z-index: 1001;
	font-family: var(--font-sans);
}

div.modal-backdrop div.modal-notes {
	width: 100%;
	max-width: 75%;
	max-height: 90%;
	height: auto;
	background-color: var(--foreground);
	border-radius: var(--br-md);
	border: 2px solid var(--light-gray);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 1rem;
	z-index: 1001;
}

div#modal-notes {
	overflow: scroll;
}

div#modal-notes th {
	text-align: left;
}

div.modal-backdrop div.modal div.header {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

div.modal-backdrop div.modal-notes div.header {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

div.modal-backdrop div.modal div.header h3 {
	color: var(--text);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1.3;
}

div.modal-backdrop div.modal-notes div.header h3 {
	color: var(--text);
	font-weight: 600;
	font-size: 1.7rem;
	line-height: 0;
}

div.modal-backdrop div.modal ul.modal-settings {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: 0;
	gap: 1rem;
}

div.modal-backdrop div.modal ul.modal-settings > li {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	border: 1px solid var(--light-gray);
	border-radius: var(--br-md);
	padding: 1rem;
}

.modal-accent {
	height: 4px;
	background: linear-gradient(90deg, var(--wb-blue) 0%, var(--wb-cyan) 50%, var(--wb-light-green) 100%);
	background-size: 200% 100%;
	animation: lp-accent-slide 4s linear infinite;
	width: calc(100% + 2rem);
	margin: -1rem -1rem 0 -1rem;
	flex-shrink: 0;
}

div.modal-backdrop div.modal ul.modal-settings > li > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	width: 90%;
}

div.modal-backdrop div.modal ul.modal-settings > li > div h4 {
	color: var(--text);
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.9rem;
}

div.modal-backdrop div.modal ul.modal-settings > li > div p {
	color: var(--text-light);
	font-size: 0.82rem;
}

/* END MODAL */

/* PATIENT INFO */

/* sidebar */

div#app aside div.staticSidebarBody div.patient-info-sidebar-container {
	overflow-y: scroll;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	width: 100%;
	height: 100%;
	gap: 1.5rem;
	padding-top: 0.25rem;
}

div#app
	aside
	div.staticSidebarBody
	div.patient-info-sidebar-container
	div.infoBox {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 0.5rem;
}

div#app
	aside
	div.staticSidebarBody
	div.patient-info-sidebar-container
	div.infoBox
	label {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-light);
	line-height: 70%;
}

div#app
	aside
	div.staticSidebarBody
	div.patient-info-sidebar-container
	div.infoBox
	div.data {
	width: 100%;
	padding: 0rem 0.5rem;
	text-align: left;
	font-size: 0.9rem;
	color: var(--text);
}

div#app
	aside
	div.staticSidebarBody
	div.patient-info-sidebar-container
	div.infoBox
	div.data
	ul {
	list-style-position: inside;
	padding-left: 0;
}

/* end sidebar */

/* END PATIENT INFO */

/* CIRCULAR PROGRESS */

.circular-progress {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(var(--success) calc(var(--percentage) * 1%), var(--light-gray) 0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-progress span {
    position: absolute;
    font-size: 0.8em;
    font-weight: bold;
    color: var(--text);
}

.circular-progress {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Rotate to start from the top */
}

.circle-bg {
    fill: none;
    stroke: #eee; /* Background color of the ring */
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke: var(--wb-light-green); /* Progress color */
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke-dasharray: 0, 100; /* Initial state */
    transition: stroke-dasharray 0.3s ease; /* Smooth animation */
}

.circular-progress span {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

/* END CIRCULAR PROGRESS */

/* CALCULATING SCORE OVERLAY */
.calculating-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
}

.calculating-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #e0e0e0;
}

.calculating-content p {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
}

.calculating-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--wb-light-green, #4caf50);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* END CALCULATING SCORE OVERLAY */

/* CALL HEADER */
.call-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.6rem 1rem;
	background: var(--wb-light-green, #4caf50);
	color: #fff;
	border-radius: var(--br-md);
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.95rem;
	flex-shrink: 0;
}

.call-header svg {
	width: 16px;
	height: 16px;
	stroke: #fff;
}
/* END CALL HEADER */

/* LISTENING INDICATOR */
.listening-indicator {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.875rem;
	background: var(--to-message-bg);
	color: var(--text-light);
	border-radius: var(--br-md);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 500;
}
/* END LISTENING INDICATOR */

/* PATIENT NOTES LABELS */
#modal-notes b {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-light);
}
/* END PATIENT NOTES LABELS */

/* ═══════════════════════════════════════════════════════════════ */
/* TEAMS-STYLE VIDEO CALL LAYOUT                                  */
/* ═══════════════════════════════════════════════════════════════ */

/* Override the default #app layout when in call mode */
div#app {
	padding-top: 0;
}

/* ─── CALL LAYOUT CONTAINER ─────────────────────────────────── */
.call-layout {
	display: flex;
	flex-direction: column;
	height: 100vh;
	width: 100%;
	background: #1a1a2e;
	color: #e0e0e0;
	overflow: hidden;
}

/* ─── TOP BAR ───────────────────────────────────────────────── */
.call-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 52px;
	min-height: 52px;
	padding: 0 1rem;
	background: #16162a;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	z-index: 10;
}

.call-topbar-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.call-topbar-logo {
	height: 26px;
	width: auto;
	opacity: 0.9;
}

.call-topbar-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 500;
	color: #e0e0e0;
}

.call-topbar-icon {
	width: 14px;
	height: 14px;
	min-width: 14px;
}

.call-topbar-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.call-topbar-timer {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wb-light-green);
	letter-spacing: 0.05em;
}

/* ─── MAIN BODY (sidebar + center) ──────────────────────────── */
.call-body {
	display: flex;
	flex: 1;
	overflow: hidden;
	position: relative;
}

/* ─── LEFT SIDEBAR (Patient Info) ───────────────────────────── */
div#app .call-sidebar {
	visibility: visible;
	width: 0;
	min-width: 0;
	overflow: hidden;
	background: #1e1e38;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	transition: width 0.3s ease, min-width 0.3s ease;
	display: flex;
	flex-direction: column;
	z-index: 20;
	flex-shrink: 0;
	height: auto;
}

div#app .call-sidebar.sidebar-visible {
	width: 320px;
	min-width: 320px;
}

.call-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.call-sidebar-header h3 {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	color: #e0e0e0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.call-sidebar-header .icon-btn {
	color: #999;
}

.call-sidebar-header .icon-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.call-sidebar-content {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Info boxes inside call sidebar */
.call-sidebar-content .infoBox {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.call-sidebar-content .infoBox label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

.call-sidebar-content .infoBox .data {
	font-size: 0.85rem;
	color: #d0d0d0;
	padding-left: 0.25rem;
}

.call-sidebar-content .infoBox .data ul {
	list-style-position: inside;
	padding-left: 0;
	margin: 0;
}

.call-sidebar-content .infoBox .data ul li {
	font-size: 0.83rem;
	line-height: 1.6;
}

.call-sidebar-content .inline-icon-btn {
	color: var(--wb-blue);
	font-size: 0.85rem;
	justify-content: flex-start;
	gap: 0.4rem;
	padding: 0.5rem 0;
}

.call-sidebar-content .inline-icon-btn:hover {
	background: rgba(255, 255, 255, 0.05);
}

.call-sidebar-content .inline-icon-btn svg {
	width: 14px;
	height: 14px;
}

.patient-notes-expanded {
	font-size: 0.83rem;
	color: #c0c0c0;
	line-height: 1.6;
	padding: 0.5rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
}

.patient-notes-expanded b {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}

/* Notes modal */
.notes-modal-body {
	width: 100%;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-right: 0.25rem;
}

.notes-section {
	width: 100%;
	border-top: 1px solid var(--light-gray);
	padding-top: 1rem;
}

.notes-section:first-child {
	border-top: none;
	padding-top: 0;
}

.notes-section h4 {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wb-blue);
	margin-bottom: 0.5rem;
}

.notes-section p {
	font-size: 0.9rem;
	color: var(--text);
	line-height: 1.65;
	margin: 0;
}

.notes-grid {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.25rem;
	font-size: 0.875rem;
}

.notes-label {
	font-weight: 600;
	color: var(--muted, #888);
	white-space: nowrap;
}

.phi-disclaimer {
	font-size: 0.75rem;
	color: #666;
	text-align: center;
	padding: 0.5rem 0;
}

/* ─── CENTER (Avatar + Chat) ────────────────────────────────── */
.call-center {
	flex: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.call-video-area {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	background: radial-gradient(ellipse at center, #252545 0%, #1a1a2e 70%);
	overflow: hidden;
}

/* ─── AVATAR CONTAINER ──────────────────────────────────────── */
.avatar-container {
	position: relative;
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	background: #2d2d4a;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.05),
		0 8px 32px rgba(0, 0, 0, 0.4),
		0 0 80px rgba(28, 140, 205, 0.08);
}

.avatar-video,
.avatar-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

.avatar-poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	border-radius: 16px;
	transition: opacity 0.5s ease;
}

.avatar-name-overlay {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	padding: 0.3rem 0.75rem;
	border-radius: 6px;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 500;
	z-index: 5;
}

.avatar-status-indicator {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.3rem 0.65rem;
	border-radius: 6px;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	color: #ccc;
	z-index: 5;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #666;
	flex-shrink: 0;
}

.status-ready .status-dot { background: var(--wb-light-green); }
.status-listening .status-dot { background: var(--wb-blue); animation: pulse-dot 1.2s ease-in-out infinite; }
.status-thinking .status-dot { background: #f59e0b; animation: pulse-dot 0.8s ease-in-out infinite; }
.status-speaking .status-dot { background: var(--wb-cyan); animation: pulse-dot 0.6s ease-in-out infinite; }

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── WAITING STATE ─────────────────────────────────────────── */
.call-waiting {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(26, 26, 46, 0.9);
	z-index: 10;
}

.call-waiting-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.call-waiting-logo {
	height: 40px;
	width: auto;
	opacity: 0.7;
}

.call-waiting-content p {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	color: #888;
}

/* ─── CHAT OVERLAY ──────────────────────────────────────────── */
.call-chat-overlay {
	position: absolute;
	top: 0;
	right: -360px;
	width: 360px;
	height: 100%;
	background: rgba(22, 22, 42, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	z-index: 15;
}

.call-chat-overlay.chat-visible {
	right: 0;
}

.call-chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	flex-shrink: 0;
}

.call-chat-header h4 {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	color: #e0e0e0;
}

.call-chat-header .icon-btn {
	color: #999;
}

.call-chat-header .icon-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.call-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem;
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
}

.call-chat-messages .message {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.call-chat-messages .message.to {
	align-self: flex-end;
	align-items: flex-end;
}

.call-chat-messages .message.from {
	align-self: flex-start;
	align-items: flex-start;
}

.call-chat-messages .message.to p {
	background: rgba(255, 255, 255, 0.1);
	color: #e0e0e0;
	padding: 0.4rem 0.75rem;
	border-radius: 10px;
	font-family: var(--font-sans);
	font-size: 0.82rem;
	line-height: 1.5;
	max-width: 280px;
}

.call-chat-messages .message.from p,
.call-chat-messages .message.from div {
	background: var(--wb-blue);
	color: #fff;
	padding: 0.4rem 0.75rem;
	border-radius: 10px;
	font-family: var(--font-sans);
	font-size: 0.82rem;
	line-height: 1.5;
	max-width: 280px;
}

.call-chat-messages .message .ts {
	font-size: 0.7rem;
	color: #666;
}

.chat-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 2rem;
	color: #555;
	text-align: center;
}

.chat-empty svg {
	width: 24px;
	height: 24px;
	opacity: 0.4;
}

.chat-empty p {
	font-size: 0.8rem;
}

/* ─── BOTTOM CONTROL BAR ────────────────────────────────────── */
.call-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 64px;
	min-height: 64px;
	padding: 0 1rem;
	background: #16162a;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	z-index: 10;
}

.call-controls-left,
.call-controls-right {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.call-controls-center {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Control buttons */
.call-ctrl-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	color: #999;
	transition: all 0.15s ease;
	cursor: pointer;
}

.call-ctrl-btn svg {
	width: 18px;
	height: 18px;
	min-width: 18px;
}

.call-ctrl-label {
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.call-ctrl-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #e0e0e0;
}

.call-ctrl-btn.active {
	background: rgba(28, 140, 205, 0.15);
	color: var(--wb-blue);
}

/* Mic indicator */
.call-mic-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #666;
	transition: all 0.2s ease;
}

.call-mic-indicator svg {
	width: 18px;
	height: 18px;
}

.call-mic-indicator.listening {
	background: rgba(28, 140, 205, 0.2);
	color: var(--wb-blue);
	animation: mic-pulse 1.5s ease-in-out infinite;
}

.call-mic-indicator.paused {
	background: rgba(220, 53, 69, 0.2);
	color: #dc3545;
	cursor: pointer;
}

.call-mic-indicator:hover {
	cursor: pointer;
	background: rgba(255, 255, 255, 0.1);
}

/* Pause overlay */
.call-paused-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.call-paused-content {
	text-align: center;
	color: white;
}

.call-paused-content .paused-icon {
	width: 64px;
	height: 64px;
	color: #dc3545;
	margin-bottom: 1rem;
}

.call-paused-content h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.call-paused-content p {
	color: #aaa;
	font-size: 0.9rem;
}

@keyframes mic-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(28, 140, 205, 0.3); }
	50% { box-shadow: 0 0 0 8px rgba(28, 140, 205, 0); }
}

/* Timer display */
.call-timer-display {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	color: #e0e0e0;
	letter-spacing: 0.05em;
	min-width: 70px;
	text-align: center;
}

/* End call button */
.call-end-btn {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.25rem;
	background: #dc2626;
	color: #fff;
	border-radius: 24px;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}

.call-end-btn svg {
	width: 16px;
	height: 16px;
}

.call-end-btn:hover {
	background: #ef4444;
	transform: scale(1.02);
	opacity: 1;
}

.call-end-btn:disabled {
	background: #444;
	color: #888;
	cursor: not-allowed;
	opacity: 0.5;
}

/* ─── CALCULATING OVERLAY (updated for dark theme) ──────────── */
.call-layout .calculating-overlay {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 46, 0.92);
	backdrop-filter: blur(8px);
	z-index: 200;
}

.call-layout .calculating-content {
	color: #e0e0e0;
}

.call-layout .calculating-spinner {
	border-color: rgba(255, 255, 255, 0.1);
	border-top-color: var(--wb-light-green);
}

/* ─── RESPONSIVE: MOBILE ────────────────────────────────────── */
@media screen and (max-width: 768px) {
	div#app .call-sidebar.sidebar-visible {
		position: absolute;
		top: 0;
		left: 0;
		width: 100% !important;
		min-width: 100% !important;
		height: 100%;
		z-index: 30;
		background: #1e1e38;
	}

	.call-chat-overlay {
		width: 100%;
		right: -100%;
	}

	.call-chat-overlay.chat-visible {
		right: 0;
	}

	.avatar-container {
		max-width: 300px;
	}

	.call-ctrl-label {
		display: none;
	}

	.call-end-btn span {
		display: none;
	}

	.call-topbar-title {
		font-size: 0.8rem;
	}
}

@media screen and (max-width: 480px) {
	.avatar-container {
		max-width: 240px;
	}

	.call-controls {
		padding: 0 0.5rem;
	}

	.call-ctrl-btn {
		padding: 0.4rem 0.5rem;
	}
}

/* ─── RESPONSIVE: LARGE SCREENS ─────────────────────────────── */
@media screen and (min-width: 1280px) {
	.avatar-container {
		max-width: 560px;
	}

	.call-chat-overlay {
		width: 400px;
		right: -400px;
	}

	.call-chat-overlay.chat-visible {
		right: 0;
	}
}

/* ─── PHOTO-BASED AVATAR ────────────────────────────────────── */

.avatar-photo-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 16px;
	background: linear-gradient(135deg, #2d2d4a 0%, #1a1a2e 100%);
	transition: transform 0.6s ease, filter 0.4s ease;
}

.avatar-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
	border-radius: 16px;
	filter: brightness(0.95) contrast(1.05);
	transition: transform 0.4s ease, filter 0.3s ease;
}

/* Initials fallback */
.avatar-initials {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wb-blue), var(--wb-cyan));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 4rem;
	font-weight: 400;
	color: #fff;
	letter-spacing: 0.05em;
}

/* Expression overlay */
.avatar-expression-overlay {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	pointer-events: none;
	transition: all 0.4s ease;
}

.overlay-idle {
	/* Subtle vignette */
	background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.15) 100%);
}

.overlay-listening {
	background: radial-gradient(ellipse at center, rgba(28, 140, 205, 0.05) 0%, rgba(28, 140, 205, 0.12) 100%);
	animation: overlay-pulse-blue 2s ease-in-out infinite;
}

.overlay-thinking {
	background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
	animation: overlay-pulse-amber 1.5s ease-in-out infinite;
}

.overlay-talking,
.overlay-talking_happy,
.overlay-talking_concerned,
.overlay-talking_frustrated {
	background: radial-gradient(ellipse at center, rgba(12, 183, 186, 0.05) 0%, transparent 70%);
}

.overlay-talking_happy {
	background: radial-gradient(ellipse at center, rgba(112, 192, 85, 0.08) 0%, transparent 70%);
}

.overlay-talking_frustrated {
	background: radial-gradient(ellipse at center, rgba(248, 113, 113, 0.08) 0%, transparent 70%);
}

.overlay-smiling {
	background: radial-gradient(ellipse at center, rgba(112, 192, 85, 0.06) 0%, transparent 70%);
}

@keyframes overlay-pulse-blue {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}

@keyframes overlay-pulse-amber {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

/* Expression-specific photo transforms */
.expr-idle .avatar-photo {
	transform: scale(1);
	animation: idle-breathe 4s ease-in-out infinite;
}

.expr-listening .avatar-photo {
	transform: scale(1.02);
	animation: listen-tilt 3s ease-in-out infinite;
}

.expr-thinking .avatar-photo {
	transform: scale(1);
	filter: brightness(0.88) contrast(1.05);
	animation: think-sway 2.5s ease-in-out infinite;
}

.expr-talking .avatar-photo,
.expr-talking_happy .avatar-photo,
.expr-talking_concerned .avatar-photo,
.expr-talking_frustrated .avatar-photo {
	transform: scale(1.03);
	animation: talk-bounce 0.6s ease-in-out infinite;
}

.expr-smiling .avatar-photo {
	transform: scale(1.02);
	filter: brightness(1.02) contrast(1.05);
}

.expr-confused .avatar-photo {
	animation: confused-tilt 2s ease-in-out infinite;
}

@keyframes idle-breathe {
	0%, 100% { transform: scale(1) translateY(0); }
	50% { transform: scale(1) translateY(-2px); }
}

@keyframes listen-tilt {
	0%, 100% { transform: scale(1.02) rotate(0deg); }
	50% { transform: scale(1.02) rotate(1.5deg); }
}

@keyframes think-sway {
	0%, 100% { transform: scale(1) translateX(0); }
	50% { transform: scale(1) translateX(-3px); }
}

@keyframes talk-bounce {
	0%, 100% { transform: scale(1.03) translateY(0); }
	50% { transform: scale(1.03) translateY(-3px); }
}

@keyframes confused-tilt {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(2deg); }
	75% { transform: rotate(-2deg); }
}

/* Audio wave bars */
.avatar-wave-bars {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 30px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 3;
}

.wave-bar {
	width: 4px;
	background: var(--wb-cyan);
	border-radius: 2px;
	animation: wave-bar-bounce 0.5s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 18px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 14px; animation-delay: 0.4s; }

@keyframes wave-bar-bounce {
	0% { transform: scaleY(0.4); }
	100% { transform: scaleY(1); }
}

/* Listening ring */
.avatar-listen-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 80%;
	height: 80%;
	transform: translate(-50%, -50%);
	border: 2px solid rgba(28, 140, 205, 0.3);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
	animation: listen-ring-pulse 2s ease-in-out infinite;
	z-index: 2;
	pointer-events: none;
}

@keyframes listen-ring-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; border-color: rgba(28, 140, 205, 0.3); }
	50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.6; border-color: rgba(28, 140, 205, 0.5); }
}

/* ═══════════════════════════════════════════════════════════════ */
/* END TEAMS-STYLE VIDEO CALL LAYOUT                              */
/* ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ */
/* MODERN GRADING MODAL                                           */
/* ═══════════════════════════════════════════════════════════════ */

.grading-backdrop {
	background-color: rgba(26, 26, 46, 0.92);
	backdrop-filter: blur(12px);
	z-index: 2000;
}

.grading-modal {
	width: 100%;
	max-width: 520px;
	max-height: 96vh;
	background: linear-gradient(145deg, #1e1e38 0%, #252548 100%);
	border-radius: 20px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	animation: grading-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes grading-modal-in {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.grading-modal-accent {
	height: 4px;
	background: linear-gradient(90deg, var(--wb-blue) 0%, var(--wb-cyan) 50%, var(--wb-light-green) 100%);
	background-size: 200% 100%;
	animation: grading-accent-slide 4s linear infinite;
	flex-shrink: 0;
}

@keyframes grading-accent-slide {
	0% { background-position: 0% 0%; }
	100% { background-position: 200% 0%; }
}

/* Header */
.grading-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 1.5rem 0.75rem;
}

.grading-logo {
	height: 32px;
	width: auto;
	opacity: 0.9;
}

.grading-close-btn {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.05);
	color: #888;
	transition: all 0.2s ease;
	cursor: pointer;
}

.grading-close-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #e0e0e0;
}

.grading-close-btn svg {
	width: 20px;
	height: 20px;
}

/* Score Section */
.grading-score-section {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.5rem 1rem;
}

.grading-score-ring {
	position: relative;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.grading-circular-chart {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.grading-circle-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 3;
}

.grading-circle {
	fill: none;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 0, 100;
	transition: stroke-dasharray 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.grading-circle.score-excellent {
	stroke: var(--wb-light-green);
}

.grading-circle.score-good {
	stroke: #f59e0b;
}

.grading-circle.score-needs-work {
	stroke: #f87171;
}

.grading-score-value {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.grading-percentage {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: #fff;
	line-height: 1;
}

.grading-fraction {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	color: #888;
	margin-top: 0.2rem;
}

.grading-score-text {
	text-align: left;
}

.grading-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 400;
	color: #fff;
	margin-bottom: 0.2rem;
}

.grading-subtitle {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	color: #888;
}

/* Checklist Section */
.grading-checklist {
	flex: 1;
	overflow-y: auto;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 0;
}

.grading-checklist::-webkit-scrollbar {
	width: 4px;
}

.grading-checklist::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 2px;
}

.grading-checklist::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}

.grading-item {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 0.875rem 1rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	transition: all 0.2s ease;
}

.grading-item:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.08);
}

.grading-item-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}

.grading-item-icon.success {
	background: rgba(112, 192, 85, 0.15);
	color: var(--wb-light-green);
}

.grading-item-icon.error {
	background: rgba(248, 113, 113, 0.15);
	color: #f87171;
}

.grading-item-icon svg {
	width: 12px;
	height: 12px;
	stroke-width: 3;
}

.grading-item-text {
	font-family: var(--font-sans);
	font-size: 0.9rem;
	line-height: 1.5;
	color: #c0c0c0;
}

.grading-item-text strong {
	color: #e0e0e0;
	font-weight: 500;
}

/* Actions */
.grading-actions {
	display: flex;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.grading-btn-primary,
.grading-btn-secondary {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.25rem;
	border-radius: 10px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.grading-btn-primary {
	background: var(--wb-blue);
	color: #fff;
	border: none;
}

.grading-btn-primary:hover:not(:disabled) {
	background: #1a7ab8;
	transform: translateY(-1px);
}

.grading-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.grading-btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	color: #c0c0c0;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.grading-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #e0e0e0;
}

.grading-btn-primary svg,
.grading-btn-secondary svg {
	width: 16px;
	height: 16px;
}

/* Responsive */
@media screen and (max-width: 520px) {
	.grading-modal {
		max-width: 100%;
		margin: 1rem;
		max-height: calc(100vh - 2rem);
	}
	
	.grading-actions {
		flex-direction: column-reverse;
	}
	
	.grading-score-ring {
		width: 80px;
		height: 80px;
	}

	.grading-percentage {
		font-size: 1.25rem;
	}

	.grading-title {
		font-size: 1.25rem;
	}
}

/* ═══════════════════════════════════════════════════════════════ */
/* END MODERN GRADING MODAL                                       */
/* ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ */
/* CALL ENDED MODAL (Patient Hung Up)                             */
/* ═══════════════════════════════════════════════════════════════ */

.call-ended-backdrop {
	background-color: rgba(26, 26, 46, 0.92);
	backdrop-filter: blur(6px);
}

.call-ended-modal {
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	background: linear-gradient(145deg, #1e1e2e 0%, #252538 100%);
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	animation: call-ended-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes call-ended-modal-in {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.call-ended-modal-accent {
	height: 4px;
	background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
}

/* Header */
.call-ended-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.call-ended-logo {
	height: 32px;
	width: auto;
	opacity: 0.9;
}

.call-ended-close-btn {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: none;
	color: #a0a0b0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.call-ended-close-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.call-ended-close-btn svg {
	width: 20px;
	height: 20px;
}

/* Alert Section */
.call-ended-alert {
	padding: 32px 24px;
	text-align: center;
	background: linear-gradient(180deg, rgba(248, 113, 113, 0.08) 0%, transparent 100%);
}

.call-ended-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(248, 113, 113, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	border: 2px solid rgba(248, 113, 113, 0.3);
}

.call-ended-icon svg {
	width: 36px;
	height: 36px;
	color: #f87171;
}

.call-ended-title {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 500;
	color: #f87171;
	margin-bottom: 8px;
}

.call-ended-subtitle {
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	color: #a0a0b0;
	letter-spacing: 0.02em;
}

/* Content Section */
.call-ended-content {
	padding: 24px;
	flex: 1;
	overflow-y: auto;
}

.call-ended-message {
	font-family: var(--font-sans);
	font-size: 1rem;
	color: #c0c0d0;
	line-height: 1.6;
	margin-bottom: 24px;
	text-align: center;
}

.call-ended-suggestions {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.call-ended-suggestions h4 {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	color: #e0e0e0;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.call-ended-suggestions ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.call-ended-suggestions li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.call-ended-suggestions li:last-child {
	border-bottom: none;
}

.call-ended-suggestions li svg {
	width: 18px;
	height: 18px;
	color: var(--wb-light-green);
	flex-shrink: 0;
	margin-top: 2px;
}

.call-ended-suggestions li span {
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	color: #b0b0c0;
	line-height: 1.5;
}

/* Actions */
.call-ended-actions {
	display: flex;
	gap: 12px;
	padding: 20px 24px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.2);
}

.call-ended-btn-primary {
	flex: 1;
	padding: 14px 24px;
	border-radius: 10px;
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
	color: white;
	border: none;
}

.call-ended-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.call-ended-btn-primary svg {
	width: 16px;
	height: 16px;
}

/* Responsive */
@media screen and (max-width: 520px) {
	.call-ended-modal {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}
	
	.call-ended-actions {
		flex-direction: column-reverse;
	}
}

/* ═══════════════════════════════════════════════════════════════ */
/* END CALL ENDED MODAL                                           */
/* ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ */
/* LIVE COACHING                                                  */
/* ═══════════════════════════════════════════════════════════════ */

/* Coach panel shares the chat overlay's slide-in; only the body differs. */
.coach-body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.coach-block {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.coach-block-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.coach-block-head label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #999;
}

.coach-value {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	color: #e0e0e0;
}

.coach-sub {
	font-size: 0.72rem;
	color: #777;
	line-height: 1.4;
}

/* Caller temperature: four segments, lit up to the current level */
.coach-segments {
	display: flex;
	gap: 4px;
}

.coach-seg {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.3s ease;
}

.coach-seg.lit.temp-calm { background: var(--wb-light-green); }
.coach-seg.lit.temp-annoyed { background: #f5b942; }
.coach-seg.lit.temp-frustrated { background: #f0883e; }
.coach-seg.lit.temp-done { background: #dc2626; }

.coach-value.temp-calm { color: var(--wb-light-green); }
.coach-value.temp-annoyed { color: #f5b942; }
.coach-value.temp-frustrated { color: #f0883e; }
.coach-value.temp-done { color: #f87171; }

/* Composure meter */
.coach-bar {
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.coach-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.6s ease, background 0.6s ease;
}

.coach-bar-fill.comp-good { background: var(--wb-light-green); }
.coach-bar-fill.comp-warn { background: #f5b942; }
.coach-bar-fill.comp-bad { background: #f87171; }

.coach-value.comp-good { color: var(--wb-light-green); }
.coach-value.comp-warn { color: #f5b942; }
.coach-value.comp-bad { color: #f87171; }

/* Checklist */
.coach-checklist {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.coach-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #c8c8c8;
	transition: color 0.2s ease;
}

.coach-checklist li svg {
	width: 15px;
	height: 15px;
	min-width: 15px;
	margin-top: 2px;
	color: #666;
}

.coach-checklist li.met {
	color: #e0e0e0;
	/* Runs once when the item flips to met, so the trainee sees it land. */
	animation: coach-item-met 1.2s ease-out;
	border-radius: 6px;
}

.coach-checklist li.met svg {
	color: var(--wb-light-green);
}

@keyframes coach-item-met {
	0% { background: rgba(112, 192, 85, 0.35); }
	100% { background: transparent; }
}

.coach-checklist li.hidden {
	color: #666;
}

.coach-redacted {
	font-style: italic;
}

.coach-hint-btn {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.25rem;
	padding: 0.45rem 0.75rem;
	border-radius: 8px;
	background: rgba(28, 140, 205, 0.15);
	color: var(--wb-blue);
	font-family: var(--font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.coach-hint-btn svg {
	width: 15px;
	height: 15px;
}

.coach-hint-btn:hover:not(:disabled) {
	background: rgba(28, 140, 205, 0.25);
}

.coach-hint-btn:disabled {
	color: #777;
	background: rgba(255, 255, 255, 0.05);
	cursor: default;
}

.coach-hint-count {
	margin-left: auto;
	font-weight: 400;
	color: #999;
}

/* Nudge: one line over the video area, briefly */
.coach-nudge {
	position: absolute;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: min(90%, 460px);
	padding: 0.6rem 1rem;
	border-radius: 24px;
	background: rgba(22, 22, 42, 0.92);
	border: 1px solid rgba(245, 185, 66, 0.5);
	color: #f3e2b8;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	line-height: 1.4;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	/* Below the chat/coach overlays (z 15) so an open panel covers it rather
	   than the toast sitting across the panel header. */
	z-index: 12;
}

.coach-nudge svg {
	width: 16px;
	height: 16px;
	min-width: 16px;
	color: #f5b942;
}

.nudge-enter-active,
.nudge-leave-active {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.nudge-enter-from,
.nudge-leave-to {
	opacity: 0;
	transform: translateX(-50%) translateY(-8px);
}

/* Coach button asks for a look when a nudge is up or the caller is close to hanging up */
.call-ctrl-btn.attention:not(.active) {
	color: #f5b942;
}

/* Live coaching line at the bottom of the score checklist */
.grading-coach-summary {
	padding: 0.75rem 1rem;
	border-radius: 12px;
	background: rgba(28, 140, 205, 0.08);
	border: 1px solid rgba(28, 140, 205, 0.15);
	font-family: var(--font-sans);
	font-size: 0.8rem;
	color: #c8c8c8;
	line-height: 1.5;
}

.grading-coach-summary strong {
	color: #e0e0e0;
}
