* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	background: linear-gradient(180deg, #f6f7fb 0%, #eef1f7 100%);
	color: #111827;
	overflow: hidden;
}

#root {
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	padding-left: calc(20px + env(safe-area-inset-left, 0));
	padding-right: calc(20px + env(safe-area-inset-right, 0));
	padding-top: calc(20px + env(safe-area-inset-top, 0));
	padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
	overflow: hidden;
}

.chat-shell {
	width: min(960px, 100%);
	height: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: center;
}

.chat-panel {
	flex: 1;
	height: clamp(560px, calc(100dvh - 40px), 880px);
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(6px);
	overflow: hidden;
}

.chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 24px 28px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(248, 250, 252, 0.9);
}

.chat-header h1 {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 600;
}

.chat-header p {
	margin: 0;
	color: #64748b;
	font-size: 15px;
}

.chat-room-code {
	font-weight: 600;
	color: #2563eb;
}

.chat-user {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-size: 14px;
	color: #475569;
}

.chat-user strong {
	font-size: 16px;
	color: #0f172a;
}

.chat-messages {
	flex: 1;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow-y: auto;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0));
	overscroll-behavior: contain;
}

.chat-messages::-webkit-scrollbar {
	width: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.4);
	border-radius: 999px;
}

.chat-message {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 70%;
}

.chat-message--self {
	margin-left: auto;
	flex-direction: row-reverse;
}

.chat-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.chat-message--self .chat-avatar {
	background: #16a34a;
	box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25);
}

.chat-bubble {
	flex: 1;
	background: #ffffff;
	padding: 12px 16px 14px;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(148, 163, 184, 0.24);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.chat-message--self .chat-bubble {
	background: #dbf4e4;
	border-color: rgba(59, 130, 246, 0.1);
}

.chat-bubble__meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.chat-author {
	font-weight: 600;
	color: #0f172a;
}

.chat-role {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
}

.chat-bubble__text {
	margin: 0;
	line-height: 1.5;
	color: #1f2937;
}

.chat-bubble__image {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	max-height: 360px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.chat-bubble__reply-context {
	border-left: 3px solid rgba(37, 99, 235, 0.35);
	background: rgba(59, 130, 246, 0.08);
	border-radius: 12px;
	padding: 8px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #1e3a8a;
}

.chat-message--self .chat-bubble__reply-context {
	border-left-color: rgba(22, 163, 74, 0.45);
	background: rgba(16, 185, 129, 0.08);
	color: #065f46;
}

.chat-bubble__reply-author {
	font-weight: 600;
	font-size: 13px;
}

.chat-bubble__reply-text {
	margin: 0;
	color: inherit;
	opacity: 0.9;
}

.chat-bubble__reply-image {
	max-height: 140px;
	border-radius: 10px;
	object-fit: cover;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.chat-bubble__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
}

.chat-bubble__reply-button {
	border: none;
	background: transparent;
	color: #2563eb;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 10px;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.chat-bubble__reply-button:hover {
	background: rgba(37, 99, 235, 0.12);
}

.chat-message--self .chat-bubble__reply-button {
	color: #16a34a;
}

.chat-message--self .chat-bubble__reply-button:hover {
	background: rgba(16, 185, 129, 0.12);
}

.chat-input {
	display: flex;
	gap: 12px;
	padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0));
	border-top: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(248, 250, 252, 0.95);
	position: sticky;
	bottom: 0;
}

.chat-attach {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: rgba(59, 130, 246, 0.12);
	color: #1d4ed8;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.chat-attach:hover {
	background: rgba(59, 130, 246, 0.2);
	transform: translateY(-1px);
}

.chat-attach:active {
	transform: none;
}

.chat-input input {
	flex: 1;
	border: 1px solid rgba(148, 163, 184, 0.6);
	border-radius: 999px;
	padding: 14px 20px;
	font-size: 16px;
	color: #0f172a;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input input::placeholder {
	color: #94a3b8;
}

.chat-input input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.chat-input button {
	border: none;
	border-radius: 999px;
	padding: 0 26px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-input button[type="button"] {
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.chat-input button[type="button"]:hover,
.chat-input button[type="button"]:active {
	box-shadow: none;
}

.chat-input button[type="button"] span {
	font-size: 20px;
}

.chat-input-preview {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 24px 16px;
}

.chat-input-preview--reply {
	justify-content: space-between;
	padding: 12px 24px 0;
	font-size: 14px;
	background: rgba(59, 130, 246, 0.08);
	border-left: 3px solid rgba(37, 99, 235, 0.35);
	border-radius: 0 0 18px 18px;
}

.chat-input-preview--reply .chat-input-preview__reply-text {
	margin: 6px 0 0;
	color: rgba(30, 64, 175, 0.85);
}

.chat-input-preview--reply .chat-input-preview__remove {
	margin-left: 16px;
}

.chat-input-preview img {
	max-height: 180px;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
	object-fit: contain;
}

.chat-input-preview__remove {
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #be123c;
	background: rgba(254, 226, 226, 0.9);
	box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease;
}

.chat-input-preview__remove:hover {
	background: rgba(248, 113, 113, 0.25);
	transform: translateY(-1px);
}

.chat-input-preview__remove:active {
	transform: none;
}

.chat-input button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.chat-input button:active {
	transform: translateY(0);
	box-shadow: none;
}

@media (max-width: 768px) {
	#root {
		padding: 12px;
		padding-left: calc(12px + env(safe-area-inset-left, 0));
		padding-right: calc(12px + env(safe-area-inset-right, 0));
		padding-top: calc(12px + env(safe-area-inset-top, 0));
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
	}

	.chat-panel {
		height: calc(100dvh - 24px);
		border-radius: 16px;
	}

	.chat-messages {
		padding: 18px 16px 12px;
		gap: 12px;
	}

	.chat-message {
		max-width: 92%;
	}

	.chat-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 18px 16px;
	}

	.chat-header h1 {
		font-size: 21px;
	}

	.chat-header p {
		font-size: 14px;
	}

	.chat-avatar {
		width: 34px;
		height: 34px;
		font-size: 12px;
		box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
	}

	.chat-message--self .chat-avatar {
		box-shadow: 0 6px 14px rgba(22, 163, 74, 0.22);
	}
}

/* Admin Panel Styles */
.admin-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	font-family: system-ui, -apple-system, sans-serif;
}

.admin-login-panel {
	max-width: 400px;
	margin: 100px auto;
	background: white;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.admin-login-panel h1 {
	font-size: 24px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 8px 0;
	text-align: center;
}

.admin-login-subtitle {
	text-align: center;
	color: #64748b;
	font-size: 14px;
	margin: 0 0 32px 0;
}

.admin-login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.admin-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.admin-form-group label {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.admin-form-group input {
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

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

.admin-form-checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 500;
}

.admin-form-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #2563eb;
}

.admin-form-checkbox span {
	font-size: 14px;
	color: #475569;
	user-select: none;
}

.admin-login-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 12px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

.btn-login {
	width: 100%;
	padding: 12px;
	font-size: 16px;
}

/* Old admin-header styles removed - using admin-navbar now */

.admin-room-selector {
	display: flex;
	align-items: center;
	gap: 8px;
}

.admin-room-selector label {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	white-space: nowrap;
}

.admin-room-select {
	padding: 8px 32px 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #1e293b;
	background-color: white;
	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='%23475569' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
	transition: all 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	min-width: 120px;
}

.admin-room-select:hover {
	border-color: #2563eb;
}

.admin-room-select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-header-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.admin-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 16px;
	border-radius: 8px;
	text-align: center;
	font-weight: 500;
}

.admin-status-message {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	color: #0c4a6e;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-weight: 500;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Old styles removed - using new layout */

.admin-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.admin-stat-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

.admin-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #1e293b;
}

/* Old admin-members styles removed - using new sidebar layout */

/* Buttons */
button[class^="btn-"],
button[class*=" btn-"] {
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-primary {
	background: #2563eb;
	color: white;
}

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

.btn-secondary {
	background: #64748b;
	color: white;
}

.btn-secondary:hover {
	background: #475569;
}

.btn-danger {
	background: #dc2626;
	color: white;
}

.btn-danger:hover {
	background: #b91c1c;
}

.btn-refresh {
	background: #10b981;
	color: white;
}

.btn-refresh:hover {
	background: #059669;
}

.btn-mute-option {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}

.btn-mute-option:hover {
	background: #fde047;
}

.btn-cancel {
	background: #f1f5f9;
	color: #475569;
}

.btn-cancel:hover {
	background: #e2e8f0;
}

@media (max-width: 768px) {
	.admin-container {
		padding: 16px;
	}

	.admin-header h1 {
		font-size: 22px;
	}

	.admin-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.admin-member-card {
		flex-direction: column;
		align-items: stretch;
	}

	.admin-member-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.admin-mute-options {
		flex-direction: column;
	}

	button[class^="btn-"],
	button[class*=" btn-"] {
		width: 100%;
	}
}

/* New Admin Layout - Top Nav + Left Sidebar */
.admin-layout {
	display: flex;
	flex-direction: column;
	height: 100vh;
	background: #f1f5f9;
}

/* Top Navigation Bar */
.admin-navbar {
	height: 64px;
	background: white;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	z-index: 10;
}

.admin-navbar-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.admin-navbar-left h1 {
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}

.admin-navbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.admin-navbar-stats {
	display: flex;
	gap: 20px;
	margin-right: 12px;
}

.admin-navbar-stats span {
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
}

.btn-nav {
	padding: 8px 16px;
	background: #f1f5f9;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-nav:hover {
	background: #e2e8f0;
}

.btn-logout {
	background: #fee2e2;
	color: #991b1b;
}

.btn-logout:hover {
	background: #fecaca;
}

/* Main Content Area */
.admin-main {
	display: flex;
	flex: 1;
	overflow: hidden;
}

/* Left Sidebar */
.admin-sidebar {
	width: 320px;
	background: white;
	border-right: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.admin-sidebar-header {
	padding: 20px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fafafa;
}

.admin-sidebar-header h2 {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0;
}

.member-count {
	background: #dbeafe;
	color: #1e40af;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
}

.admin-member-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
}

/* Member List Item */
.member-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.member-item:hover {
	background: #f8fafc;
}

.member-item.active {
	background: #eff6ff;
	border-left: 3px solid #2563eb;
}

.member-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 600;
	font-size: 14px;
	flex-shrink: 0;
}

.member-info {
	flex: 1;
	min-width: 0;
}

.member-name {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.member-time {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 2px;
}

.member-badge-muted {
	width: 24px;
	height: 24px;
	background: #fee2e2;
	color: #991b1b;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Sidebar Pagination */
.admin-sidebar-pagination {
	padding: 16px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #fafafa;
}

.btn-page {
	width: 32px;
	height: 32px;
	border: 1px solid #cbd5e1;
	background: white;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	color: #475569;
	transition: all 0.2s ease;
}

.btn-page:hover:not(:disabled) {
	background: #f1f5f9;
	border-color: #2563eb;
	color: #2563eb;
}

.btn-page:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.page-info {
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

/* Right Content Area */
.admin-content {
	flex: 1;
	overflow-y: auto;
	padding: 32px;
	position: relative;
}

/* Toast Message */
.admin-toast {
	position: fixed;
	top: 80px;
	right: 32px;
	background: white;
	padding: 16px 24px;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	font-size: 14px;
	font-weight: 500;
	z-index: 50;
	animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Member Detail Card */
.member-detail {
	background: white;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	max-width: 800px;
}

.detail-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 2px solid #f1f5f9;
}

.detail-header h2 {
	font-size: 28px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}

.status-badge {
	padding: 6px 16px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 600;
}

.status-normal {
	background: #dcfce7;
	color: #166534;
}

.status-muted {
	background: #fee2e2;
	color: #991b1b;
}

.detail-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.info-label {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-value {
	font-size: 15px;
	color: #1e293b;
	font-weight: 500;
}

.detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-action {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.btn-action.btn-primary {
	background: #3b82f6;
	color: white;
}

.btn-action.btn-primary:hover {
	background: #2563eb;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-action.btn-warning {
	background: #fef3c7;
	color: #92400e;
}

.btn-action.btn-warning:hover {
	background: #fde047;
}

.btn-action.btn-success {
	background: #d1fae5;
	color: #065f46;
}

.btn-action.btn-success:hover {
	background: #a7f3d0;
}

.btn-action.btn-danger {
	background: #fee2e2;
	color: #991b1b;
}

.btn-action.btn-danger:hover {
	background: #fecaca;
}

/* Empty State */
.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #94a3b8;
}

.empty-icon {
	font-size: 64px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.empty-state p {
	font-size: 16px;
	color: #64748b;
}

/* Badges */
.admin-badge {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.admin-badge-normal {
	background: #dcfce7;
	color: #166534;
}

.admin-badge-muted {
	background: #fee2e2;
	color: #991b1b;
}

/* Small Buttons */
.btn-sm {
	padding: 6px 12px;
	font-size: 13px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.btn-info {
	background: #dbeafe;
	color: #1e40af;
}

.btn-info:hover {
	background: #bfdbfe;
}

.btn-warning {
	background: #fef3c7;
	color: #92400e;
}

.btn-warning:hover {
	background: #fde047;
}

.btn-success {
	background: #d1fae5;
	color: #065f46;
}

.btn-success:hover {
	background: #a7f3d0;
}

.btn-danger {
	background: #fee2e2;
	color: #991b1b;
}

.btn-danger:hover {
	background: #fecaca;
}

/* Pagination */
.admin-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.btn-pagination {
	padding: 8px 16px;
	background: white;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
	background: #f1f5f9;
	border-color: #2563eb;
	color: #2563eb;
}

.btn-pagination:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.admin-pagination-info {
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
}

/* Mute Panel */
.admin-mute-panel {
	background: white;
	border-radius: 8px;
	padding: 20px;
}

.admin-mute-panel h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
}

.btn-mute-permanent {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.btn-mute-permanent:hover {
	background: #fecaca;
}

/* Modal */
.admin-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.admin-modal {
	background: white;
	border-radius: 12px;
	width: 90%;
	max-width: 800px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.admin-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.admin-modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
}

.admin-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.admin-modal-close:hover {
	background: #f1f5f9;
	color: #475569;
}

.admin-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.admin-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
}

.admin-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
	font-size: 15px;
}

/* Messages List */
.admin-messages-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.admin-message-item {
	background: #f8fafc;
	border-radius: 8px;
	padding: 16px;
	border-left: 3px solid #e2e8f0;
}

.admin-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.admin-message-time {
	font-size: 13px;
	color: #64748b;
}

.admin-message-role {
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.role-assistant {
	background: #dbeafe;
	color: #1e40af;
}

.role-user {
	background: #e0e7ff;
	color: #4338ca;
}

.admin-message-reply {
	background: white;
	border-left: 3px solid #cbd5e1;
	padding: 10px 12px;
	margin-bottom: 12px;
	border-radius: 4px;
}

.admin-message-reply span {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}

.admin-message-reply p {
	margin: 0;
	font-size: 13px;
	color: #475569;
}

.admin-message-content {
	font-size: 14px;
	color: #1e293b;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}

.admin-message-image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin-top: 12px;
	border: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.admin-navbar {
		height: auto;
		padding: 12px 16px;
		flex-wrap: wrap;
		gap: 12px;
	}

	.admin-navbar-left {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.admin-navbar-left h1 {
		font-size: 18px;
	}

	.admin-navbar-stats {
		display: none;
	}

	.admin-sidebar {
		width: 100%;
		max-height: 40vh;
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
	}

	.admin-main {
		flex-direction: column;
	}

	.admin-content {
		padding: 16px;
	}

	.detail-actions {
		flex-direction: column;
	}

	.btn-action {
		width: 100%;
	}

	.admin-modal {
		width: 95%;
		max-height: 90vh;
	}
}
