/* ===== BASE & TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-image: url('/theme/assets/images/table-background.jfif');
	background-size: cover;
	background-attachment: fixed;
	color: #333;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: #007BFF;
	transition: color 0.2s;
}

a:hover {
	color: #0056b3;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
	background: rgba(0, 0, 0, 0.6);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
	padding: 0;
	margin: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
}

.site-logo {
	flex-shrink: 0;
}

.site-logo a {
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-name-logo-text {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: #11B6DC;
	text-shadow: none;
}

.profile_access {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: auto;
}

.profile_access .btn-primary {
	background: linear-gradient(135deg, #007BFF, #0056b3);
	border: none;
	border-radius: 25px;
	padding: 8px 20px;
	font-weight: 500;
	font-size: 0.9rem;
}

.profile_access .dropdown-menu {
	border: none;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 8px 0;
}

.profile_access .dropdown-item {
	padding: 8px 20px;
	font-size: 0.9rem;
	transition: background 0.15s;
}

.profile_access .dropdown-item:hover {
	background: #f0f2f5;
}

/* Account switcher */
.account-switcher-label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
	padding: 4px 20px;
}

.account-switch-item {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 8px 20px !important;
}

.account-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #007BFF, #0056b3);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 600;
	flex-shrink: 0;
}

.account-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.account-name {
	font-size: 0.85rem;
	font-weight: 500;
	color: #333;
	line-height: 1.2;
}

.account-username {
	font-size: 0.75rem;
	color: #888;
	line-height: 1.2;
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.nav-more-wrapper {
	position: relative;
	flex-shrink: 0;
}

.nav-more-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.82rem;
	font-weight: 500;
	padding: 6px 12px;
	cursor: pointer;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
}

.nav-more-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.nav-more-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: rgba(0, 0, 0, 0.92);
	border-radius: 8px;
	padding: 6px 0;
	min-width: 160px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
	z-index: 1050;
}

.nav-more-dropdown.show {
	display: block;
}

.nav-more-dropdown a {
	display: block;
	padding: 8px 16px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
}

.nav-more-dropdown a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.nav-more-dropdown a.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

.nav-menu a {
	display: inline-block;
	padding: 6px 12px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 500;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
	flex-shrink: 0;
	white-space: nowrap;
}

.nav-menu a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

/* ===== PAGE HEADERS (h1 banners) ===== */
.login-header, h1 {
	background-color: #00bfff;
	color: #fff;
	padding: 20px 30px;
	margin: 15px 0 15px 0;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 1.4rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.todo-header { background: linear-gradient(135deg, #007BFF, #0056b3); }
.shopping-list-header { background: linear-gradient(135deg, #FF88CC, #e0559e); }
.meals-header { background: linear-gradient(135deg, #FF5733, #c7391f); }
.chores-header { background: linear-gradient(135deg, #A57248, #7d5533); }
.game-time-header { background: linear-gradient(135deg, #A020F0, #7a10c0); }
.allowance-header { background: linear-gradient(135deg, #98FB98, #5dcc5d); color: #1a3d1a; text-shadow: none; }
.recipe-header { background: linear-gradient(135deg, #808000, #5c5c00); }
.assistant-header { background: linear-gradient(135deg, #40E0D0, #2aafa1); }

/* ===== TABS ===== */
.nav-tabs {
	border-bottom: none;
	gap: 4px;
}

.nav-item .nav-link {
	background-color: #e9ecef;
	color: #555;
	border: none;
	border-radius: 8px 8px 0 0;
	padding: 10px 24px;
	font-weight: 500;
	font-size: 0.9rem;
	transition: background 0.2s, color 0.2s;
}

.nav-item .nav-link:hover {
	background-color: #dee2e6;
	color: #333;
}

.nav-item .nav-link.active {
	background-color: #fff;
	color: #007BFF;
	font-weight: 600;
}

.tab-content {
	background-color: #fff;
	padding: 20px 25px;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	margin-bottom: 20px;
}

/* ===== SECTION HEADERS (h2 inside tabs) ===== */
.section-header,
.tab-content h2 {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #555;
	border-bottom: 2px solid #00bfff;
	padding-bottom: 8px;
	margin-bottom: 15px;
}

.todo-module .tab-content h2 { border-bottom-color: #007BFF; }
.meals-module .tab-content h2 { border-bottom-color: #FF5733; }
.shopping_list-module .tab-content h2 { border-bottom-color: #FF88CC; }
.chores-module .tab-content h2 { border-bottom-color: #A57248; }
.game_time-module .tab-content h2 { border-bottom-color: #A020F0; }
.allowance-module .tab-content h2 { border-bottom-color: #98FB98; }
.recipe-module .tab-content h2 { border-bottom-color: #808000; }
.assistant-module .tab-content h2 { border-bottom-color: #40E0D0; }
.family-module .tab-content h2 { border-bottom-color: #00bfff; }
.settings-module .tab-content h2 { border-bottom-color: #00bfff; }

/* ===== FORMS ===== */
.form-control,
.tab-content input[type="text"],
.tab-content input[type="date"],
.tab-content input[type="number"],
.tab-content input[type="email"],
.tab-content input[type="password"],
.tab-content input[type="tel"],
.tab-content input[type="url"],
.tab-content textarea,
.tab-content select,
.modal-body input[type="text"],
.modal-body input[type="date"],
.modal-body input[type="number"],
.modal-body textarea,
.modal-body select {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.95rem;
	font-family: inherit;
	width: 100%;
	background-color: #fff;
	color: #333;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.form-control:focus,
.tab-content input:focus,
.tab-content textarea:focus,
.tab-content select:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
	border-color: #007BFF;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
	outline: none;
}

/* Select arrow indicator */
.tab-content select,
.modal-body select,
select.form-control,
select.form-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.form-select {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.95rem;
}

.form-group {
	margin-bottom: 18px;
}

.form-label,
.tab-content label:not(.list-group-item):not(.form-check-label) {
	font-weight: 500;
	font-size: 0.9rem;
	color: #444;
	margin-bottom: 6px;
	display: block;
}

/* Textarea sizing */
.tab-content textarea {
	min-height: 80px;
	resize: vertical;
}

/* Checkboxes & Radios */
.tab-content input[type="checkbox"],
.tab-content input[type="radio"],
.modal-body input[type="checkbox"],
.modal-body input[type="radio"] {
	width: 1.15em;
	height: 1.15em;
	accent-color: #007BFF;
	cursor: pointer;
	vertical-align: middle;
	margin-right: 6px;
}

.form-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
}

.form-check-label {
	font-size: 0.95rem;
	color: #444;
	cursor: pointer;
}

/* Submit buttons - .form-btn class used across site */
.form-btn,
button.form-btn,
input.form-btn {
	display: inline-block;
	background: linear-gradient(135deg, #007BFF, #0056b3);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
	transition: all 0.2s;
	text-decoration: none;
	letter-spacing: 0.3px;
}

.form-btn:hover,
button.form-btn:hover,
input.form-btn:hover {
	background: linear-gradient(135deg, #0056b3, #004094);
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
	transform: translateY(-1px);
	color: #fff;
}

.form-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Module-colored submit buttons */
.todo-module .form-btn { background: linear-gradient(135deg, #007BFF, #0056b3); box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3); }
.meals-module .form-btn { background: linear-gradient(135deg, #FF5733, #c7391f); box-shadow: 0 2px 6px rgba(255, 87, 51, 0.3); }
.shopping_list-module .form-btn { background: linear-gradient(135deg, #FF88CC, #e0559e); box-shadow: 0 2px 6px rgba(255, 136, 204, 0.3); }
.chores-module .form-btn { background: linear-gradient(135deg, #A57248, #7d5533); box-shadow: 0 2px 6px rgba(165, 114, 72, 0.3); }
.game_time-module .form-btn { background: linear-gradient(135deg, #A020F0, #7a10c0); box-shadow: 0 2px 6px rgba(160, 32, 240, 0.3); }
.allowance-module .form-btn { background: linear-gradient(135deg, #5dcc5d, #3da83d); box-shadow: 0 2px 6px rgba(93, 204, 93, 0.3); }
.recipe-module .form-btn { background: linear-gradient(135deg, #808000, #5c5c00); box-shadow: 0 2px 6px rgba(128, 128, 0, 0.3); }
.assistant-module .form-btn { background: linear-gradient(135deg, #40E0D0, #2aafa1); box-shadow: 0 2px 6px rgba(64, 224, 208, 0.3); }
.family-module .form-btn { background: linear-gradient(135deg, #007BFF, #0056b3); }
.settings-module .form-btn { background: linear-gradient(135deg, #007BFF, #0056b3); }

/* General button styles */
.btn {
	border-radius: 8px;
	font-weight: 500;
	padding: 10px 24px;
	font-size: 0.95rem;
	transition: all 0.2s;
	border: none;
}

.btn-primary {
	background: linear-gradient(135deg, #007BFF, #0056b3);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #0056b3, #004094);
	box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
	transform: translateY(-1px);
}

.btn-secondary {
	background: #6c757d;
	color: #fff;
}

.btn-outline-danger {
	border: 1px solid #dc3545;
	border-radius: 8px;
}

/* Form layout within tab content */
.tab-content form {
	max-width: 600px;
}

/* Multi-column forms (e.g. meal ratings) override max-width */
.tab-content form > .row > .col {
	/* signals a multi-column form */
}
.tab-content form:has(> .row > .col) {
	max-width: 100%;
}

/* Meal ratings layout */
.meals-module form > .row {
	display: flex;
	flex-wrap: wrap;
}

.meals-module form > .row > .col {
	flex: 1 1 280px;
	min-width: 280px;
	max-width: 100%;
	padding: 0 12px;
	margin-bottom: 20px;
}

.meals-module form > .row > .col h3 {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	border-bottom: 2px solid #FF5733;
	padding-bottom: 6px;
	margin-bottom: 10px;
}

.meals-module .meal_rating_select {
	width: auto;
	min-width: 60px;
	padding: 6px 10px;
	text-align: center;
}

.meals-module ul {
	list-style: none;
	padding-left: 0;
}

.meals-module li.form-group .row {
	align-items: center;
	flex-wrap: nowrap;
}

.meals-module li.form-group .col-2 {
	flex: 0 0 70px;
	max-width: 70px;
}

.meals-module li.form-group .col-10 {
	flex: 1 1 auto;
	max-width: none;
}

.meals-module li.form-group .form-label {
	margin-bottom: 0;
	white-space: normal;
	word-break: break-word;
}

/* Manage Meal Items layout */
.meals-module .tab-content > .tab-pane > .row {
	display: flex;
	flex-wrap: wrap;
}

.meals-module .tab-content > .tab-pane > .row > .col {
	flex: 1 1 280px;
	min-width: 280px;
	max-width: 100%;
	padding: 0 12px;
	margin-bottom: 20px;
}

.meals-module .tab-content > .tab-pane > .row > .col h3 {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	border-bottom: 2px solid #FF5733;
	padding-bottom: 6px;
	margin-bottom: 10px;
}

/* Meal manage list items */
.meals-module .list-group-item {
	border-radius: 8px !important;
	margin-bottom: 6px;
	border: 1px solid #e9ecef;
	transition: background 0.15s;
}

.meals-module .list-group-item:hover {
	background: #f8f9fa;
}

/* Assistant chat form */
.assistant-module .tab-content form {
	max-width: 700px;
	margin: 0 auto;
}

.assistant-module textarea {
	border-radius: 12px;
	padding: 14px 16px;
	min-height: 60px;
	font-size: 0.95rem;
}

.assistant-module .form-btn {
	border-radius: 12px;
	padding: 10px 32px;
	margin-top: 10px;
}

/* Disabled/readonly inputs */
input[readonly],
input[disabled],
select[disabled],
textarea[disabled] {
	background-color: #f5f5f5;
	color: #888;
	cursor: not-allowed;
	opacity: 0.8;
}

/* Input groups (e.g. money with $ prefix) */
.input-group {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
}

.input-group .input-group-text,
.input-group span {
	display: flex;
	align-items: center;
}

.input-group .input-group-text {
	background: #f0f2f5;
	border: 1px solid #d0d5dd;
	border-right: none;
	border-radius: 8px 0 0 8px;
	padding: 10px 12px;
	font-size: 0.95rem;
	color: #555;
}

.input-group .form-control,
.input-group input {
	border-radius: 0 8px 8px 0;
	width: auto;
	flex: 1 1 0%;
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	padding: 20px;
}

.dashboard-card {
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.dashboard-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dashboard-card.assistant-module {
	grid-column: span 2;
}

.dashboard-card-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dashboard-card-mini {
	flex: 1;
}

.dashboard-card-mini h2 {
	padding: 10px 16px;
	font-size: 0.85rem;
}

.dashboard-card-mini > .summary,
.dashboard-card-mini > div:last-child {
	padding: 10px 16px;
}

.dashboard-card h2 {
	margin: 0;
	padding: 14px 20px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	border-bottom: none;
}

.dashboard-widget-scroll {
	max-height: 265px;
	overflow-y: auto;
}

.dashboard-card a {
	text-decoration: none;
}

.dashboard-card a h2:hover {
	opacity: 0.9;
}

.dashboard-card > .summary,
.dashboard-card > div:last-child {
	padding: 15px 20px;
}

.dashboard-card ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.summary {
	text-align: center;
	padding: 15px 20px;
}

/* ===== LOGIN PAGE ===== */
.general_information_container {
	background-color: #fff;
	border: none;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	margin: 10px;
	min-height: 100px;
	padding: 10px;
}

.login-module {
	padding: 30px;
}

.login-module .form-group {
	padding: 0;
	margin-bottom: 16px;
}

.login-module .btn.btn-primary {
	width: 100%;
	padding: 12px;
	font-size: 1rem;
	font-weight: 600;
	margin-right: 0;
}

.login-module .btn {
	padding: 12px;
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
}

.forgot-password {
	margin-top: 10px;
}

.forgot-password a {
	color: #007BFF;
	text-decoration: none;
	font-size: 0.9rem;
}

.forgot-password a:hover {
	text-decoration: underline;
}

.new-account a {
	background: linear-gradient(135deg, #28a745, #1e7e34);
	border-radius: 8px;
	padding: 12px 30px;
	display: inline-block;
	box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.new-account a:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* ===== TODO LIST ===== */
.todo-list-container {
	max-width: 900px;
	width: 90%;
	margin: 0 auto;
	padding: 15px;
}

.todo-list-container .list-group-item {
	cursor: pointer;
	border-radius: 8px !important;
	margin-bottom: 6px;
	border: 1px solid #e9ecef;
	transition: background 0.15s;
}

.todo-list-container .list-group-item:hover {
	background: #f8f9fa;
}

.todo-list-container .list-group-item.task_completed {
	opacity: 0.6;
}

.todo-list-container .form-check-input {
	width: 1.2em;
	height: 1.2em;
	margin-top: 0;
}

/* ===== CHORE LIST ===== */
.chore-list-container {
	max-width: 900px;
	width: 90%;
	margin: 0 auto;
	padding: 15px;
}

.chore-list-container .list-group-item {
	cursor: pointer;
	border-radius: 8px !important;
	margin-bottom: 6px;
	border: 1px solid #e9ecef;
	transition: background 0.15s;
}

.chore-list-container .list-group-item:hover {
	background: #f8f9fa;
}

.chore-list-container .list-group-item.task_completed {
	opacity: 0.6;
}

.chore-list-container .form-check-input {
	width: 1.2em;
	height: 1.2em;
	margin-top: 0;
}

.chore-manage-list .list-group-item {
	border-radius: 8px !important;
	margin-bottom: 6px;
	border: 1px solid #e9ecef;
	transition: background 0.15s;
}

.chore-manage-list .list-group-item:hover {
	background: #f8f9fa;
}

/* ===== SHOPPING LIST ===== */
.shopping-list-container {
	max-width: 900px;
	width: 90%;
	margin: 0 auto;
	padding: 15px;
}

.shopping-list-container h4 {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	border-bottom: 2px solid #FF88CC;
	padding-bottom: 6px;
	margin-bottom: 10px;
	margin-top: 20px;
}

.shopping-list-container h4:first-child {
	margin-top: 0;
}

.shopping-list-container .private_list {
	color: #dc3545;
	font-size: 0.8em;
	font-weight: 500;
}

.shopping-list-container .list-group-item,
.shopping_list-module .list-group-item {
	border-radius: 8px !important;
	margin-bottom: 6px;
	border: 1px solid #e9ecef;
	transition: background 0.15s;
}

.shopping-list-container .list-group-item:hover,
.shopping_list-module .list-group-item:hover {
	background: #f8f9fa;
}

.shopping-list-container .list-group-item.task_completed {
	opacity: 0.6;
}

.shopping-list-container .form-check-input {
	width: 1.2em;
	height: 1.2em;
	margin-top: 0;
}

/* ===== ACTION BUTTONS (Edit/Delete) ===== */
.btn-action {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s;
	border: 1px solid transparent;
	white-space: nowrap;
	flex-shrink: 0;
}

.btn-action-edit {
	color: #007BFF;
	background: rgba(0, 123, 255, 0.1);
	border-color: #007BFF;
}

.btn-action-edit:hover {
	background: #007BFF;
	color: #fff;
}

.btn-action-delete {
	color: #dc3545;
	background: rgba(220, 53, 69, 0.1);
	border-color: #dc3545;
}

.btn-action-delete:hover {
	background: #dc3545;
	color: #fff;
}

/* ===== ALLOWANCE LOG ===== */
.allowance-log-container {
	max-width: 700px;
}

.allowance-log-container .list-group-item {
	border-radius: 8px !important;
	margin-bottom: 6px;
	border: 1px solid #e9ecef;
	transition: background 0.15s;
}

.allowance-log-container .list-group-item:hover {
	background: #f8f9fa;
}

.allowance-log-container .list-group-item:nth-child(even) {
	background-color: #f8fdf8;
}

.allowance-log-date {
	font-size: 0.85rem;
	color: #666;
	min-width: 90px;
}

.allowance-log-amount {
	font-weight: 600;
	font-size: 0.95rem;
	min-width: 80px;
}

.allowance-log-balance {
	font-size: 0.85rem;
	color: #666;
	flex: 1;
	text-align: right;
}

/* ===== TABLES & LISTS ===== */
.accordion-button.accordion-disabled:after {
	background-image: none;
}

/* ===== ASSISTANT / CHAT ===== */
.assistant-chat-wrapper {
	max-width: 750px;
	margin: 0 auto;
}

.dashboard-card.assistant-module {
	overflow: hidden;
}

.dashboard-card.assistant-module .assistant-chat-wrapper {
	max-width: none;
	width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.dashboard-card.assistant-module .assistant-chat-wrapper form {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.dashboard-card.assistant-module #conversation_output {
	flex: 1;
	height: auto;
}

.dashboard-card.assistant-module .assistant-input-area {
	max-width: none;
	width: 100%;
	flex-shrink: 0;
}

.dashboard-card.assistant-module .assistant-input-area .voice-input-wrapper {
	flex: 1;
	min-width: 0;
	display: flex;
}

.dashboard-card.assistant-module .assistant-input-area textarea {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.assistant-module #conversation_output {
	border: 1px solid #e0e0e0;
	border-radius: 16px 16px 0 0;
	padding: 20px;
	background: linear-gradient(180deg, #f8f9fa, #fff);
	overflow-y: auto;
	height: 420px;
	display: flex;
	flex-direction: column;
}

.dashboard-card.assistant-module #conversation_output {
	height: 200px;
}

.assistant-module .chat-bubble {
	margin: 6px 0;
	padding: 12px 18px;
	border-radius: 18px;
	max-width: 80%;
	font-size: 0.95rem;
	line-height: 1.5;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.assistant-module .user-message {
	background: linear-gradient(135deg, #40E0D0, #2aafa1);
	color: white;
	align-self: flex-end;
	margin-left: auto;
	border-bottom-right-radius: 4px;
}

.assistant-module .system-message {
	background: #fff;
	color: #333;
	border: 1px solid #e0e0e0;
	align-self: flex-start;
	margin-right: auto;
	border-bottom-left-radius: 4px;
}

.assistant-input-area {
	display: flex;
	gap: 0;
	border: 1px solid #e0e0e0;
	border-top: none;
	border-radius: 0 0 16px 16px;
	overflow: hidden;
	background: #fff;
}

.assistant-input-area textarea {
	flex: 1;
	border: none;
	border-radius: 0;
	padding: 14px 18px;
	font-size: 0.95rem;
	font-family: inherit;
	resize: none;
	min-height: 50px;
	outline: none;
	width: auto;
}

.assistant-input-area textarea:focus {
	box-shadow: none;
	border: none;
}

.assistant-send-btn {
	background: linear-gradient(135deg, #40E0D0, #2aafa1);
	color: #fff;
	border: none;
	padding: 14px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
	letter-spacing: 0.3px;
}

.assistant-send-btn:hover {
	background: linear-gradient(135deg, #2aafa1, #1f8a7d);
}

/* ===== CALENDAR MODULE ===== */
.calendar-layout {
	display: flex;
	gap: 20px;
	margin: 0 20px 20px;
}

.calendar-sidebar {
	width: 240px;
	flex-shrink: 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 16px;
	align-self: flex-start;
	position: sticky;
	top: 20px;
}

.calendar-sidebar-title {
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #555;
	margin-bottom: 10px;
}

.calendar-list-item {
	display: flex;
	align-items: center;
	padding: 6px 4px;
	border-radius: 6px;
	transition: background 0.15s;
	flex-wrap: wrap;
	position: relative;
}

.calendar-list-item:hover {
	background: #f8f9fa;
}

.calendar-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0;
	font-size: 0.9rem;
	color: #333;
	flex: 1;
	min-width: 0;
}

.calendar-toggle input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.calendar-color-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.calendar-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.calendar-item-actions {
	display: flex;
	gap: 2px;
	opacity: 0;
	transition: opacity 0.15s;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	background: #f8f9fa;
	border-radius: 4px;
	padding: 0 2px;
	z-index: 1;
}

.calendar-list-item:hover .calendar-item-actions {
	opacity: 1;
}

.calendar-action-btn {
	background: none;
	border: none;
	padding: 2px 6px;
	cursor: pointer;
	color: #888;
	font-size: 0.8rem;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.calendar-action-btn:hover {
	color: #333;
	background: #e9ecef;
}

.calendar-main {
	flex: 1;
	min-width: 0;
}

.feed-url-item .calendar-color-dot {
	margin-right: 4px;
}

@media (max-width: 768px) {
	.calendar-layout {
		flex-direction: column;
		margin: 0 10px 20px;
	}
	.calendar-sidebar {
		width: 100%;
		position: static;
	}
}

.calendar-container {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 20px;
}

.calendar-container .fc {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calendar-container .fc .fc-toolbar-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
}

.calendar-container .fc .fc-button {
	background: linear-gradient(135deg, #00bfff, #0099cc);
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 500;
	font-size: 0.85rem;
	box-shadow: 0 2px 6px rgba(0, 191, 255, 0.3);
	transition: all 0.2s;
}

.calendar-container .fc .fc-button:hover {
	background: linear-gradient(135deg, #0099cc, #007aa3);
	transform: translateY(-1px);
}

.calendar-container .fc .fc-button-active {
	background: linear-gradient(135deg, #0099cc, #007aa3) !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
	transform: none;
}

.calendar-container .fc .fc-button:disabled {
	opacity: 0.5;
}

.calendar-container .fc .fc-daygrid-day:hover {
	background-color: #f8f9fa;
	cursor: pointer;
}

.calendar-container .fc .fc-event {
	border-radius: 6px;
	border: none;
	padding: 2px 6px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: opacity 0.15s;
}

.calendar-container .fc .fc-event:hover {
	opacity: 0.85;
}

.calendar-container .fc .meal-event,
.calendar-container .fc .meal-event:hover {
	cursor: pointer;
	opacity: 1;
}

.calendar-container .fc .fc-day-today {
	background-color: rgba(0, 191, 255, 0.06) !important;
}

.calendar-container .fc .fc-col-header-cell {
	padding: 8px 0;
	font-weight: 600;
	font-size: 0.85rem;
	color: #555;
}

.calendar-container .fc .fc-daygrid-day-number {
	padding: 6px 10px;
	font-size: 0.9rem;
	color: #333;
}

/* Calendar member filter */
.calendar-member-filter {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.member-filter-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	color: #555;
	transition: all 0.15s;
}

.member-filter-item:hover {
	background: #f0f0f0;
}

.member-filter-item.active {
	background: rgba(0, 191, 255, 0.1);
	color: #0099cc;
	font-weight: 600;
}

.member-filter-item input[type="radio"] {
	display: none;
}

.calendar-member-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Subscriber badges */
.calendar-subscriber-badges {
	display: flex;
	gap: 3px;
	margin-top: 2px;
	flex-wrap: wrap;
}

.subscriber-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e9ecef;
	color: #555;
	font-size: 0.6rem;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1;
}

/* Calendar feed sync indicator */
.calendar-feed-info {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 2px 4px 0;
	font-size: 0.75rem;
}

.feed-badge {
	background: #e8f4fd;
	color: #0077b6;
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 0.7rem;
	white-space: nowrap;
}

.sync-feed-btn {
	font-size: 1rem;
	cursor: pointer;
	padding: 0 4px;
}

.sync-feed-btn:disabled {
	opacity: 0.5;
	cursor: wait;
}

.last-synced-text {
	font-size: 0.7rem;
	white-space: nowrap;
}

/* Calendar member checkboxes in modal */
.calendar-member-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 0;
}

.calendar-header { background: linear-gradient(135deg, #00bfff, #0099cc); }

/* Calendar/Family view toggle */
.calendar-view-toggle {
	display: flex;
	justify-content: flex-end;
}

.calendar-view-toggle .btn-outline-primary:not(.active) {
	background-color: #e9ecef;
	border-color: #e9ecef;
	color: #555;
}

.calendar-view-toggle .btn-outline-primary:not(.active):hover {
	background-color: #dee2e6;
	border-color: #dee2e6;
	color: #333;
}

/* ===== Family View ===== */
.family-view-container {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 20px;
}

.family-view-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.family-view-range {
	font-weight: 600;
	font-size: 1.1rem;
	color: #333;
	min-width: 180px;
	text-align: center;
}

.family-view-grid {
	overflow-x: auto;
}

.fv-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.fv-table th,
.fv-table td {
	border: 1px solid #e9ecef;
	padding: 0;
	vertical-align: top;
}

.fv-table th {
	background: #f8f9fa;
	padding: 8px 6px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #555;
	text-align: center;
	position: sticky;
	top: 0;
	z-index: 1;
}

.fv-table th.fv-member-col {
	width: 130px;
	min-width: 130px;
	text-align: left;
	position: sticky;
	left: 0;
	z-index: 2;
	background: #f8f9fa;
}

.fv-table td.fv-member-cell {
	font-weight: 600;
	font-size: 0.85rem;
	color: #333;
	padding: 8px;
	background: #fafbfc;
	position: sticky;
	left: 0;
	z-index: 1;
	white-space: nowrap;
}

.fv-table td.fv-day-cell {
	min-height: 50px;
	height: 50px;
	padding: 3px;
}

.fv-table td.fv-day-cell.fv-today {
	background-color: rgba(0, 191, 255, 0.06);
}

.fv-event {
	display: block;
	padding: 2px 6px;
	margin-bottom: 2px;
	border-radius: 4px;
	font-size: 0.75rem;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	line-height: 1.4;
}

.fv-event:hover {
	opacity: 0.85;
}

.fv-date-header {
	font-size: 0.75rem;
	line-height: 1.2;
}

.fv-date-header .fv-day-name {
	display: block;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.65rem;
	color: #888;
}

.fv-date-header .fv-day-num {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
}

.fv-date-header.fv-today-header .fv-day-num {
	color: #0099cc;
}

.fv-member-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e9ecef;
	color: #555;
	font-size: 0.7rem;
	font-weight: 700;
	margin-right: 6px;
	flex-shrink: 0;
}

.fv-member-cell {
	display: flex;
	align-items: center;
}

/* ===== FOOTER ===== */
footer {
	padding: 20px 0;
	text-align: center;
	color: #888;
	font-size: 0.85rem;
	margin-top: auto;
}

footer a,
footer a:hover,
footer a:visited {
	color: #888;
	text-decoration: none;
}

footer a:hover {
	color: #555;
	text-decoration: underline;
}

/* ===== MODALS ===== */
.modal-content {
	border: none;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
	border-bottom: 1px solid #f0f0f0;
	padding: 20px 24px;
}

.modal-body {
	padding: 20px 24px;
}

.modal-footer {
	border-top: 1px solid #f0f0f0;
	padding: 16px 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.login-header, h1 {
		font-size: 1.2rem;
		padding: 16px 20px;
	}

	.dashboard-grid {
		grid-template-columns: 1fr;
		padding: 10px;
		gap: 15px;
	}

	.dashboard-card.assistant-module {
		grid-column: span 1;
	}

	.site-name-logo-text {
		font-size: 22px;
	}

	.site-header-row {
		flex-wrap: nowrap;
	}

	.tab-content {
		padding: 15px;
	}

	.login-module {
		padding: 20px;
	}

	.tab-content form {
		max-width: 100%;
	}

	.form-btn {
		width: 100%;
		text-align: center;
	}
}

/* ===== DASHBOARD MINI CALENDAR ===== */
.dash-cal-wrapper {
	padding: 0 12px 12px;
}

.dash-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 4px;
}

.dash-cal-nav-btn {
	background: none;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.dash-cal-nav-btn:hover {
	background: #f0f2f5;
}

.dash-cal-month {
	font-weight: 600;
	font-size: 0.85rem;
	color: #333;
}

.dash-cal-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.dash-cal-table th {
	font-size: 0.65rem;
	font-weight: 600;
	color: #999;
	text-transform: uppercase;
	text-align: center;
	padding: 4px 0;
}

.dash-cal-table td {
	text-align: center;
	padding: 2px;
	font-size: 0.75rem;
	color: #555;
	position: relative;
	vertical-align: top;
	height: 32px;
}

.dash-cal-day {
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.15s;
}

.dash-cal-day:hover {
	background: #f0f2f5;
}

.dash-cal-today {
	font-weight: 700;
	color: #fff !important;
	background: #007BFF;
	border-radius: 50%;
}

.dash-cal-today:hover {
	background: #0069d9;
}

.dash-cal-selected {
	outline: 2px solid #007BFF;
	outline-offset: -2px;
	border-radius: 6px;
}

.dash-cal-today.dash-cal-selected {
	outline-color: #0056b3;
}

.dash-cal-dots {
	display: flex;
	justify-content: center;
	gap: 2px;
	margin-top: 1px;
}

.dash-cal-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	display: inline-block;
}

.dash-cal-day-detail {
	margin-top: 8px;
	border-top: 1px solid #eee;
	padding-top: 8px;
}

.dash-cal-day-detail-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.dash-cal-event-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 5px 0;
	font-size: 0.78rem;
	border-bottom: 1px solid #f5f5f5;
}

.dash-cal-event-item:last-child {
	border-bottom: none;
}

.dash-cal-event-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 5px;
}

.dash-cal-event-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dash-cal-event-title {
	color: #333;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dash-cal-event-time {
	color: #888;
	font-size: 0.7rem;
}

.dash-cal-no-events {
	font-size: 0.78rem;
	color: #aaa;
	font-style: italic;
}

/* ===== VOICE CONTROLS ===== */

/* Nav mic button in header */
.voice-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}

.voice-nav-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.voice-nav-btn.voice-listening {
	background: #dc3545;
	border-color: #dc3545;
	color: #fff;
	animation: voice-pulse 1.5s infinite;
}

/* Dictation mic buttons next to inputs */
.voice-input-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.voice-input-wrapper input[type="text"],
.voice-input-wrapper textarea {
	flex: 1;
	min-width: 0;
}

.voice-dictate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	border: 1px solid #d0d5dd;
	background: #f0f2f5;
	color: #666;
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 4px;
	transition: background 0.2s, color 0.2s;
}

.voice-dictate-btn:hover {
	background: #e0e2e5;
	color: #333;
}

.voice-dictate-btn.voice-listening {
	background: #dc3545;
	border-color: #dc3545;
	color: #fff;
	animation: voice-pulse 1.5s infinite;
}

/* Pulse animation */
@keyframes voice-pulse {
	0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
	100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Status bar */
#voice-status {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 8px 20px;
	font-size: 0.85rem;
	border-radius: 20px;
	z-index: 9999;
	transition: opacity 0.3s;
	pointer-events: none;
}

/* Form-level voice fill button */
.voice-form-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid #d0d5dd;
	background: #f8f9fa;
	color: #555;
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	margin-bottom: 12px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.voice-form-btn:hover {
	background: #e9ecef;
	color: #333;
}

.voice-form-btn.voice-listening {
	background: #dc3545;
	border-color: #dc3545;
	color: #fff;
	animation: voice-pulse 1.5s infinite;
}

/* Active dictation field highlight */
.voice-active-field {
	outline: 2px solid #dc3545 !important;
	outline-offset: -1px;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Hide voice UI when browser doesn't support it */
.voice-unsupported .voice-nav-btn,
.voice-unsupported .voice-dictate-btn {
	display: none;
}

/* ===== FACE RECOGNITION ===== */

/* Header camera button */
.face-detect-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}

.face-detect-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.face-detect-btn.detecting {
	background: #28a745;
	border-color: #28a745;
	color: #fff;
}

.face-detect-btn.face-checking {
	background: #ffc107;
	border-color: #ffc107;
	color: #000;
	animation: face-check-pulse 0.6s infinite;
}

@keyframes face-check-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); }
	50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

.face-detect-btn.face-snoozed {
	background: rgba(255, 193, 7, 0.2);
	border-color: rgba(255, 193, 7, 0.4);
	color: #ffc107;
	opacity: 0.7;
}

/* Face detection preview thumbnail */
.face-preview {
	position: fixed;
	bottom: 16px;
	right: 16px;
	width: 120px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
	z-index: 9998;
	background: #000;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.face-preview:hover {
	opacity: 1;
}

.face-preview video {
	width: 100%;
	display: block;
	transform: scaleX(-1);
}

.face-preview-status {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.6);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.65rem;
	text-align: center;
	padding: 2px 4px;
}

.face-preview-status.matched {
	background: rgba(40, 167, 69, 0.8);
	color: #fff;
}

.face-preview-status.no-face {
	background: rgba(220, 53, 69, 0.6);
	color: #fff;
}

.face-detect-overlay video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

.face-detect-close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #fff;
	font-size: 1.2rem;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s;
}

.face-detect-close:hover {
	background: rgba(0, 0, 0, 0.7);
}

/* Switch confirmation toast */
.face-switch-toast {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 18px 28px;
	border-radius: 14px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	font-size: 1.1rem;
	font-weight: 500;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
	animation: face-toast-in 0.3s ease;
}

@keyframes face-toast-in {
	from { transform: translateX(-50%) translateY(20px); opacity: 0; }
	to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.face-switch-toast .btn {
	white-space: nowrap;
	padding: 6px 20px;
	font-size: 0.95rem;
}

.face-switch-toast .face-switch-buttons {
	display: flex;
	gap: 10px;
}

.face-switch-pin-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.face-switch-pin-row input {
	width: 140px;
	letter-spacing: 4px;
	text-align: center;
	font-size: 1.1rem;
	border-radius: 8px;
}

.face-switch-pin-error {
	font-size: 0.78rem;
	color: #ff6b6b;
	min-height: 1em;
}

.switch-pin-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 100px;
}

.switch-pin-modal-content {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	width: 300px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.switch-pin-modal-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 14px;
	color: #333;
}

.switch-pin-modal-content input {
	width: 160px;
	margin: 0 auto 8px;
	letter-spacing: 4px;
	text-align: center;
	font-size: 1.2rem;
}

.switch-pin-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 14px;
}

.face-switch-snooze {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.face-switch-snooze-label {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	white-space: nowrap;
}

.face-snooze-btn {
	font-size: 0.72rem;
	padding: 2px 8px;
}

/* ===== FACE REGISTRATION (profile page) ===== */
.face-reg-section {
	margin-top: 30px;
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.face-reg-section h3 {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #333;
	margin-bottom: 8px;
}

.face-reg-desc {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 15px;
}

.face-reg-toggle {
	margin-bottom: 15px;
	padding-left: 2.5em;
}

.face-reg-toggle .form-check-label {
	font-size: 0.85rem;
	color: #555;
}

.face-reg-pin-section {
	margin-bottom: 15px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.face-reg-pin-section h4 {
	font-size: 0.88rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 4px;
}

#facePinSet {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.face-pin-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.face-pin-input-row input {
	width: 140px;
	letter-spacing: 4px;
	text-align: center;
	font-size: 1.1rem;
}

.face-reg-registered {
	display: flex;
	align-items: center;
	gap: 12px;
}

.face-reg-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: #d4edda;
	color: #155724;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 500;
}

#faceRegCapture {
	position: fixed;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1060;
	background: rgba(0, 0, 0, 0.85);
	padding: 20px;
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#faceRegCapture .face-reg-hint,
#faceRegCapture .face-reg-message {
	color: #ccc;
}

#faceRegCapture .face-reg-message.error {
	color: #ff6b6b;
}

.face-reg-camera {
	position: relative;
	width: 320px;
	max-width: 100%;
	height: 240px;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	margin-bottom: 10px;
}

.face-reg-camera video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

.face-reg-overlay {
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-radius: 10px;
	transition: border-color 0.2s;
	pointer-events: none;
}

.face-reg-overlay.face-detected {
	border-color: #28a745;
}

.face-reg-hint {
	font-size: 0.82rem;
	color: #888;
	margin-bottom: 10px;
}

.face-reg-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.face-reg-message {
	font-size: 0.85rem;
	color: #555;
	min-height: 1.2em;
}

.face-reg-message.error {
	color: #dc3545;
}

/* Rotation sortable list */
.rotation-sortable .rotation-sortable-item {
	padding: 0.4rem 0.75rem;
	border: 1px solid #dee2e6;
	background: #fff;
	user-select: none;
}
.rotation-sortable .rotation-sortable-item:hover {
	background: #f8f9fa;
}
.rotation-drag-handle {
	color: #999;
	font-size: 1.1rem;
}
