/**
 * A7la7ayat Home Organizer (منظّم بيتي) - Stylesheet
 * Scoped styles with custom CSS variables matching A7la7ayat branding (#ED217C, #8CC63F)
 * Modern RTL layout, interactive cards, micro-animations, tabs, and A4 print support.
 *
 * @package A7la7ayat_Home_Organizer
 */

.a7who-app {
	--a7who-primary: #ED217C;
	--a7who-primary-hover: #D81B60;
	--a7who-primary-light: #FFF0F6;
	--a7who-primary-gradient: linear-gradient(135deg, #ED217C 0%, #D81B60 100%);

	--a7who-green: #8CC63F;
	--a7who-green-hover: #7AB42F;
	--a7who-green-light: #F4FBEA;
	--a7who-green-gradient: linear-gradient(135deg, #8CC63F 0%, #78B031 100%);

	--a7who-amber: #F59E0B;
	--a7who-amber-light: #FEF3C7;
	--a7who-blue: #3B82F6;
	--a7who-blue-light: #EFF6FF;

	--a7who-bg: #FFFFFF;
	--a7who-surface: #FAFAFA;
	--a7who-surface-hover: #F1F5F9;
	--a7who-text: #1E293B;
	--a7who-text-secondary: #475569;
	--a7who-muted: #94A3B8;
	--a7who-border: #E2E8F0;
	--a7who-border-focus: #ED217C;

	--a7who-radius: 18px;
	--a7who-radius-sm: 10px;
	--a7who-radius-pill: 9999px;

	--a7who-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--a7who-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
	--a7who-shadow-hover: 0 16px 36px -4px rgba(237, 33, 124, 0.14), 0 6px 16px -2px rgba(0, 0, 0, 0.04);
	--a7who-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans Arabic", "Cairo", sans-serif;

	font-family: var(--a7who-font);
	color: var(--a7who-text);
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	line-height: 1.6;
}

.a7who-app *,
.a7who-app *::before,
.a7who-app *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Header & Branding
   ========================================================================== */
.a7who-header {
	text-align: center;
	margin-bottom: 35px;
}

.a7who-brand-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--a7who-primary-light);
	color: var(--a7who-primary);
	font-size: 0.9rem;
	font-weight: 700;
	padding: 6px 18px;
	border-radius: var(--a7who-radius-pill);
	margin-bottom: 12px;
	border: 1px solid rgba(237, 33, 124, 0.18);
}

.a7who-brand-dot {
	width: 8px;
	height: 8px;
	background: var(--a7who-primary);
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.25);
	animation: a7who-pulse 2s infinite;
}

@keyframes a7who-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(237, 33, 124, 0.4); }
	70%  { box-shadow: 0 0 0 6px rgba(237, 33, 124, 0); }
	100% { box-shadow: 0 0 0 0 rgba(237, 33, 124, 0); }
}

.a7who-title {
	color: var(--a7who-primary);
	background: var(--a7who-primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: clamp(2.2rem, 4.5vw, 2.9rem);
	font-weight: 900;
	margin: 0 0 6px 0;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.a7who-tagline {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--a7who-text);
	margin: 0 0 10px 0;
}

.a7who-subtitle {
	color: var(--a7who-text-secondary);
	font-size: 1.05rem;
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.7;
}

/* ==========================================================================
   Cards & Section Structure
   ========================================================================== */
.a7who-card {
	background: var(--a7who-bg);
	border: 1px solid var(--a7who-border);
	border-radius: var(--a7who-radius);
	padding: 30px;
	margin-bottom: 32px;
	box-shadow: var(--a7who-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.a7who-card-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 26px;
}

.a7who-icon-bubble {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, #FFF0F6 0%, #FCE7F3 100%);
	color: var(--a7who-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.45rem;
	border: 1px solid rgba(237, 33, 124, 0.15);
}

.a7who-icon-bubble-large {
	width: 56px;
	height: 56px;
	min-width: 56px;
	font-size: 1.75rem;
}

.a7who-section-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--a7who-text);
	margin: 0 0 4px 0;
}

.a7who-section-desc {
	font-size: 0.95rem;
	color: var(--a7who-text-secondary);
	margin: 0;
}

/* ==========================================================================
   Form Fields & Controls
   ========================================================================== */
.a7who-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.a7who-field-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.a7who-form-row {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.a7who-col {
	flex: 1 1 240px;
}

.a7who-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--a7who-text);
}

.a7who-label-icon {
	font-size: 1.15rem;
}

.a7who-label-hint {
	font-size: 0.85rem;
	font-weight: normal;
	color: var(--a7who-muted);
}

.a7who-required-mark {
	color: var(--a7who-primary);
}

/* Pill Radio Selector */
.a7who-pill-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 10px;
}

.a7who-pill-opt {
	position: relative;
	cursor: pointer;
}

.a7who-pill-opt input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.a7who-pill-text {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-sm);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--a7who-text-secondary);
	text-align: center;
	transition: all 0.2s ease;
}

.a7who-pill-opt:hover .a7who-pill-text {
	border-color: rgba(237, 33, 124, 0.4);
	background: var(--a7who-primary-light);
	color: var(--a7who-primary);
}

.a7who-pill-opt input[type="radio"]:checked + .a7who-pill-text {
	background: var(--a7who-primary-light);
	border-color: var(--a7who-primary);
	color: var(--a7who-primary);
	box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.15);
}

/* Checkbox Grid (Rooms) */
.a7who-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

.a7who-check-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-sm);
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	user-select: none;
}

.a7who-check-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.a7who-check-icon {
	font-size: 1.25rem;
}

.a7who-check-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--a7who-text-secondary);
}

.a7who-check-card:hover {
	border-color: rgba(237, 33, 124, 0.35);
	background: #FFFBFD;
}

.a7who-check-card.a7who-selected,
.a7who-check-card input[type="checkbox"]:checked ~ .a7who-check-title {
	color: var(--a7who-text);
	font-weight: 700;
}

.a7who-check-card input[type="checkbox"]:checked + .a7who-check-icon ~ .a7who-check-title,
.a7who-check-card.a7who-selected {
	background: var(--a7who-primary-light);
	border-color: var(--a7who-primary);
}

/* Toggle Yes/No Buttons */
.a7who-toggle-group {
	display: flex;
	gap: 10px;
}

.a7who-toggle-btn {
	flex: 1;
	position: relative;
	cursor: pointer;
}

.a7who-toggle-btn input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.a7who-toggle-text {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-sm);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--a7who-text-secondary);
	transition: all 0.2s ease;
}

.a7who-toggle-btn input[type="radio"]:checked + .a7who-toggle-text {
	background: var(--a7who-green-light);
	border-color: var(--a7who-green);
	color: #2E680E;
	box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

/* Available Time Cards */
.a7who-time-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.a7who-time-card {
	position: relative;
	cursor: pointer;
	border: 1.5px solid var(--a7who-border);
	background: var(--a7who-surface);
	border-radius: var(--a7who-radius-sm);
	padding: 16px;
	transition: all 0.25s ease;
}

.a7who-time-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.a7who-time-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.a7who-time-badge {
	align-self: flex-start;
	font-size: 0.75rem;
	font-weight: 800;
	background: #EEF2F6;
	color: var(--a7who-text-secondary);
	padding: 3px 10px;
	border-radius: var(--a7who-radius-pill);
}

.a7who-badge-recommended {
	background: var(--a7who-green-light);
	color: #2E680E;
}

.a7who-time-title {
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--a7who-text);
}

.a7who-time-desc {
	font-size: 0.84rem;
	color: var(--a7who-text-secondary);
	margin: 0;
	line-height: 1.5;
}

.a7who-time-card:hover {
	border-color: rgba(237, 33, 124, 0.4);
	background: #FFFDFE;
}

.a7who-time-card.a7who-selected,
.a7who-time-card input[type="radio"]:checked ~ .a7who-time-content {
	/* handled by JS class toggle for robustness */
}

.a7who-time-card input[type="radio"]:checked + .a7who-time-content,
.a7who-time-card.a7who-selected {
	background: var(--a7who-primary-light);
	border-color: var(--a7who-primary);
	box-shadow: 0 0 0 3px rgba(237, 33, 124, 0.15);
}

/* Focus Chips Grid */
.a7who-chips-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.a7who-chip-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-pill);
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
	position: relative;
}

.a7who-chip-item input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.a7who-chip-text {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--a7who-text-secondary);
}

.a7who-chip-item:hover {
	border-color: rgba(237, 33, 124, 0.35);
}

.a7who-chip-item.a7who-chip-active,
.a7who-chip-item input[type="checkbox"]:checked ~ .a7who-chip-text {
	color: var(--a7who-primary);
}

.a7who-chip-item.a7who-chip-active {
	background: var(--a7who-primary-light);
	border-color: var(--a7who-primary);
}

/* Primary Submit CTA */
.a7who-actions {
	margin-top: 10px;
	text-align: center;
}

.a7who-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 36px;
	font-size: 1.15rem;
	font-weight: 800;
	border-radius: var(--a7who-radius-pill);
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(237, 33, 124, 0.3);
}

.a7who-btn-primary {
	background: var(--a7who-primary-gradient);
	color: #FFFFFF !important;
}

.a7who-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(237, 33, 124, 0.4);
}

.a7who-btn-primary:active {
	transform: translateY(0);
}

.a7who-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none !important;
}

.a7who-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	border-top-color: #FFFFFF;
	animation: a7who-spin 0.8s linear infinite;
}

@keyframes a7who-spin {
	to { transform: rotate(360deg); }
}

.a7who-btn.a7who-loading .a7who-spinner {
	display: inline-block;
}

.a7who-btn.a7who-loading .a7who-btn-icon {
	display: none;
}

/* Feedback Messages */
.a7who-feedback {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: var(--a7who-radius-sm);
	font-size: 0.95rem;
	font-weight: 600;
	display: none;
}

.a7who-feedback.a7who-visible {
	display: block;
}

.a7who-feedback.a7who-danger,
.a7who-feedback.a7who-error {
	background: #FEE2E2;
	color: #991B1B;
	border: 1px solid #FCA5A5;
}

.a7who-feedback.a7who-success {
	background: var(--a7who-green-light);
	color: #166534;
	border: 1px solid #86EFAC;
}

/* ==========================================================================
   Plan Display Section & Live Progress
   ========================================================================== */
.a7who-plan-section {
	padding: 32px;
}

.a7who-plan-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-bottom: 24px;
	border-bottom: 1.5px solid var(--a7who-border);
	margin-bottom: 24px;
}

.a7who-plan-hero-main {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 300px;
}

.a7who-plan-title {
	font-size: 1.6rem;
	font-weight: 900;
	color: var(--a7who-text);
	margin: 0 0 4px 0;
}

.a7who-plan-desc {
	font-size: 0.95rem;
	color: var(--a7who-text-secondary);
	margin: 0;
}

/* Progress Tracker Card */
.a7who-progress-card {
	background: linear-gradient(135deg, #FFF7FA 0%, #FAFCF6 100%);
	border: 1.5px solid rgba(237, 33, 124, 0.2);
	border-radius: var(--a7who-radius-sm);
	padding: 16px 20px;
	min-width: 260px;
	flex: 0 1 320px;
}

.a7who-progress-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.a7who-progress-title {
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--a7who-text);
}

.a7who-progress-badge {
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--a7who-primary);
}

.a7who-progress-track {
	height: 10px;
	background: #E2E8F0;
	border-radius: var(--a7who-radius-pill);
	overflow: hidden;
	margin-bottom: 6px;
}

.a7who-progress-fill {
	height: 100%;
	background: var(--a7who-green-gradient);
	border-radius: var(--a7who-radius-pill);
	transition: width 0.35s ease;
}

.a7who-progress-subtext {
	font-size: 0.78rem;
	color: var(--a7who-text-secondary);
	margin: 0;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.a7who-tabs-nav {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid var(--a7who-border);
	padding-bottom: 12px;
	margin-bottom: 24px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.a7who-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--a7who-surface);
	border: 1px solid var(--a7who-border);
	border-radius: var(--a7who-radius-pill);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--a7who-text-secondary);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.a7who-tab-btn:hover {
	background: var(--a7who-primary-light);
	color: var(--a7who-primary);
	border-color: rgba(237, 33, 124, 0.3);
}

.a7who-tab-btn.a7who-tab-active {
	background: var(--a7who-primary);
	color: #FFFFFF !important;
	border-color: var(--a7who-primary);
	box-shadow: 0 4px 12px rgba(237, 33, 124, 0.25);
}

.a7who-tab-btn.a7who-tab-highlight:not(.a7who-tab-active) {
	border-color: var(--a7who-green);
	color: #2E680E;
	background: var(--a7who-green-light);
}

.a7who-tab-badge {
	font-size: 0.75rem;
	font-weight: 800;
	background: rgba(0, 0, 0, 0.08);
	padding: 2px 7px;
	border-radius: var(--a7who-radius-pill);
}

.a7who-tab-btn.a7who-tab-active .a7who-tab-badge {
	background: rgba(255, 255, 255, 0.25);
	color: #FFFFFF;
}

/* Tab Panes */
.a7who-tab-pane {
	display: none;
	animation: a7who-fadeIn 0.25s ease;
}

.a7who-tab-pane.a7who-pane-active {
	display: block;
}

@keyframes a7who-fadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.a7who-pane-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.a7who-pane-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--a7who-text);
	margin: 0 0 4px 0;
}

.a7who-pane-desc {
	font-size: 0.9rem;
	color: var(--a7who-text-secondary);
	margin: 0;
}

.a7who-btn-add-task {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--a7who-primary-light);
	color: var(--a7who-primary);
	border: 1.5px dashed rgba(237, 33, 124, 0.4);
	border-radius: var(--a7who-radius-pill);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.a7who-btn-add-task:hover {
	background: var(--a7who-primary);
	color: #FFFFFF;
	border-style: solid;
}

.a7who-btn-pill-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--a7who-green-light);
	color: #2E680E;
	border: 1px solid var(--a7who-green);
	border-radius: var(--a7who-radius-pill);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.a7who-btn-pill-action:hover {
	background: var(--a7who-green);
	color: #FFFFFF;
}

.a7who-pane-footer {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1.5px dashed var(--a7who-border);
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.a7who-btn-print-section {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-pill);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--a7who-text);
	cursor: pointer;
	transition: all 0.2s ease;
}

.a7who-btn-print-section:hover {
	background: var(--a7who-primary-light);
	border-color: var(--a7who-primary);
	color: var(--a7who-primary);
	transform: translateY(-1px);
	box-shadow: var(--a7who-shadow-sm);
}

.a7who-btn-print-section:active {
	transform: translateY(0);
}

/* ==========================================================================
   Tasks List & Checkboxes
   ========================================================================== */
.a7who-tasks-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.a7who-task-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-sm);
	transition: all 0.2s ease;
}

.a7who-task-item:hover {
	border-color: rgba(237, 33, 124, 0.35);
	background: #FFFFFF;
	box-shadow: var(--a7who-shadow-sm);
}

.a7who-task-item.a7who-completed {
	background: #F8FAFC;
	border-color: #E2E8F0;
	opacity: 0.75;
}

.a7who-task-chk-label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	cursor: pointer;
	user-select: none;
	min-width: 0;
}

.a7who-task-chk-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.a7who-checkbox-box {
	width: 22px;
	height: 22px;
	min-width: 22px;
	border: 2px solid var(--a7who-muted);
	border-radius: 6px;
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.a7who-task-chk-input:checked + .a7who-checkbox-box {
	background: var(--a7who-green);
	border-color: var(--a7who-green);
}

.a7who-task-chk-input:checked + .a7who-checkbox-box::after {
	content: "✓";
	color: #FFFFFF;
	font-weight: 900;
	font-size: 0.95rem;
}

.a7who-task-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.a7who-task-title {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--a7who-text);
	word-break: break-word;
	transition: all 0.2s ease;
}

.a7who-task-item.a7who-completed .a7who-task-title {
	text-decoration: line-through;
	color: var(--a7who-muted);
}

.a7who-task-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	color: var(--a7who-text-secondary);
}

.a7who-task-tag {
	background: #EEF2F6;
	padding: 2px 8px;
	border-radius: var(--a7who-radius-pill);
	font-weight: 600;
}

.a7who-task-time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #64748B;
}

.a7who-priority-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.a7who-priority-high { background: #EF4444; }
.a7who-priority-medium { background: #F59E0B; }
.a7who-priority-low { background: #94A3B8; }

.a7who-task-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.a7who-btn-icon-action {
	background: transparent;
	border: none;
	color: var(--a7who-muted);
	font-size: 0.95rem;
	padding: 6px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.a7who-btn-icon-action:hover {
	background: #F1F5F9;
	color: var(--a7who-text);
}

.a7who-btn-icon-delete:hover {
	background: #FEE2E2;
	color: #EF4444;
}

/* ==========================================================================
   Decluttering Challenge Section
   ========================================================================== */
.a7who-declutter-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.a7who-declutter-card {
	background: #FFFFFF;
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius);
	padding: 22px;
	box-shadow: var(--a7who-shadow-sm);
}

.a7who-declutter-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid var(--a7who-border);
}

.a7who-declutter-tag {
	font-size: 0.78rem;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: var(--a7who-radius-pill);
	background: var(--a7who-primary-light);
	color: var(--a7who-primary);
}

.a7who-declutter-tag-next {
	background: var(--a7who-green-light);
	color: #2E680E;
}

.a7who-declutter-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--a7who-text);
	margin: 0;
}

/* ==========================================================================
   Weekly Schedule 7-Day Grid
   ========================================================================== */
.a7who-schedule-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.a7who-day-card {
	background: #FFFFFF;
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-sm);
	padding: 16px;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
}

.a7who-day-card:hover {
	border-color: rgba(237, 33, 124, 0.4);
	box-shadow: var(--a7who-shadow-sm);
}

.a7who-day-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1.5px solid var(--a7who-border);
}

.a7who-day-name {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--a7who-primary);
	margin: 0;
}

.a7who-day-focus {
	font-size: 0.78rem;
	font-weight: 700;
	background: #F1F5F9;
	color: var(--a7who-text-secondary);
	padding: 2px 8px;
	border-radius: var(--a7who-radius-pill);
}

.a7who-day-tasks {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.a7who-day-task-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--a7who-text);
}

/* ==========================================================================
   Smart Tips Grid
   ========================================================================== */
.a7who-tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.a7who-tip-card {
	background: linear-gradient(135deg, #FFF9EB 0%, #FEF3C7 100%);
	border: 1.5px solid rgba(245, 158, 11, 0.3);
	border-radius: var(--a7who-radius-sm);
	padding: 18px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.a7who-tip-icon {
	font-size: 1.5rem;
}

.a7who-tip-text {
	font-size: 0.92rem;
	font-weight: 600;
	color: #78350F;
	margin: 0;
	line-height: 1.6;
}

/* ==========================================================================
   Toolbar Buttons
   ========================================================================== */
.a7who-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1.5px solid var(--a7who-border);
}

.a7who-btn-toolbar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-pill);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--a7who-text);
	cursor: pointer;
	transition: all 0.2s ease;
}

.a7who-btn-toolbar:hover {
	background: #FFFFFF;
	border-color: rgba(237, 33, 124, 0.4);
	color: var(--a7who-primary);
}

.a7who-btn-toolbar-primary {
	background: var(--a7who-primary-gradient);
	color: #FFFFFF !important;
	border: none;
	box-shadow: 0 4px 12px rgba(237, 33, 124, 0.25);
}

.a7who-btn-toolbar-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(237, 33, 124, 0.35);
}

.a7who-btn-toolbar-danger:hover {
	background: #FEE2E2;
	border-color: #EF4444;
	color: #DC2626;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.a7who-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	direction: rtl;
}

.a7who-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
}

.a7who-modal-content {
	position: relative;
	background: #FFFFFF;
	border-radius: var(--a7who-radius);
	width: 90%;
	max-width: 500px;
	padding: 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.a7who-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid var(--a7who-border);
}

.a7who-modal-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--a7who-text);
	margin: 0;
}

.a7who-modal-close {
	background: transparent;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	color: var(--a7who-muted);
}

.a7who-modal-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.a7who-input,
.a7who-select {
	width: 100%;
	padding: 12px 14px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--a7who-text);
	outline: none;
	transition: border-color 0.2s ease;
}

.a7who-input:focus,
.a7who-select:focus {
	border-color: var(--a7who-primary);
	background: #FFFFFF;
}

.a7who-modal-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 10px;
}

.a7who-btn-secondary {
	padding: 10px 18px;
	background: var(--a7who-surface);
	border: 1.5px solid var(--a7who-border);
	border-radius: var(--a7who-radius-pill);
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
}

.a7who-hidden {
	display: none !important;
}

/* ==========================================================================
   Print Stylesheet (A4 Portrait - RTL)
   ========================================================================== */
@media print {
	body * {
		visibility: hidden !important;
	}

	.a7who-app,
	.a7who-app * {
		visibility: visible !important;
	}

	.a7who-app {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		color: #000000 !important;
		background: #FFFFFF !important;
		box-shadow: none !important;
		border: none !important;
	}

	.a7who-header,
	.a7who-form-section,
	.a7who-plan-section,
	.a7who-toolbar,
	.a7who-actions,
	.a7who-feedback,
	.a7who-modal {
		display: none !important;
		visibility: hidden !important;
	}

	.a7who-printable-view {
		display: block !important;
		visibility: visible !important;
		padding: 10mm 15mm !important;
	}

	/* Print Header */
	.a7who-print-header {
		text-align: center;
		border-bottom: 2px solid #000000;
		padding-bottom: 12px;
		margin-bottom: 16px;
	}

	.a7who-print-brand {
		font-size: 1.1rem;
		font-weight: 800;
		color: #475569;
	}

	.a7who-print-title {
		font-size: 1.8rem;
		font-weight: 900;
		margin: 4px 0;
		color: #000000;
	}

	.a7who-print-week-line {
		font-size: 1rem;
		font-weight: 700;
		color: #334155;
		margin-top: 6px;
	}

	/* Print Sections */
	.a7who-print-section {
		margin-bottom: 16px;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
	}

	.a7who-print-section-title {
		font-size: 1.1rem;
		font-weight: 800;
		border-bottom: 1.5px solid #CBD5E1;
		padding-bottom: 4px;
		margin: 0 0 8px 0;
		color: #0F172A;
	}

	.a7who-print-tasks-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 6px 14px !important;
	}

	.a7who-print-task-item {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		font-size: 0.88rem !important;
		line-height: 1.4 !important;
		color: #000000 !important;
	}

	.a7who-print-box {
		width: 15px !important;
		height: 15px !important;
		min-width: 15px !important;
		border: 1.5px solid #000000 !important;
		border-radius: 3px !important;
		display: inline-block !important;
		background: #FFFFFF !important;
	}

	.a7who-print-box.checked {
		background: #000000 !important;
	}

	.a7who-print-footer {
		margin-top: 20px;
		text-align: center;
		font-size: 0.8rem;
		color: #64748B;
		border-top: 1px solid #E2E8F0;
		padding-top: 8px;
	}

	/* Weekly Schedule Print Grid */
	.a7who-print-week-table {
		width: 100% !important;
		border-collapse: collapse !important;
		margin-top: 8px !important;
		font-size: 0.84rem !important;
	}

	.a7who-print-week-table th,
	.a7who-print-week-table td {
		border: 1px solid #94A3B8 !important;
		padding: 6px 8px !important;
		text-align: right !important;
		vertical-align: top !important;
	}

	.a7who-print-week-table th {
		background: #F1F5F9 !important;
		font-weight: 800 !important;
	}
}
