/* HTML Entity Encoder & Decoder - Page Specific Styles */

.html-entity-editor {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 20px;
}

.html-entity-editor .editor-panel {
	min-width: 0;
}

.html-entity-editor-heading {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
}

.html-entity-editor textarea {
	min-height: 250px;
	/* margin: 0; */
}

#entity-output {
	background: #f2f5fa;
}

#entity-status {
	margin-top: 16px;
	margin-bottom: 0;
}

#encode-btn,
#decode-btn {
	min-width: 76px;
}

#encode-btn.active,
#decode-btn.active {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

/* Button layout - Match URL Encoder & Decoder */

.html-entity-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.html-entity-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.html-entity-actions #swap-btn {
    margin-left: auto;
}

#encode-btn,
#decode-btn {
    min-width: 76px;
    background: var(--soft);
    border-color: #d8e2ff;
    color: var(--blue);
}

#encode-btn.active,
#decode-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

@media (max-width: 640px) {
    .html-entity-actions {
        align-items: stretch;
    }

    .html-entity-actions-left {
        width: 100%;
    }

    .html-entity-actions #swap-btn {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
	.html-entity-editor {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.html-entity-editor textarea {
		min-height: 190px;
	}

	.workspace-top {
		align-items: flex-start;
		flex-direction: column;
	}

	.action-row {
		gap: 12px;
	}

	#swap-btn {
		width: 100%;
	}
}
