/**
 * @package     Joomla.Plugin
 * @subpackage  System.mimetypeconsent
 * @copyright   (C) 2026 Damien. All rights reserved.
 * @license     GNU General Public License version 2 or later
 */

.mtc-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, .55);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.45;
}

.mtc-box {
	width: min(38rem, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 1.25rem;
	border-radius: .5rem;
	background: #fff;
	color: #222;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .35);
}

.mtc-title {
	margin: 0 0 .5rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.mtc-intro {
	margin: 0 0 1rem;
	font-size: .9rem;
	opacity: .8;
}

.mtc-row {
	margin-bottom: .75rem;
	padding: .75rem;
	border: 1px solid #d9d9d9;
	border-radius: .35rem;
}

.mtc-row-blocked {
	border-color: #d9534f;
	background: rgba(217, 83, 79, .06);
}

.mtc-files {
	margin-bottom: .5rem;
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: .8rem;
	word-break: break-all;
	opacity: .75;
}

.mtc-grid {
	display: grid;
	grid-template-columns: minmax(5rem, 1fr) minmax(10rem, 2fr);
	gap: .5rem;
	align-items: center;
}

.mtc-label {
	display: block;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .7;
}

.mtc-value {
	display: block;
	margin-top: .15rem;
	padding: .4rem .5rem;
	border: 1px solid #b9b9b9;
	border-radius: .25rem;
	background: #f0f0f0;
	font: inherit;
	font-size: .9rem;
	word-break: break-all;
}

.mtc-warning {
	margin: .5rem 0 0;
	color: #b02a37;
	font-size: .8rem;
	font-weight: 600;
}

.mtc-footer {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
	margin-top: 1rem;
}

.mtc-btn {
	padding: .45rem 1rem;
	border: 1px solid transparent;
	border-radius: .25rem;
	font: inherit;
	font-size: .9rem;
	cursor: pointer;
}

.mtc-btn:disabled {
	opacity: .6;
	cursor: default;
}

.mtc-cancel {
	border-color: #b9b9b9;
	background: #f7f7f7;
	color: #222;
}

.mtc-accept {
	background: #0d6efd;
	color: #fff;
}

.mtc-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	z-index: 100001;
	transform: translateX(-50%);
	max-width: 32rem;
	padding: .6rem 1rem;
	border-radius: .3rem;
	background: #1f7a3d;
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: .9rem;
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3);
}

.mtc-toast-error {
	background: #b02a37;
}

@media (prefers-color-scheme: dark) {
	.mtc-box {
		background: #23262b;
		color: #eceff4;
	}

	.mtc-row {
		border-color: #45494f;
	}

	.mtc-value {
		border-color: #5b6067;
		background: #1d2024;
		color: #eceff4;
	}

	.mtc-cancel {
		border-color: #5b6067;
		background: #2c3036;
		color: #eceff4;
	}
}

.mtc-boot-badge {
	position: fixed;
	top: 8px;
	right: 8px;
	z-index: 1000000;
	padding: .4rem .7rem;
	border: 1px solid #777;
	border-radius: .3rem;
	background: #fffbe6;
	color: #222;
	font: 600 .8rem/1.4 system-ui, sans-serif;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.mtc-boot-badge.mtc-bad {
	background: #ffe0e0;
	color: #7a1010;
	font-weight: 700;
}
