body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	background-color: #f5f5f5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


@media (max-width: 1170px) {
	body {

		background-color: #ffffff;
		padding: 0;
		height: 40%;
		overflow: hidden;
	}

	#landing {
		width: 90%;
		padding: 20px;
		margin-top: -50px;
	}

	#left-sidebar {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100%;
		margin: 0;
		z-index: 1001;
		transition: right 0.3s ease;
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
		border-radius: 0;
	}

	#left-sidebar.active {
		right: 0;
	}

	#menu-btn {
		display: block;
		position: fixed;
		top: 10px;
		right: 15px;
		z-index: 1002;
		background: #0084ff;
		color: white;
		border: none;
		border-radius: 8px;
		padding: 8px 12px;
		font-size: 20px;
	}

	.mobile-logo {
		display: block;
		position: fixed;
		top: 10px;
		left: 15px;
		z-index: 1002;
	}

	.mobile-logo img {
		width: 160px;
	}

	#chat-input-container {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 10px;
		background: white;
		box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	}


	.logo-container {
		display: none;
	}
}

@media (min-width: 1170px) {

	#menu-btn,
	.mobile-logo {
		display: none !important;
	}
}

#chat {
	display: flex;
	flex-direction: column;
	width: 100%;
	/* Make width responsive */
	max-width: 1000px;
	/* Set a maximum width */
	height: 90vh;
	/* Make height responsive */
	max-height: 750px;
	/* Set a maximum height */
	padding: 25px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: auto;
	/* Add scrollbars if content overflows */
	margin-top: 0;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	#chat {
		display: flex;
		flex-direction: column;
		width: 100%;
		/* Make width responsive */
		height: 82%;
		/* Make height responsive */
		padding: 25px;
		background-color: #ffffff;
		border-radius: 12px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		position: relative;
		overflow: auto;
		/* Add scrollbars if content overflows */
		margin-top: 50px;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
		padding: 0px;
		box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
	}
}

#chat-input-container {
	align-items: center;
	border-top: none !important;
	display: flex;
	position: absolute;
	bottom: 0;
	width: 95%;
	padding: 20px 0;
	background-color: transparent;
	gap: 15px;
	transition: transform 0.3s ease;
}

#chat-input-container.emoji-open {
	transform: translateY(-250px);
}

@media (max-width: 1170px) {
	#chat-input-container {
		align-items: normal;
		border-top: 3px solid #e4e6eb;
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 5px;
		align-items: normal;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 10px;
		background: white;
		box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
		z-index: 1000;
	}
}

@media (max-width: 1170px) {
	#chat-input-container.emoji-open {
		transform: translateY(-250px);
	}
}

#landing {
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	text-align: center;
	padding: 30px;
	background-color: white;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	width: 400px;
}

@media (max-width: 1170px) {
	#landing {
		box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
	}
}

.connected-users-count {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	background-color: #f2f5f9;
	border-radius: 8px;
	margin: 0 0 4px 0;
	font-size: 17px;
	color: #1c1e21;
	margin-top: 10px;
}

@media (max-width: 1170px) {
	.connected-users-count {
		margin-left: 5px;
	}
}

.connected-users-count i {
	color: #0084ff;
	font-size: 18px;
}

#chat-messages li {
	display: flex;
	align-items: center;
	padding: 5px 0;

}

.message-bubble {
	max-width: 70%;
	padding: 12px 15px;
	border-radius: 15px;
	line-height: 1.5;
	position: relative;
	word-wrap: break-word;
	display: flex;
	flex-direction: column;
}

.my-message {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	margin: 10px 0;
	width: 100%;
}

.other-message {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	margin: 10px 0;
	width: 100%;
}

.message-username {
	font-weight: bold;
	color: #333;
	margin-bottom: 5px;
	font-size: 0.9em;
}

.message-content {
	font-size: 16px;
	color: #000;
	margin-bottom: 4px;
	line-height: 1.5;
}

.message-time {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
}

.my-message .message-time {
	text-align: left;
}

.other-message .message-time {
	text-align: right;
}

.message-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 0 10px;
	object-fit: cover;
}

.my-message .message-bubble {
	background-color: #dcf8c6;
	border-top-left-radius: 1;
	/* שינוי - הפינה העליונה בצד שמאל */
	border-bottom-left-radius: 15px;
	/* החזרת הפינה התחתונה לעיגול */
}

.other-message .message-bubble {
	background-color: #e5e5ea;
	border-top-right-radius: 1;
	/* שינוי - הפינה העליונה בצד ימין */
	border-bottom-right-radius: 15px;
	/* החזרת הפינה התחתונה לעיגול */
}

/* הוספת משולשים בצדדים הנכונים - עכשיו בצד העליון */
.my-message .message-bubble::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 21px !important;
	/* שינוי - עכשיו בצד העליון */
	width: 20px;
	height: 20px;
	background-color: #dcf8c6;
	clip-path: polygon(100% 0, 100% 100%, 0 0);
	/* שינוי - משולש בכיוון הפוך */
}

.other-message .message-bubble::before {
	content: '';
	position: absolute;
	right: -10px;
	top: 21px !important;
	/* שינוי - עכשיו בצד העליון */
	width: 20px;
	height: 20px;
	background-color: #e5e5ea;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	/* שינוי - משולש בכיוון הפוך */
}

.system-message {
	color: #0000FF !important;
	font-size: 15px !important;
}

.admin-message {
	font-weight: bold;
}

.private-message {
	font-size: 15px !important;
}

.message-header {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}

.message-username {
	font-weight: bold;
	color: #333;
	margin-left: auto;
}

.message-time {
	font-size: 12px !important;
	color: #666 !important;
	margin-top: 5px !important;
	align-self: flex-end;
}

.user-info {
	font-size: 18px;
	color: black;
	margin-bottom: 5px;
}


.my-message .messages-text {
	background-color: #dcf8c6;
	color: #000;
	border-bottom-right-radius: 0;
	margin-left: 5px;
	margin-top: 22px;
}

.other-message .messages-text {
	background-color: #e5e5ea;
	color: #333;
	border-bottom-left-radius: 0;
	margin-right: 0px;
	margin-top: 22px;
}

.message-time {
	font-size: 12px !important;
	color: #666 !important;
	margin-top: 5px !important;
	align-self: flex-start;
}

.user-info {
	font-size: 18px;
	color: black;
	margin-bottom: 5px;
}


.my-message {
	justify-content: flex-end;
}

.other-message {
	justify-content: flex-start;
}

#chat-messages li span {
	font-size: 18px;
	color: black;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
	margin-top: 5px;
}

@media (max-width: 1170px) {
	#chat-messages li span {
		font-size: 18px;
		color: black;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
	}
}

#chat-messages {
	height: calc(100% - 58px);
	overflow-y: auto;
	font-size: 18px;
	padding-bottom: 0;
	background-color: transparent;
	border: none;
	box-shadow: none;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
	padding: 10px;
}

@media (max-width: 1170px) {
	#chat-messages {
		height: auto !important;


	}
}


#chat-input {
	display: flex;
	position: absolute;
	bottom: 10px;
	width: 100%;
	padding: 0px;
	box-sizing: border-box;
	background-color: #fff;
}

input[type="text"] {
	width: 65%;
	padding: 9px;
	border-radius: 10px;
	border: 0px solid #ddd;
	box-sizing: border-box;
	background-color: #ffffff;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	input[type="text"] {
		width: 70%;
		margin: 0px 0px;

		background-color: #ffffff;
	}
}

#left-sidebar {
	width: 300px;
	background-color: #ffffff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-left: 20px;
	height: 760px;
	overflow-y: auto;
}

@media (max-width: 1170px) {
	#left-sidebar {
		width: 100%;
		background-color: #ffffff;
		top: 7%;
		padding: 3px;
		height: 92%;
		box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
		overflow-y: auto;
		/* גלילה אנכית בתצוגת נייד */
		max-height: 100%;
		/* גובה מקסימלי מותאם לנייד */
		border-radius: 8px
	}
}

#left-sidebar .logo-container img {
	width: 80%;
	height: auto;
	max-width: 220px;
}

#users-list {
	height: 390px;
	overflow-y: auto;
	margin-bottom: 5px;
}

@media (max-width: 1170px) {
	#users-list {
		height: 52%;
	}
}

button {
	padding: 10px 20px;
	border-radius: 4px;
	background-color: #0084ff;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 17px;
	transition: background-color 0.3s ease;
}

button:hover {
	background-color: #0073e6;
}

ul {
	height: 200px;
	background-color: transparent;
	border-radius: 0;
	overflow-y: scroll;
	padding: 10px;
	margin-bottom: 20px;
	box-shadow: none;
}

li {
	list-style: none;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 10px;
	cursor: pointer;
}

.room-list-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	margin-left: 10px;
	vertical-align: middle;
}

.room {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-bottom: 3px;
	padding: 8px;
	cursor: pointer;
	border-radius: 5px;
	transition: background-color 0.2s;
	font-family: 'Rubik', sans-serif;
	font-size: 16px;
	text-align: right;
	background-color: #f6f7f9;
}

@media (max-width: 1170px) {
	.room {
		margin-left: 5px;
	}
}

.room:hover {
	background-color: #e4e6eb;
}

.room span {
	flex-grow: 1;
	margin-right: 5px;
}


.room:hover {
	background-color: #c0c0c0;
}

ul::-webkit-scrollbar {
	width: 8px;
}

ul::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}

ul::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.message-time {
	float: left;
	color: gray !important;
	font-size: 16px !important;
	margin-right: auto;
	white-space: nowrap;
	margin-top: 7px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	.message-time {
		float: left;
		color: gray !important;
		font-size: 16px !important;
		margin-right: auto;
		white-space: nowrap;
		margin-top: 7px;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
	}
}

.message-text {
	display: inline-block;
	max-width: 75%;
	word-wrap: break-word;
	border-radius: 18px;
	padding: 8px 12px;
	margin-left: 10px;
	font-size: 18px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

.selected-user {
	background-color: #e8f1f3 !important;
	color: #0000ff !important;
}

.private-message {
	font-size: 18px !important;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
	display: flex;
	flex-direction: column;
	gap: 5px;
	background-color: transparent !important;
	color: #333 !important;
	margin-right: 0 !important;
}

.private-message .user-info {
	font-size: 18px;
	color: #666;
	margin-bottom: 5px;
}

.private-message .message-time {
	font-size: 16px !important;
	color: #666 !important;
	margin-top: 7px !important;

}

.private-message .message-content {
	font-size: 18px !important;
	color: #333;
	margin: 5px 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
}

.my-message.private-message {
	justify-content: flex-end;
}

.other-message.private-message {
	justify-content: flex-start;
}

.my-message.private-message .message-bubble {
	background-color: #dcf8c6 !important;
	border-bottom-left-radius: 5px !important;
	margin-right: 10px !important;
	align-items: flex-start !important;
	padding: 12px 15px !important;
}

.other-message.private-message .message-bubble {
	background-color: #e5e5ea !important;
	border-bottom-right-radius: 5px !important;
	margin-left: 10px !important;
	align-items: flex-end !important;
	padding: 12px 15px !important;
}

.my-message.private-message .message-bubble::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: -8px;
	width: 20px;
	height: 20px;
	background-color: #dcf8c6 !important;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.other-message.private-message .message-bubble::before {
	content: '';
	position: absolute;
	bottom: 0;
	right: -8px;
	width: 20px;
	height: 20px;
	background-color: #e5e5ea !important;
	clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.private-message .message-username {
	font-weight: bold;
	color: #333;
	margin-bottom: 5px;
	font-size: 19px;
}

.private-message .message-content {
	font-size: 16px;
	color: #000;
	margin-bottom: 4px;
}

#chat-messages li {
	display: flex;
	align-items: flex-start;
	padding: 5px 0;
	margin-bottom: 10px;
	background-color: transparent;
	border-radius: 0;
	border: none;
	font-size: 18px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
	width: 100%;
}

.admin-private-message {
	color: #0000ff !important;
	font-size: 18px !important;
	background-color: #62ecea !important;

}

#username {
	background-color: #f6f7f9;
}

#emoji-btn {
	padding: 0px 0px;
	font-size: 24px;
	background: none;
	border: 1px solid #ddd;
	border-radius: 12px;
	cursor: pointer;
	order: 3;
	position: relative;
	/* width: 25px; 
            height: 25px; */
	display: flex;
	align-items: center;
	justify-content: center;
}


@media (max-width: 1170px) {
	#emoji-btn {
		width: 60px;
	}
}

#message {
	order: 1;
	flex-grow: 1;
	padding: 15px !important;
	font-size: 18px;
	border-radius: 12px;
}

.emoji-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
	gap: 5px;
	max-width: 1000px;
}

.emoji-grid span {
	font-size: 24px;
	padding: 5px;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s;
}

.emoji-grid span:hover {
	transform: scale(1.2);
	background-color: #f0f0f0;
	border-radius: 5px;
}

#room-header {
	display: none;
	text-align: right;
	font-weight: bold;
	padding: 2px 0;
	color: #333;
	margin: 0 0 2px 0;
	font-size: 28px;
	position: relative;
}

#left-sidebar h3 {
	font-size: 20px;
	margin-bottom: 8px;
	margin-top: 4px;
	color: #000000;
	font-weight: bold;
	text-align: center;
	background-color: #f2f5f9;
	border-radius: 8px;
	padding: 8px;
	margin-top: 6px !important;
}

@media (max-width: 1170px) {
	#left-sidebar h3 {
		margin-left: 5px;
	}
}

#left-sidebar h3:nth-child(3) {
	margin-top: 30px;
}

#rooms-section {
	margin-top: 25px;
	flex-direction: column;
	gap: 4px;
}

@media (max-width: 1170px) {
	#rooms-section {
		margin-top: 45px;
	}
}

#rooms-list {
	margin: 4px 0;
	min-height: fit-content;
	max-height: 200px;
	overflow-y: auto;
}

@media (max-width: 1170px) {

	#rooms-list,
	#users-list {
		max-height: 40vh;
		/* Adjust for mobile view */
	}
}

#new-room {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 12px;
	font-size: 14px;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	background-color: #f8f9fa;
	transition: all 0.3s ease;
	font-family: 'Rubik', sans-serif;
	box-sizing: border-box;
}

#new-room:focus {
	outline: none;
	border-color: #0084ff;
	background-color: #ffffff;
	box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
}

#new-room::placeholder {
	color: #6c757d;
	font-weight: 400;
}


#room-avatar-selection label {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	color: #333;
	font-weight: 500;
	font-family: 'Rubik', sans-serif;

}

.room-avatar {
	width: 35px;
	height: 35px;
	border-radius: 8px;
	margin: 0 4px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.room-avatar:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.room-avatar.selected {
	border-color: #0084ff;
	box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.2);
}

.avatar-options {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;

}

.custom-avatar-upload {
	text-align: right;
	margin-top: 10px;
}

.custom-avatar-label {
	display: block;
	margin-bottom: 5px;
	color: #666;
	font-size: 13px;
}

#room-custom-avatar {
	display: none;
}

.custom-avatar-label {
	cursor: pointer;
	color: #0084ff;
	text-decoration: underline;
}

#create-room-btn {
	width: 100%;
	margin-top: 15px;
	padding: 12px 20px;
	background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Rubik', sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(0, 132, 255, 0.3);
}

#create-room-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
	background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

#create-room-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 132, 255, 0.3);
}

@media (max-width: 1170px) {
	#create-room-btn {
		width: 100%;
		margin-top: 15px;
		padding: 12px 20px;
		background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
		color: white;
		border: none;
		border-radius: 10px;
		font-size: 14px;
		font-weight: 600;
		font-family: 'Rubik', sans-serif;
		cursor: pointer;
		transition: all 0.3s ease;
		box-shadow: 0 3px 10px rgba(0, 132, 255, 0.3);
	}

	#create-room-btn:hover {
		transform: translateY(-1px);
		box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
		background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
	}

	#create-room-btn:active {
		transform: translateY(0);
		box-shadow: 0 2px 6px rgba(0, 132, 255, 0.3);
	}
}

* {
	touch-action: pan-y pan-x;
}

.system-message {
	color: #0000FF !important;
	font-size: 18px !important;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	.system-message {
		font-size: 18px !important;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
	}
}

.admin-message {
	font-weight: normal !important;
	font-size: 18px !important;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	.admin-message {
		font-size: 18px !important;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
	}
}

.admin-message.lobby {
	color: #0000FF !important;
	font-size: 18px !important;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

.admin-message.private {
	color: #FF0000 !important;
	font-family: 'Rubik', sans-serif;
	font-size: 18px !important;
	font-weight: 400;
}

.private-message {
	font-size: 18px !important;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	.private-message {
		font-size: 18px !important;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
	}
}

html,
body {
	margin: 0;
	height: 100%;
	overflow: hidden;
	position: fixed;
	width: 100%;
	overflow: auto;
	/* חשוב */
	margin: 0;
	padding: 0;
	position: static;
	/* או פשוט הסר את position */
	background-color: #ffffff;
}

* {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

*::-webkit-scrollbar {
	display: none;
}

#chat-messages,
#users-list,
#rooms-list,
.emoji-grid,
#left-sidebar {
	overflow-y: auto;
}

.logo-container {
	text-align: center;
	margin-bottom: 20px;
}

.logo-container img {
	max-width: 250px;
	height: auto;
	border-radius: 10px;
}

#admin-password {
	width: 100%;
	padding: 10px;
	margin: 13px 0;
	border-radius: 10px;
	border: 1px solid #ddd;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
	background-color: #f6f7f9
}

.admin-password-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.toggle-admin-password-visibility {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.toggle-admin-password-visibility:hover {
	background-color: #ffffff;
}

.toggle-admin-password-visibility svg {
	stroke: #6c757d;
	transition: stroke 0.2s;
	width: 18px;
	height: 18px;
}

.toggle-admin-password-visibility:hover svg {
	stroke: #0084ff;
}

.message-text {
	font-size: 18px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	.message-text {
		line-height: 25px;
		padding: 8px;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
	}
}

.my-message .message-text {
	background-color: #0084ff;
	color: white;
}

#users-list li {
	display: flex;
	align-items: center;
	padding: 5px 10px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-radius: 8px;
}


#users-list li.selected-user {
	background-color: #e4e6eb;
}

#users-list li * {
	cursor: pointer;
}

.user-details {
	display: flex;
	flex-direction: column;
	margin-right: 10px;
	flex-grow: 1;
}

.user-name {
	font-weight: bold;
	margin-bottom: 2px;
}


#chat-input-container {
	border-top: 1px solid #e4e6eb;
	padding: 4px;
	background-color: white;
}

@media (max-width: 1170px) {
	#chat-input-container {
		border-top: 3px solid #e4e6eb;
		gap: 0px;
	}
}

#message {
	border: none;
	background-color: #f6f7f9;
	border-radius: 6px;
	padding: 12px 20px;
	font-size: 15px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

@media (max-width: 1170px) {
	#message {
		background-color: #ffffff;
		font-size: 20px;
		padding: 0px 0px;
		font-family: 'Rubik', sans-serif;
		font-weight: 400;
		width: calc(100% - 120px);
		margin: 0 10px;
	}
}

.room {
	background-color: #f0f2f5;
	padding: 10px 15px;
	border-radius: 8px;
	margin-bottom: 5px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.room:hover {
	background-color: #e4e6eb;
}

button {
	background-color: #0084ff;
	color: white;
	border: none;
	border-radius: 3px;
	padding: 10px 20px;
	font-weight: 600;
	transition: background-color 0.2s;
}

button:hover {
	background-color: #0073e6;
}

#landing input {
	border: 0px solid #e4e6eb;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 15px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

#tabs-container {
	background-color: transparent !important;
	border: none;
	box-shadow: none;
	padding: 8px;
	position: relative;
	margin-bottom: -17px;

}

@media (max-width: 1170px) {
	#tabs-container {
		position: sticky;
		top: 0;
		z-index: 999;

	}
}


#tabs {
	position: relative;
	padding: 16px 0;
	background-color: transparent;
	margin-bottom: -23px;
	margin-top: -18px;
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	max-width: 100%;
	scroll-behavior: smooth;
}

#tabs::-webkit-scrollbar {
	display: none;
}

#tabs-container {
	background-color: transparent !important;
	border: none;
	box-shadow: none;
	padding: 8px;
	position: relative;
	margin-bottom: -17px;
}

.tab {
	padding: 14px 25px;
	margin-right: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	position: relative;
	background: #ffffff;
	color: #555;
	font-weight: 500;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 10px 10px 0 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.03);
	border-bottom: none;
	transform: perspective(300px) rotateX(2deg);
	transform-origin: bottom;
	z-index: 1;
	flex-shrink: 0;
}

.tab:hover {
	color: #0084ff;
	background: #f8fbff;
	transform: perspective(300px) rotateX(0deg) translateY(-3px);
	box-shadow: 0 -5px 15px rgba(0, 132, 255, 0.05);
	z-index: 2;
}

.tab.active {
	color: #0084ff;
	background: #ffffff;
	transform: perspective(300px) rotateX(0deg) translateY(-5px);
	box-shadow: 0 -5px 15px rgba(174 174 175 / 10%);
	z-index: 3;
	font-weight: 600;
}

.tab:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: transparent;
	transition: all 0.3s ease;
}

.tab.active:after {
	background: #0084ff;
}

.tab-text {
	position: relative;
	z-index: 2;
}

.close-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-right: 4px;
	border-radius: 50%;
	color: #666;
	font-size: 18px;
	transition: all 0.3s ease;
	font-family: 'Material Icons';
	/* ← חשוב מאוד */
	cursor: pointer;
	opacity: 0.6;
	background-color: rgba(0, 0, 0, 0.05);
	z-index: 2;
}

.close-tab:hover {
	opacity: 1;
	transform: scale(1.1);
	background-color: rgba(255, 0, 0, 0.1);
	color: #ff3b30;
}

.tab.new-message {
	position: relative;
}

.tab.new-message::after {
	content: '';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	background-color: #ff3b30;
	border-radius: 50%;
	animation: pulse 1s infinite;
	z-index: 10;
}

@media (max-width: 1170px) {
	.tab.new-message::after {
		content: '';
		position: absolute;
		top: 4px;
		right: 4px;
		width: 8px;
		height: 8px;
		background-color: #ff3b30;
		border-radius: 50%;
		animation: pulse 1s infinite;
		z-index: 10;
	}
}

@keyframes pulse {
	0% {
		transform: scale(0.8);
		opacity: 1;
	}

	50% {
		transform: scale(1.2);
		opacity: 0.8;
	}

	100% {
		transform: scale(0.8);
		opacity: 1;
	}
}

@media (max-width: 1170px) {
	#tabs {
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		border-bottom: 4px solid rgba(216, 217, 217, 0.1);
		padding-bottom: 0;
		background-color: white;
		overflow-x: auto;
		flex-wrap: nowrap;

	}

	.tab {

		margin-right: 5px;
		font-size: 14px;
		transform: perspective(300px) rotateX(1deg);
		flex-shrink: 0;
	}

	.tab.active {
		transform: perspective(300px) rotateX(0deg) translateY(-3px);
	}
}

#chat-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.avatar {
	width: 50px;
	height: 50px;
	cursor: pointer;
	border: 3px solid transparent;
	border-radius: 50%;
	transition: border-color 0.3s;
}

.selected-avatar {
	border-color: #0084ff;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	vertical-align: middle;
	margin-left: 10px;
}

.chat-avatar {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	margin-left: 10px;
	margin-right: 10px;
	vertical-align: middle;
}

.messages-text {
	display: inline-block;
	padding: 8px 12px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
	text-align: right;
	font-size: 16px;
	font-family: 'Rubik', sans-serif;
	background-color: #f0f0f0;
	border-radius: 15px;
	margin: 0 5px;
}

#chat-messages li {
	display: flex;
	align-items: center;
	padding: 5px 10px;

	width: 100%;
}

.message-time {
	font-size: 12px;
	color: #666;
	margin-right: auto;
}

#avatar-selection {
	margin-top: 5px;
}

#avatar-selection label {
	display: block;
	margin-bottom: 25px;
	font-weight: bold !important;
}

.avatars {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

#join-btn {
	margin-top: 15px;
	font-family: 'Rubik', sans-serif;
	font-weight: 500;
}

#message:focus,
#new-room:focus,
#username:focus,
#admin-password:focus {
	outline: none;
}

#send-btn {
	order: 3;
	background-color: #0084ff;
	color: white;
	border: none;
	border-radius: 3px;
	padding: 10px 20px;
	width: 106px;
	white-space: nowrap;
	font-weight: 600;
	transition: background-color 0.2s;
	font-family: 'Rubik', sans-serif;
	font-weight: 500;
}

@media (max-width: 1170px) {
	#send-btn {
		border-radius: 3px;
		width: 106px;
		white-space: nowrap;
	}
}

#send-btn:hover {
	background-color: #0073e6;
}

#custom-avatar {
	display: none;
}

#custom-avatar-label {
	display: inline-block;
	cursor: pointer;
}

#custom-avatar-label img {
	width: 50px;
	height: 50px;
	transition: border-color 0.3s ease;
	margin-top: 3px;
}

#custom-avatar-label img:hover {
	border-color: #0073e6;
}

#additional-info {
	gap: 10px;
	margin-bottom: 20px;
	margin-top: 20px;
}

#additional-info select {
	padding: 9px;
	border-radius: 30px;
	border: 1px solid #f9f9f9;
	background-color: #f6f7f9;
	font-size: 15px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
}

.user-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 5px 10px;
	cursor: pointer;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-left: 10px;
	vertical-align: middle;
}

#users-list li {
	display: flex;
	align-items: center;
	padding: 5px 10px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-radius: 8px;
}


#users-list li.selected-user {
	background-color: #e4e6eb;
}

#users-list li * {
	cursor: pointer;
}

.user-details {
	display: flex;
	flex-direction: column;
	margin-right: 10px;
	flex-grow: 1;
}

.user-name {
	font-weight: bold;
	margin-bottom: 2px;
}

.user-info {
	font-size: 18px;
	color: #65676B;
}

#username {
	width: 100%;
	margin-top: 30px;
}

@media (max-width: 1170px) {
	#username {
		width: 100%;
		margin-top: 100px;
	}
}

.user-details {
	color: #ff253a;
	margin-right: auto;
}

#consent-section {
	margin-top: 20px;
	text-align: right;
	width: 100%;
}

#consent-section div {
	margin-bottom: 10px;
	align-items: center;
	justify-content: flex-end;
}

#consent-section input[type="checkbox"] {
	margin-left: 10px;
}

#consent-section label {
	font-size: 14px;
}

@media (max-width: 1170px) {
	#consent-section {
		padding: 0 10px;
	}

	#consent-section label {
		font-size: 13px;
	}
}

#age-consent {
	float: right;
}

#terms-consent {
	float: right;
}


#emoji-menu {
	position: fixed;
	bottom: -500px;
	left: -5px;

	width: 100%;
	background: white;
	/*  border-top: 0px solid #ddd; */
	padding: 5px;
	/*     box-shadow: 0 -2px 5px rgba(0,0,0,0.1); */
	transition: transform 0.3s ease;
	z-index: 1000;
	height: 250px;
	overflow-y: auto;
	display: none;
}

@media (max-width: 1170px) {
	#emoji-menu {
		position: absolute;
		bottom: -517px;
		left: -4.5%;
		transform: translateX(-0%);
		background: white;
		padding: 10px;
		z-index: 1000;
		display: flex;
		justify-content: center;

	}
}


#emoji-menu.open {
	transform: translateY(-250px);
	display: block;
}

.emoji-grid {
	display: grid;
	grid-template-columns: repeat(19, 1fr);
	gap: 4px;
	padding: 0px;
}


@media (max-width: 1170px) {
	.emoji-grid {
		display: grid;
		grid-template-columns: repeat(7, 1fr);
		gap: 5px;
		padding: 10px;
	}
}

.emoji-grid span {
	font-size: 24px;
	padding: 8px;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.messages-text {
	color: blue;
	display: inline-block;
	padding: 8px 12px;
	word-wrap: break-word;
	/* מאפשר שבירת מילים */
	overflow-wrap: break-word;
	/* תמיכה בדפדפנים נוספים */
	/* flex: 1;  /* לוקח את שאר המקום הפנוי */
	min-width: 0;
	/* מאפשר להכיל את התוכן */
	white-space: pre-wrap;
	/* שומר על רווחים ושורות חדשות */
	text-align: right;
	/* מיישר את הטקסט לימין */
	background-color: #f0f0f0 !important;
}

.important-message {
	color: red !important;
	font-weight: bold !important;
	/* אם אתה רוצה לשמור על ההדגשה */
	font-size: 1.1em !important;
	/* אם אתה רוצה לשמור על גודל הפונט */
}

#chat-messages li {
	display: flex;
	align-items: flex-start;
	padding: 5px 0;
	margin-bottom: 10px;
	background-color: transparent;
	border-radius: 0;
	border: none;
	font-size: 18px;
	font-family: 'Rubik', sans-serif;
	font-weight: 400;
	width: 100%;
}


@media (max-width: 1170px) {
	#chat-messages li {
		width: 100%;
	}

	.messages-text {
		font-size: 18px;
		/* מקטין מעט את הפונט במובייל */
	}
}

.language-selector {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1000;
}

.language-selector select {

	padding: 8px;
	border-radius: 8px;
	border: 1px solid #f1e7e7;
	background-color: white;
	font-size: 16px;
	cursor: pointer;
	outline: none;

}

@media (max-width: 768px) {
	.language-selector select {
		padding: 8px;
		border-radius: 8px;
		border: 1px solid #f1e7e7;
		background-color: white;
		font-size: 16px;
		cursor: pointer;
		outline: none;
		margin-top: 6px;
	}
}


@media (max-width: 1170px) {
	.language-selector {
		top: 10px;
		right: 10px;
	}
}

@media (min-width: 1171px) {
	#landing {
		position: relative;
		/* חשוב להוסיף כדי שה-absolute יתייחס לאלמנט הזה */
	}

	.language-selector {
		position: absolute;
		top: 20px;
		right: 20px;
	}
}

#emoji-btn svg {
	stroke: gray;
	width: 28px;
	height: 28px;
}

.my-message.private-message .message-bubble {
	background-color: #dcf8c6 !important;
	border-bottom-left-radius: 5px !important;
	margin-right: 10px !important;
	align-items: flex-start !important;
}

.other-message.private-message .message-bubble {
	background-color: #e5e5ea !important;
	border-bottom-right-radius: 5px !important;
	margin-left: 10px !important;
	align-items: flex-end !important;
}

.my-message.private-message .message-bubble::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: -8px;
	width: 20px;
	height: 20px;
	background-color: #dcf8c6 !important;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.other-message.private-message .message-bubble::before {
	content: '';
	position: absolute;
	bottom: 0;
	right: -8px;
	width: 20px;
	height: 20px;
	background-color: #e5e5ea !important;
	clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.user-list-avatar {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	object-fit: cover;
}

#users-list li {
	display: flex;
	align-items: flex-start;
	padding: 10px;
	cursor: pointer;
	transition: background-color 0.2s;
	border-radius: 8px;
	gap: 10px;
}

.user-details {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.user-name {
	font-weight: bold;
	margin-bottom: 4px;
	font-size: 16px;
}

.user-info {
	font-size: 14px;
	color: #65676B;
}

/* סגנון לכרטיסיית משתמש מנותק */
.tab.user-offline {
	opacity: 0.7;
	position: relative;
	padding-right: 6px;
	padding-left: 6px;
}

.tab.user-offline .tab-text {
	font-size: 0.95em;
}

.tab.user-offline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: repeating-linear-gradient(45deg,
			rgba(0, 0, 0, 0.05),
			rgba(0, 0, 0, 0.05) 10px,
			rgba(0, 0, 0, 0.1) 10px,
			rgba(0, 0, 0, 0.1) 20px);
	border-radius: 10px 10px 0 0;
	z-index: 0;
}

.tab.user-offline .tab-text::after {
	content: " " attr(data-status);
	font-size: 15px;
	color: #999;
	white-space: nowrap;
	margin-right: 3px;
	display: inline-block;
}

@media (max-width: 1170px) {
	.tab.user-offline {
		padding-right: 3px;
		padding-left: 3px;
	}

	.tab.user-offline .tab-text {
		font-size: 15px;
	}

	.tab.user-offline .tab-text::after {
		font-size: 15px;
		margin-right: 1px;
	}
}

@keyframes pulse {
	0% {
		transform: scale(0.8);
		opacity: 1;
	}

	50% {
		transform: scale(1.2);
		opacity: 0.8;
	}

	100% {
		transform: scale(0.8);
		opacity: 1;
	}
}

@media (max-width: 1170px) {
	.tab.user-offline {
		padding-right: 4px;
		padding-left: 4px;
	}

	.tab.user-offline .tab-text {
		font-size: 15px;
	}

	.tab.user-offline .tab-text::after {
		font-size: 15px;
		margin-right: 2px;
	}
}

@keyframes pulse {
	0% {
		transform: scale(0.8);
		opacity: 1;
	}

	50% {
		transform: scale(1.2);
		opacity: 0.8;
	}

	100% {
		transform: scale(0.8);
		opacity: 1;
	}
}

/* סגנון לכרטיסיית משתמש שנזרק */
.tab.user-kicked {
	opacity: 0.7;
	position: relative;
	padding-right: 6px;
	padding-left: 6px;
}

.tab.user-kicked .tab-text {
	font-size: 15px;
}

.tab.user-kicked::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: repeating-linear-gradient(45deg,
			rgba(255, 165, 0, 0.05),
			rgba(255, 165, 0, 0.05) 10px,
			rgba(255, 165, 0, 0.1) 10px,
			rgba(255, 165, 0, 0.1) 20px);
	border-radius: 10px 10px 0 0;
	z-index: 0;
}

.tab.user-kicked .tab-text::after {
	content: " " attr(data-status);
	font-size: 15px;
	color: #ff6600;
	white-space: nowrap;
	margin-right: 3px;
	display: inline-block;
}

/* סגנון לכרטיסיית משתמש שנחסם */
.tab.user-banned {
	opacity: 0.7;
	position: relative;
	padding-right: 6px;
	padding-left: 6px;
}

.tab.user-banned .tab-text {
	font-size: 15px;
}

.tab.user-banned::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: repeating-linear-gradient(45deg,
			rgba(255, 0, 0, 0.05),
			rgba(255, 0, 0, 0.05) 10px,
			rgba(255, 0, 0, 0.1) 10px,
			rgba(255, 0, 0, 0.1) 20px);
	border-radius: 10px 10px 0 0;
	z-index: 0;
}

.tab.user-banned .tab-text::after {
	content: " " attr(data-status);
	font-size: 15px;
	color: #ff0000;
	white-space: nowrap;
	margin-right: 3px;
	display: inline-block;
}

@media (max-width: 1170px) {

	.tab.user-offline,
	.tab.user-kicked,
	.tab.user-banned {
		padding-right: 4px;
		padding-left: 4px;
	}

	.tab.user-offline .tab-text,
	.tab.user-kicked .tab-text,
	.tab.user-banned .tab-text {
		font-size: 15px;
	}

	.tab.user-offline .tab-text::after,
	.tab.user-kicked .tab-text::after,
	.tab.user-banned .tab-text::after {
		font-size: 15px;
		margin-right: 2px;
	}
}



#room-creation-fields {
	display: flex;
	flex-direction: column;
	padding: 10px;
	background-color: #ffffff;
	border-radius: 12px;
	border: 1px solid #e1e5e9;
	margin-bottom: 15px;

}

@media (max-width: 1170px) {
	#room-creation-fields {
		margin-left: 5px;
	}
}

#room-password-section {

	display: flex;
	flex-direction: column;
}

#room-password-label {
	font-size: 14px;
	margin-bottom: 6px;
	color: #333;
	font-weight: 500;
	font-family: 'Rubik', sans-serif;
	margin-left: auto;
}

.room-password-input-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

#room-password {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #e1e5e9;
	background: #ffffff;
	font-size: 14px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	font-family: 'Rubik', sans-serif;
	margin-bottom: 12px;
}

#room-password:focus {
	outline: none;
	border-color: #0084ff;
	box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
}

#room-password::placeholder {
	color: #6c757d;
	font-weight: 400;
}

.toggle-password-visibility {
	position: absolute;
	left: 8px;
	top: 40%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.toggle-password-visibility:hover {
	background-color: #ffffff;
}

.toggle-password-visibility svg {
	stroke: #6c757d;
	transition: stroke 0.2s;
	width: 18px;
	height: 18px;
}

.toggle-password-visibility:hover svg {
	stroke: #0084ff;
}

#room-password-modal {
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

#room-password-modal .modal-backdrop {
	position: absolute;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.35);
}

#room-password-modal .modal-content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
	padding: 32px 24px 24px 24px;
	min-width: 260px;
	max-width: 25vw !important;
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto !important;
	margin-top: 150px !important;
}

@media (max-width: 600px) {
	#room-password-modal .modal-content {
		min-width: 0;
		max-width: 80vw !important;
		width: 95vw;
		padding: 18px 6vw 18px 6vw;
	}
}

#new-room-label {
	font-size: 14px;
	margin-bottom: 6px;
	color: #333;
	font-weight: 500;
	font-family: 'Rubik', sans-serif;
	text-align: right;
}

#new-room {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #e1e5e9;
	background: #ffffff;
	font-size: 14px;
	transition: all 0.3s ease;
	box-sizing: border-box;
	font-family: 'Rubik', sans-serif;
}

#new-room:focus {
	outline: none;
	border-color: #0084ff;
	box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
}


#room-password-modal {
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#room-password-modal .modal-backdrop {
	position: absolute;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.35);
}

#room-password-modal .modal-content {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
	padding: 32px 24px 24px 24px;
	min-width: 320px;
	max-width: 90vw;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#room-password-modal .close-modal {
	position: absolute;
	top: 10px;
	left: 14px;
	font-size: 28px;
	color: #888;
	cursor: pointer;
	transition: color 0.2s;
}

#room-password-modal .close-modal:hover {
	color: #f00;
}

#room-password-modal h3 {
	margin: 0 0 18px 0;
	font-size: 22px;
	font-weight: 500;
	text-align: center;
}

#room-password-modal input[type=password] {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #ddd;
	font-size: 18px;
	margin-bottom: 10px;
	text-align: center;
}

#room-password-modal button {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	background: #0084ff;
	color: #fff;
	font-size: 18px;
	border: none;
	margin-top: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

#room-password-modal button:hover {
	background: #005fa3;
}

@media (max-width: 500px) {
	#room-password-modal .modal-content {
		min-width: 0;
		width: 95vw;
		padding: 18px 6vw 18px 6vw;
	}
}

#room-password-modal input[type=password] {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #ddd;
	font-size: 18px;
	margin-bottom: 10px;
	text-align: center;
	font-family: 'Rubik', sans-serif;
}

#room-password-modal button {
	width: 100%;
	padding: 10px;
	border-radius: 8px;
	background: #0084ff;
	color: #fff;
	font-size: 18px;
	border: none;
	margin-top: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

#room-password-modal button:hover {
	background: #005fa3;
}

@media (max-width: 500px) {
	#room-password-modal .modal-content {
		min-width: 0;
		width: 95vw;
		padding: 18px 6vw 18px 6vw;
	}
}

.modal-password-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.toggle-modal-password-visibility {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.toggle-modal-password-visibility:hover {
	background-color: #ffffff;
}

.toggle-modal-password-visibility svg {
	stroke: #6c757d;
	transition: stroke 0.2s;
	width: 18px;
	height: 18px;
}

.toggle-modal-password-visibility:hover svg {
	stroke: #0084ff;
}
/* --- עיצוב למודל סיסמה --- */
#room-password-modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#room-password-modal .modal-backdrop {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
}

#room-password-modal .modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#room-password-modal .close-modal {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

#room-password-modal .close-modal:hover {
  color: #f00;
}

#room-password-modal h3 {
  margin: 0 0 18px 0;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

#room-password-modal input[type=password] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

#room-password-modal button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #0084ff;
  color: #fff;
  font-size: 18px;
  border: none;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#room-password-modal button:hover {
  background: #005fa3;
}

@media (max-width: 500px) {
  #room-password-modal .modal-content {
    min-width: 0;
    width: 95vw;
    padding: 18px 6vw 18px 6vw;
  }
}
