@font-face {
	font-family: 'negar';
	src: url('/habases/fonts/negar.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: 'negar', 'Iranian Sans', Tahoma, sans-serif;
	background-image: url("/habases/Image/backaround/tvroompic.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	color: #141b2b;
	min-height: 100vh;
	padding: 16px;
    overflow-y: auto;
}

.card {
	width: 100%;
	margin: 0 auto;
	background: #141b2b;
	border-radius: 32px;
	padding: 24px 28px 32px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	border: 1px solid #2a3650;
	position: relative;
	direction: ltr;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	direction: ltr;
}

.header-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
	direction: ltr;
}

.header-left .user-badge {
	padding: 6px 14px;
	border-radius: 40px;
	font-size: 0.85rem;
	color: #b7c7e0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-left .user-badge .dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f1c40f;
	transition: background 0.3s;
}

.header-right {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 12px;
	flex-shrink: 0;
	order: 2; 
	margin-left: auto;
}

.add-menu {
	position: absolute;
	top: 90px;
	left: 50px;
	background: #1b243b;
	border: 1px solid #2a3652;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.5);
	z-index: 1000;
	overflow: hidden;
	min-width: 150px;
}

.add-menu-item {
	padding: 12px 20px;
	color: #e8edf5;
	cursor: pointer;
	font-size: 0.95rem;
	transition: background 0.2s;
	text-align: right;
}

.add-menu-item:hover { background: #2a3652; color: #fff; }
.add-menu-item:not(:last-child) { border-bottom: 1px solid #2a3652; }

/* --- بخش فضاها --- */
.space {
	padding-left: 10px;
	overflow: auto;
	white-space: nowrap;
	margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn_space {
    position: relative;
	overflow: hidden;
	box-shadow: 3px 8px 8px -10px rgba(0,0,0,0.5);
	background-color: #FaFaFa;
	border-radius: 30px;
	border: 1px solid #d1d5db;
	display: inline-flex;
    align-items: center;
	cursor: pointer;
	text-decoration: none;
	height: 40px;
	transition: 0.2s;
    padding-left: 5px;
}

.btn_space:hover, .btn_space.active {
	background-color: #00bcd4;
    border-color: #00bcd4;
}

.txt {
	overflow: hidden;
	font-size: 0.85rem;
	font-weight: bold;
	color: #000000;	
    margin: 8px 15px;
}

.btn_space:hover .txt { color: #ffffff; }

/* --- بخش اپراتورها (آیکون‌ها) --- */
.operator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 10px;
    margin-top: 20px;
    width: 100%;
}

.btn_operator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #1b243b;
    border: 1px solid #2a3652;
    border-radius: 16px;
    padding: 15px 10px;
    color: #e8edf5;
    width: 110px;
    height: 110px;
    transition: 0.2s;
}

.btn_operator:hover {
    background: #212d49;
    border-color: #4a6a9e;
}

/* مدال‌ها */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(20, 27, 43, 0.8);
	backdrop-filter: blur(4px);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal {
	background: #141b2b;
	border-radius: 28px;
	padding: 32px;
	max-width: 480px;
	width: 100%;
	border: 1px solid #2a3650;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
	animation: modalIn 0.3s ease;
}

@keyframes modalIn {
	from { transform: scale(0.9) translateY(20px); opacity: 0; }
	to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.modal-header h2 {
	font-size: 1.5rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.modal-close {
	background: none;
	border: none;
	color: #8a9bb5;
	font-size: 1.8rem;
	cursor: pointer;
	transition: 0.2s;
	padding: 0 8px;
}

.modal-close:hover { color: #e8edf5; transform: rotate(90deg); }

.modal .form-group { margin-bottom: 18px; }

.modal .form-group label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: #b0c3de;
	margin-bottom: 6px;
}

.modal .form-group .input-wrapper {
	position: relative;
	background: #0f1625;
	border-radius: 14px;
	border: 1px solid #28324b;
	transition: 0.3s;
	display: flex;
	align-items: center;
}

.modal .form-group .input-wrapper:focus-within {
	border-color: #4a6a9e;
	box-shadow: 0 0 0 3px rgba(74, 106, 158, 0.3);
}

.modal .form-group input, 
.modal .form-group select {
	width: 100%;
	padding: 14px 16px 14px 12px;
	background: transparent;
	border: none;
	outline: none;
	color: #e8edf5;
	font-size: 1rem;
	font-family: inherit;
	direction: rtl;
}

.modal .form-group select option { background: #141b2b; color: #e8edf5; }

.modal .modal-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.modal .modal-actions button {
	flex: 1;
	padding: 14px;
	border-radius: 60px;
	border: 1px solid #3f5277;
	background: #1f2b44;
	color: #e8edf5;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.2s;
	font-family: inherit;
}

.modal .modal-actions .btn-primary { background: #141b2b; border-color: #2e8b5a; }
.modal .modal-actions .btn-primary:hover { background: #237a4a; border-color: #3daa70; }
.modal .modal-actions .btn-cancel:hover { background: #2a3652; border-color: #5a6f8f; }