/**
 * استایل‌های کادر اصلی ایزوله، سربرگ‌ها و فرم‌های سامانه همکاری خانه ما
 */

#wpadminbar { 
	display: none !important; 
}

html { 
	margin-top: 0 !important; 
}

/* ظرف ایزوله شده مرکزی */
.fms-app-viewport {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Vazirmatn", Tahoma, sans-serif;
	direction: rtl;
	box-sizing: border-box;
	width: 100%;
	max-width: 860px;
	margin: 20px auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
	overflow: hidden;
	min-height: 600px;
	display: flex;
	flex-direction: column;
}

/* هدر کادر */
.fms-app-header {
	background: #0f172a;
	color: #ffffff;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.fms-app-header .brand {
	font-size: 18px;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fms-app-header .user-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.fms-btn-switch {
	background: rgba(239, 68, 68, 0.2);
	color: #fca5a5;
	border: 1px solid rgba(239, 68, 68, 0.4);
	padding: 6px 12px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	transition: all 0.2s;
}

.fms-btn-switch:hover {
	background: #dc2626;
	color: #ffffff;
}

/* بدنه کادر */
.fms-app-body {
	flex: 1;
	padding: 20px;
	background: #f8fafc;
}

/* ناوبری سربرگ‌ها */
.fms-tabs-nav {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 20px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.fms-tab-btn {
	background: transparent;
	border: none;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: bold;
	color: #64748b;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
	white-space: nowrap;
	transition: all 0.2s;
}

.fms-tab-btn:hover {
	color: #1e293b;
	background: #f1f5f9;
}

.fms-tab-btn.active {
	color: #2563eb;
	border-bottom: 3px solid #2563eb;
	background: #eff6ff;
}

.fms-tab-pane {
	display: none;
}

.fms-tab-pane.active {
	display: block !important;
	animation: fmsFadeIn 0.25s ease-in-out;
}

@keyframes fmsFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* جعبه ورود درون‌کادر */
.fms-login-box {
	max-width: 360px;
	margin: 60px auto;
	background: #ffffff;
	padding: 30px;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fms-form-group {
	text-align: right;
	margin-bottom: 16px;
}

.fms-form-group label {
	display: block;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 6px;
	color: #475569;
}

.fms-input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s;
}

.fms-input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fms-btn-submit {
	width: 100%;
	background: #2563eb;
	color: #ffffff;
	border: none;
	padding: 11px;
	border-radius: 8px;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.fms-btn-submit:hover {
	background: #1d4ed8;
}

/* انیمیشن تشویقی ستاره‌ها (Gamification Micro-interaction) */
.fms-star-burst {
	position: fixed;
	pointer-events: none;
	font-size: 24px;
	z-index: 99999;
	animation: fmsStarFly 1.2s ease-out forwards;
}

@keyframes fmsStarFly {
	0% { opacity: 1; transform: scale(0.5) translate(0, 0); }
	100% { opacity: 0; transform: scale(1.8) translate(var(--tx), var(--ty)); }
}