/*! public/css/modals/main.css */

.modal-content {
	padding: 1rem;
	border-radius: var(--radius-xl);
	background: var(--bg-section);
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-card);
	color: var(--color-text-body);
}

[data-theme='dark'] .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-content .form-control:focus,
.modal-content .form-control:focus-visible,
.modal-content .form-control:active {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-box-brand);
}

.modal-content .form-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 1.5rem;
	padding-inline-start: 0;
}

.modal-content .form-check-input {
	float: none;
	flex: 0 0 auto;
	margin-inline-start: 0;
	margin-inline-end: 0;
}

.modal-content .form-check-label {
	line-height: 1.4;
}

.modal-footer-container {
	margin-top: 1.5rem;
	text-align: center;
}

.modal-footer-link {
	color: var(--color-secondary);
	text-decoration-color: transparent;
	transition:
		color var(--transition-time-method),
		text-decoration-color var(--transition-time-method);
}

.modal-footer-link:hover {
	color: var(--color-secondary-hover);
	text-decoration-color: var(--color-secondary-hover);
}

.complete-signup-avatar {
	display: grid;
	gap: 0.75rem;
	--avatar-bg: #f7c59f;
}

.complete-signup-avatar__summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.complete-signup-avatar__preview {
	width: 4rem;
	height: 4rem;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--avatar-bg);
	box-shadow: 0 0 0 1px var(--border-subtle);
}

.complete-signup-avatar__preview img {
	width: 100%;
	height: 100%;
}

.complete-signup-avatar__label {
	font-size: 0.75rem;
	color: var(--color-text-muted);
}

.complete-signup-avatar__style-name {
	font-weight: 600;
}

.complete-signup-avatar__color {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	align-self: center;
}

.complete-signup-avatar__color input {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.125rem;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	background-color: var(--color-bg);
}

.complete-signup-avatar__refresh {
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	padding: 0;
}

.complete-signup-avatar__refresh.is-loading i {
	animation: complete-signup-avatar-spin 0.8s linear infinite;
}

@keyframes complete-signup-avatar-spin {
	to {
		transform: rotate(360deg);
	}
}

.complete-signup-avatar__picker {
	display: grid;
	grid-template-columns: minmax(9rem, 0.9fr) 1.1fr;
	gap: 0.75rem;
	min-height: 12rem;
}

.complete-signup-avatar__styles {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-height: 14rem;
	overflow-y: auto;
	padding-inline-end: 0.25rem;
}

.complete-signup-avatar__style {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.35rem 0.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	color: var(--color-text-body);
	background-color: transparent;
	text-align: start;
}

.complete-signup-avatar__style:hover,
.complete-signup-avatar__style:focus,
.complete-signup-avatar__style.is-active {
	border-color: var(--border-subtle);
	background-color: var(--color-bg);
}

.complete-signup-avatar__style-preview {
	display: flex;
	width: 1.75rem;
	height: 1.75rem;
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 0.35rem;
	background-color: var(--avatar-bg);
}

.complete-signup-avatar__style-preview img {
	width: 100%;
	height: 100%;
}

.complete-signup-avatar__style span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.complete-signup-avatar__options {
	max-height: 14rem;
	overflow-y: auto;
	padding: 0.5rem;
	background-color: var(--bg-section);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
}

.complete-signup-avatar__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.complete-signup-avatar__option {
	display: flex;
	padding: 0.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	background-color: transparent;
}

.complete-signup-avatar__option span {
	display: flex;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background-color: var(--avatar-bg);
}

.complete-signup-avatar__option:hover,
.complete-signup-avatar__option:focus,
.complete-signup-avatar__option.is-active {
	border-color: var(--color-primary);
	background-color: var(--color-bg);
}

.complete-signup-avatar__option img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
}

@media (max-width: 575.98px) {
	.complete-signup-avatar__picker {
		grid-template-columns: 1fr;
	}

	.complete-signup-avatar__styles {
		max-height: 8rem;
	}
}

.complete-signup-country__toggle {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 2.375rem;
	color: var(--color-text-body);
	background-color: var(--color-bg);
}

.complete-signup-country__selected,
.complete-signup-country__option {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.complete-signup-country__menu {
	max-height: 14rem;
	overflow-y: auto;
	background-color: var(--bg-section);
	border-color: var(--border-subtle);
}

.complete-signup-country__option {
	color: var(--color-text-body);
}

.complete-signup-country__option:hover,
.complete-signup-country__option:focus {
	color: var(--color-text-body);
	background-color: var(--color-bg);
}

.complete-signup-country__flag {
	flex: 0 0 auto;
	border-radius: 2px;
	box-shadow: 0 0 0 1px var(--border-subtle);
}

.complete-signup-country__placeholder {
	color: var(--color-text-muted);
}

.chat-room-search-form {
	margin-bottom: 1rem;
}

.chat-room-search-results {
	display: grid;
	gap: 0.5rem;
}

.chat-room-search-empty {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	padding: 2rem 1rem;
	border: 1px dashed var(--border-soft);
	border-radius: var(--radius-sm);
	color: var(--color-text-muted);
	background: var(--bg-card-muted);
	text-align: center;
}

.chat-room-search-empty i {
	color: var(--color-secondary);
	font-size: 2rem;
}

.chat-room-search-empty p {
	margin: 0;
}

.chat-room-search-result {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	background: var(--bg-card);
}

.chat-room-search-type,
.chat-room-search-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.chat-room-search-type {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-sm);
	color: var(--color-text-inverse);
	background: var(--color-secondary);
}

.chat-room-search-content {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.chat-room-search-content strong,
.chat-room-search-content small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chat-room-search-content small {
	color: var(--color-text-muted);
}

.chat-room-search-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	min-width: 0;
}

.chat-room-search-keyword {
	max-width: 100%;
	padding: 0.1rem 0.4rem;
	overflow: hidden;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	color: var(--color-text-muted);
	background: var(--bg-card-muted);
	font-size: 0.8rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chat-room-search-action {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border-radius: var(--radius-sm);
}

.chat-room-search-action.is-disabled {
	cursor: default;
	opacity: 0.65;
}

.modal-body .form-text {
	color: var(--color-text-muted);
}

.legal-acceptance {
	margin-top: 1rem;
}

.legal-acceptance a {
	color: var(--color-secondary);
	text-decoration: none;
	transition: color var(--transition-time-method);
}

.legal-acceptance a:hover,
.legal-acceptance a:focus-visible {
	color: var(--color-secondary-hover);
}
