﻿.image-base64-tool-page{
	max-width: 72em;
	color: #122033;
}

.image-base64-tool{
	display: grid;
	gap: 1em;
	color: #122033;
}

.image-base64-tool h2,
.image-base64-tool h3,
.image-base64-tool p,
.image-base64-tool span,
.image-base64-tool strong,
.image-base64-tool label{
	color: inherit;
}

.image-base64-tool__toolbar{
	display: flex;
	flex-wrap: wrap;
	gap: 0.55em;
	align-items: center;
}

.image-base64-tool__button{
	appearance: none;
	border: solid 1px rgba(96, 125, 159, 0.34);
	border-radius: 0.45em;
	background: #f7fafc;
	color: #14324a;
	padding: 0.55em 0.8em;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.image-base64-tool__button:hover,
.image-base64-tool__button:focus{
	border-color: #2563eb;
	background: #eff6ff;
	color: #0f3f8f;
}

.image-base64-tool__button--primary{
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.image-base64-tool__button--primary:hover,
.image-base64-tool__button--primary:focus{
	background: #1d4ed8;
	color: #ffffff;
}

.image-base64-tool__grid{
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1em;
	align-items: stretch;
}

.image-base64-tool__panel{
	display: grid;
	grid-template-rows: auto minmax(16em, 1fr);
	border: solid 1px rgba(96, 125, 159, 0.28);
	border-radius: 0.6em;
	overflow: hidden;
	background: #ffffff;
}

.image-base64-tool__panel--preview,
.image-base64-tool__panel--output{
	grid-template-rows: auto minmax(12em, auto);
}

.image-base64-tool__panel-header{
	display: flex;
	justify-content: space-between;
	gap: 1em;
	align-items: center;
	padding: 0.65em 0.8em;
	background: #eef5ff;
	border-bottom: solid 1px rgba(96, 125, 159, 0.22);
	color: #123963;
	font-weight: 700;
}

.image-base64-tool__panel-header h2,
.image-base64-tool__panel-header h3{
	margin: 0;
	font-size: 1em;
	line-height: 1.2;
}

.image-base64-tool__meta{
	color: #64748b;
	font-size: 0.84em;
	font-weight: 500;
}

.image-base64-tool__drop{
	display: grid;
	place-items: center;
	align-content: center;
	gap: 0.65em;
	min-height: 16em;
	padding: 1em;
	border: dashed 0.14em rgba(96, 125, 159, 0.4);
	background: #fbfdff;
	text-align: center;
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.image-base64-tool__drop.is-dragover{
	border-color: #2563eb;
	background: #eff6ff;
}

.image-base64-tool__drop input{
	max-width: 100%;
}

.image-base64-tool__drop strong{
	font-size: 1.2em;
}

.image-base64-tool__drop span{
	color: #64748b;
}

.image-base64-tool__input,
.image-base64-tool__outputs textarea{
	width: 100%;
	border: 0;
	border-radius: 0;
	padding: 1em;
	resize: vertical;
	font: 0.92em/1.55 Consolas, "Courier New", monospace;
	color: #122033;
	background: #fbfdff;
	outline: none;
	tab-size: 2;
}

.image-base64-tool__input{
	min-height: 16em;
}

.image-base64-tool__input:focus,
.image-base64-tool__outputs textarea:focus{
	box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.image-base64-tool__preview{
	display: grid;
	place-items: center;
	min-height: 14em;
	padding: 1em;
	background: linear-gradient(45deg, #eef2f7 25%, transparent 25%),
		linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #eef2f7 75%),
		linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
	background-color: #ffffff;
	background-position: 0 0, 0 0.5em, 0.5em -0.5em, -0.5em 0;
	background-size: 1em 1em;
}

.image-base64-tool__preview img{
	display: none;
	max-width: 100%;
	max-height: 28em;
	border-radius: 0.4em;
	background: #ffffff;
	box-shadow: 0 0.4em 1.2em rgba(15, 23, 42, 0.16);
}

.image-base64-tool__outputs{
	display: grid;
	gap: 0.75em;
	padding: 0.85em;
}

.image-base64-tool__outputs label{
	display: grid;
	gap: 0.3em;
	font-weight: 700;
}

.image-base64-tool__outputs textarea{
	min-height: 5.5em;
	border: solid 1px rgba(96, 125, 159, 0.22);
	border-radius: 0.45em;
	background: #111827;
	color: #d1d5db;
}

.image-base64-tool__status{
	display: flex;
	flex-wrap: wrap;
	gap: 0.65em;
	align-items: center;
	min-height: 2.8em;
	padding: 0.7em 0.85em;
	border: solid 1px rgba(96, 125, 159, 0.28);
	border-radius: 0.55em;
	background: #f8fafc;
	color: #475569;
}

.image-base64-tool__status.is-valid{
	border-color: rgba(22, 163, 74, 0.35);
	background: #f0fdf4;
	color: #166534;
}

.image-base64-tool__status.is-invalid{
	border-color: rgba(220, 38, 38, 0.38);
	background: #fef2f2;
	color: #991b1b;
}

.image-base64-tool__details{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75em;
}

.image-base64-tool__stat{
	border: solid 1px rgba(96, 125, 159, 0.22);
	border-radius: 0.5em;
	padding: 0.7em;
	background: #ffffff;
}

.image-base64-tool__stat span{
	display: block;
	color: #64748b;
	font-size: 0.8em;
}

.image-base64-tool__stat strong{
	display: block;
	color: #122033;
	font-size: 1.05em;
	overflow-wrap: anywhere;
}

.dark .image-base64-tool-page,
.dark .image-base64-tool{
	color: #e5e7eb;
}

.dark .image-base64-tool__button{
	background: #1f2937;
	border-color: rgba(148, 163, 184, 0.28);
	color: #e5e7eb;
}

.dark .image-base64-tool__button:hover,
.dark .image-base64-tool__button:focus{
	background: #172554;
	border-color: #60a5fa;
	color: #ffffff;
}

.dark .image-base64-tool__button--primary{
	background: #2563eb;
	border-color: #60a5fa;
	color: #ffffff;
}

.dark .image-base64-tool__panel,
.dark .image-base64-tool__stat{
	background: #111827;
	border-color: rgba(148, 163, 184, 0.22);
}

.dark .image-base64-tool__panel-header{
	background: #1f2937;
	border-bottom-color: rgba(148, 163, 184, 0.2);
	color: #dbeafe;
}

.dark .image-base64-tool__drop,
.dark .image-base64-tool__input{
	background: #0f172a;
	color: #e5e7eb;
}

.dark .image-base64-tool__drop.is-dragover{
	background: #172554;
}

.dark .image-base64-tool__drop span,
.dark .image-base64-tool__meta,
.dark .image-base64-tool__stat span{
	color: rgba(229, 231, 235, 0.68);
}

.dark .image-base64-tool__preview{
	background-color: #0f172a;
	background-image: linear-gradient(45deg, #182235 25%, transparent 25%),
		linear-gradient(-45deg, #182235 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #182235 75%),
		linear-gradient(-45deg, transparent 75%, #182235 75%);
}

.dark .image-base64-tool__outputs textarea{
	background: #0b1220;
	border-color: rgba(148, 163, 184, 0.22);
	color: #d1d5db;
}

.dark .image-base64-tool__status{
	background: #111827;
	border-color: rgba(148, 163, 184, 0.22);
	color: #d1d5db;
}

.dark .image-base64-tool__status.is-valid{
	background: #052e16;
	color: #bbf7d0;
}

.dark .image-base64-tool__status.is-invalid{
	background: #450a0a;
	color: #fecaca;
}

.dark .image-base64-tool__stat strong{
	color: #ffffff;
}

@media (max-width: 900px){
	.image-base64-tool__grid,
	.image-base64-tool__details{
		grid-template-columns: 1fr;
	}
}

