/**
 * Hash Generator Styles
 */

#hashText {
	font-family: 'Courier New', monospace;
	font-size: 0.95rem;
}

.result-box {
	background-color: var(--bs-light);
	border: 1px solid var(--bs-border-color);
	border-radius: 0.5rem;
	overflow-x: auto;
}

.result-box pre {
	font-family: 'Courier New', monospace;
	color: var(--bs-primary);
	word-break: break-all;
}

.hash-table {
	font-size: 0.9rem;
}

.hash-table td {
	vertical-align: middle;
}

.hash-table .text-break {
	font-family: 'Courier New', monospace;
	font-size: 0.85rem;
	max-width: 600px;
}

/* Algorithm badges */
.algo-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-weight: 600;
	font-size: 0.85rem;
}

.algo-badge-md5 {
	background-color: #ffebee;
	color: #c62828;
}

.algo-badge-sha1 {
	background-color: #fff3e0;
	color: #ef6c00;
}

.algo-badge-sha256 {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.algo-badge-sha384 {
	background-color: #e3f2fd;
	color: #1565c0;
}

.algo-badge-sha512 {
	background-color: #f3e5f5;
	color: #7b1fa2;
}

/* Dark mode support */
[data-bs-theme='dark'] .result-box {
	background-color: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme='dark'] .result-box pre {
	color: var(--bs-info);
}

[data-bs-theme='dark'] .algo-badge-md5 {
	background-color: rgba(198, 40, 40, 0.2);
}

[data-bs-theme='dark'] .algo-badge-sha1 {
	background-color: rgba(239, 108, 0, 0.2);
}

[data-bs-theme='dark'] .algo-badge-sha256 {
	background-color: rgba(46, 125, 50, 0.2);
}

[data-bs-theme='dark'] .algo-badge-sha384 {
	background-color: rgba(21, 101, 192, 0.2);
}

[data-bs-theme='dark'] .algo-badge-sha512 {
	background-color: rgba(123, 31, 162, 0.2);
}

/* Animation for hash generation */
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.hash-generating {
	animation: pulse 1s infinite;
}
