/**
 * SHA256 Generator Frontend Styles
 *
 * @package SHA256_Generator
 */

/* Base Styles */
.sha256-tool {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
}

.sha256-tool-dark {
	background: #1e1e1e;
	border-color: #444;
	color: #e0e0e0;
}

/* Header */
.sha256-tool-header {
	margin-bottom: 20px;
}

.sha256-tool-title {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: 600;
	color: #333;
}

.sha256-tool-dark .sha256-tool-title {
	color: #fff;
}

/* Tabs */
.sha256-tool-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid #eee;
}

.sha256-tool-dark .sha256-tool-tabs {
	border-bottom-color: #444;
}

.sha256-tab {
	padding: 10px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: 16px;
	color: #666;
	transition: all 0.2s;
	margin-bottom: -2px;
}

.sha256-tool-dark .sha256-tab {
	color: #999;
}

.sha256-tab:hover {
	color: #333;
}

.sha256-tool-dark .sha256-tab:hover {
	color: #fff;
}

.sha256-tab-active {
	color: #0073aa;
	border-bottom-color: #0073aa;
	font-weight: 600;
}

.sha256-tool-dark .sha256-tab-active {
	color: #4a9eff;
	border-bottom-color: #4a9eff;
}

/* Panels */
.sha256-tool-panel {
	display: none;
}

.sha256-tool-panel-active {
	display: block;
}

/* Input Groups */
.sha256-input-group {
	margin-bottom: 20px;
}

.sha256-input-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.sha256-tool-dark .sha256-input-group label {
	color: #e0e0e0;
}

.sha256-text-input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: monospace;
	resize: vertical;
	box-sizing: border-box;
	background: #fff;
	color: #333;
}

.sha256-tool-dark .sha256-text-input {
	background: #2a2a2a;
	border-color: #555;
	color: #e0e0e0;
}

.sha256-text-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.sha256-tool-dark .sha256-text-input:focus {
	border-color: #4a9eff;
	box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.sha256-char-counter {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
	text-align: right;
}

.sha256-tool-dark .sha256-char-counter {
	color: #999;
}

.sha256-char-counter-over {
	color: #d63638;
}

.sha256-tool-dark .sha256-char-counter-over {
	color: #ff6b6b;
}

.sha256-file-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
	color: #333;
}

.sha256-tool-dark .sha256-file-input {
	background: #2a2a2a;
	border-color: #555;
	color: #e0e0e0;
}

.sha256-file-info {
	margin-top: 10px;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 4px;
	font-size: 14px;
}

.sha256-tool-dark .sha256-file-info {
	background: #2a2a2a;
}

.sha256-file-name {
	font-weight: 500;
	display: block;
	margin-bottom: 5px;
}

.sha256-file-size {
	color: #666;
	font-size: 12px;
}

.sha256-tool-dark .sha256-file-size {
	color: #999;
}

/* Buttons */
.sha256-button-group {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.sha256-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	background: #f0f0f0;
	color: #333;
}

.sha256-tool-dark .sha256-btn {
	background: #3a3a3a;
	color: #e0e0e0;
}

.sha256-btn:hover {
	background: #e0e0e0;
}

.sha256-tool-dark .sha256-btn:hover {
	background: #4a4a4a;
}

.sha256-btn:active {
	transform: translateY(1px);
}

.sha256-btn-primary {
	background: #0073aa;
	color: #fff;
}

.sha256-tool-dark .sha256-btn-primary {
	background: #4a9eff;
}

.sha256-btn-primary:hover {
	background: #005a87;
}

.sha256-tool-dark .sha256-btn-primary:hover {
	background: #6bb0ff;
}

.sha256-btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.sha256-tool-dark .sha256-btn-secondary {
	background: #3a3a3a;
	color: #e0e0e0;
}

.sha256-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Advanced Settings */
.sha256-advanced-settings {
	margin-bottom: 20px;
	border-top: 1px solid #eee;
	padding-top: 20px;
}

.sha256-tool-dark .sha256-advanced-settings {
	border-top-color: #444;
}

.sha256-settings-toggle {
	width: 100%;
	padding: 10px;
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #333;
}

.sha256-tool-dark .sha256-settings-toggle {
	border-color: #555;
	color: #e0e0e0;
}

.sha256-settings-toggle:hover {
	background: #f5f5f5;
}

.sha256-tool-dark .sha256-settings-toggle:hover {
	background: #2a2a2a;
}

.sha256-settings-arrow {
	font-size: 12px;
}

.sha256-settings-content {
	margin-top: 15px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
}

.sha256-tool-dark .sha256-settings-content {
	background: #2a2a2a;
}

.sha256-setting-item {
	margin-bottom: 12px;
}

.sha256-setting-item:last-child {
	margin-bottom: 0;
}

.sha256-setting-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: normal;
	cursor: pointer;
}

.sha256-setting-item input[type="checkbox"] {
	margin: 0;
}

.sha256-setting-item select {
	padding: 5px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	margin-left: 8px;
}

.sha256-tool-dark .sha256-setting-item select {
	background: #1e1e1e;
	border-color: #555;
	color: #e0e0e0;
}

/* Output Area */
.sha256-output-area {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #eee;
}

.sha256-tool-dark .sha256-output-area {
	border-top-color: #444;
}

.sha256-output-area label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.sha256-tool-dark .sha256-output-area label {
	color: #e0e0e0;
}

.sha256-output-wrapper {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.sha256-output {
	flex: 1;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: monospace;
	background: #f9f9f9;
	color: #333;
	word-break: break-all;
}

.sha256-tool-dark .sha256-output {
	background: #2a2a2a;
	border-color: #555;
	color: #e0e0e0;
}

.sha256-output-actions {
	display: flex;
	gap: 5px;
	flex-shrink: 0;
}

.sha256-output-actions .sha256-btn {
	padding: 10px 15px;
	white-space: nowrap;
}

/* Status Messages */
.sha256-status-message {
	margin-top: 10px;
	padding: 10px;
	border-radius: 4px;
	font-size: 14px;
	min-height: 20px;
}

.sha256-status-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.sha256-tool-dark .sha256-status-success {
	background: #1e3a1e;
	color: #4ade80;
	border-color: #2d5a2d;
}

.sha256-status-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.sha256-tool-dark .sha256-status-error {
	background: #3a1e1e;
	color: #ff6b6b;
	border-color: #5a2d2d;
}

.sha256-status-loading {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.sha256-tool-dark .sha256-status-loading {
	background: #1e2a3a;
	color: #4a9eff;
	border-color: #2d4a5a;
}

/* Responsive */
@media (max-width: 768px) {
	.sha256-tool {
		margin: 10px;
		padding: 15px;
	}

	.sha256-output-wrapper {
		flex-direction: column;
	}

	.sha256-output-actions {
		width: 100%;
	}

	.sha256-output-actions .sha256-btn {
		flex: 1;
	}
}

/* Block Editor Preview */
.sha256-block-editor {
	padding: 20px;
	border: 1px dashed #ccc;
	border-radius: 4px;
	background: #f9f9f9;
}

.sha256-block-preview {
	text-align: center;
	padding: 20px;
}

.sha256-block-preview p {
	margin: 0;
}

