/* Balanced CSS Variables for harmonious theming */
:root {
  /* Core color foundation - mathematically harmonious */
  --primary-hue: 235;
  --primary-saturation: 65%;
  --secondary-hue: 200;
  --accent-hue: 160;

  /* Light theme - softer, less stark */
  --bg-primary: linear-gradient(135deg, hsl(var(--primary-hue), 12%, 92%) 0%, hsl(var(--secondary-hue), 15%, 90%) 100%);
  --bg-secondary: rgba(255, 255, 255, 0.92);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-input: hsl(var(--primary-hue), 15%, 94%);
  --bg-button-primary: hsl(var(--primary-hue), var(--primary-saturation), 55%);
  --bg-button-secondary: hsl(var(--primary-hue), 12%, 88%);
  --bg-button-ghost: transparent;

  --text-primary: hsl(var(--primary-hue), 20%, 20%);
  --text-secondary: hsl(var(--primary-hue), 12%, 40%);
  --text-muted: hsl(var(--primary-hue), 8%, 58%);
  --text-inverse: white;
  --text-button-primary: white;
  --text-button-secondary: hsl(var(--primary-hue), 20%, 30%);

  --border-color: hsl(var(--primary-hue), 15%, 82%);
  --border-input: hsl(var(--primary-hue), 12%, 78%);
  --border-focus: hsl(var(--primary-hue), var(--primary-saturation), 55%);

  --shadow-card: 0 4px 20px hsla(var(--primary-hue), 25%, 25%, 0.12);
  --shadow-button: 0 2px 8px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.25);
  --shadow-button-hover: 0 4px 16px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.35);

  /* Harmonious accent colors */
  --accent-success: hsl(var(--accent-hue), 65%, 45%);
  --accent-error: hsl(0, 70%, 55%);
  --accent-warning: hsl(35, 85%, 55%);
  --accent-info: hsl(var(--primary-hue), 35%, 60%);

  /* Spacing system */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;
}

/* Dark theme - balanced complement to light theme */
[data-theme="dark"] {
  --bg-primary: linear-gradient(135deg, hsl(var(--primary-hue), 15%, 18%) 0%, hsl(var(--secondary-hue), 12%, 22%) 100%);
  --bg-secondary: hsla(var(--primary-hue), 18%, 20%, 0.92);
  --bg-card: hsla(var(--primary-hue), 15%, 24%, 0.88);
  --bg-input: hsl(var(--primary-hue), 12%, 28%);
  --bg-button-primary: hsl(var(--primary-hue), var(--primary-saturation), 58%);
  --bg-button-secondary: hsl(var(--primary-hue), 12%, 32%);
  --bg-button-ghost: transparent;

  --text-primary: hsl(var(--primary-hue), 12%, 85%);
  --text-secondary: hsl(var(--primary-hue), 8%, 68%);
  --text-muted: hsl(var(--primary-hue), 6%, 52%);
  --text-inverse: hsl(var(--primary-hue), 15%, 18%);
  --text-button-primary: white;
  --text-button-secondary: hsl(var(--primary-hue), 12%, 78%);

  --border-color: hsl(var(--primary-hue), 12%, 38%);
  --border-input: hsl(var(--primary-hue), 10%, 42%);
  --border-focus: hsl(var(--primary-hue), var(--primary-saturation), 58%);

  --shadow-card: 0 4px 20px hsla(var(--primary-hue), 20%, 10%, 0.25);
  --shadow-button: 0 2px 8px hsla(var(--primary-hue), var(--primary-saturation), 58%, 0.3);
  --shadow-button-hover: 0 4px 16px hsla(var(--primary-hue), var(--primary-saturation), 58%, 0.4);

  /* Balanced accent colors for dark theme */
  --accent-success: hsl(var(--accent-hue), 55%, 52%);
  --accent-error: hsl(0, 60%, 58%);
  --accent-warning: hsl(35, 75%, 58%);
  --accent-info: hsl(var(--primary-hue), 28%, 68%);
}

/* Consolidated button styling system */
.btn-primary, .btn-secondary, .btn-ghost {
  border: none;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--bg-button-primary);
  color: var(--text-button-primary);
  font-weight: 600;
  box-shadow: var(--shadow-button);
}

.btn-secondary {
  background: var(--bg-button-secondary);
  color: var(--text-button-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost {
  background: var(--bg-button-ghost);
  color: var(--border-focus);
  border: 1px solid transparent;
}

.btn-primary:hover, .btn-secondary:hover, .btn-ghost:hover {
  transform: translateY(-1px);
}

.btn-primary:active, .btn-secondary:active, .btn-ghost:active {
  transform: translateY(0);
}

.btn-primary:hover {
  background: hsl(var(--primary-hue), var(--primary-saturation), 50%);
  box-shadow: var(--shadow-button-hover);
}

.btn-secondary:hover, .btn-ghost:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
}

.btn-ghost:hover {
  border-color: var(--border-color);
}

[data-theme="dark"] .btn-primary:hover {
  background: hsl(var(--primary-hue), var(--primary-saturation), 65%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 400px;
  min-height: 600px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xl);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  font-size: 24px;
  margin-right: var(--spacing-md);
}

.logo h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.settings-container {
  position: relative;
}

.settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  min-width: 200px;
  z-index: 1000;
}

.settings-dropdown.hidden {
  display: none;
}

.settings-item {
  margin-bottom: var(--spacing-md);
}

.settings-item:last-child {
  margin-bottom: 0;
}

.settings-item label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.timeout-input-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.timeout-input-group input {
  width: 60px;
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
  text-align: center;
}

.timeout-input-group input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.15);
}

.timeout-input-group span {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-icon-only {
  background: var(--bg-button-ghost);
  border: none;
  border-radius: 8px;
  padding: var(--spacing-sm);
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.btn-icon-only:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--spacing-md);
}



#statusText {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}



/* Enhanced lock button styling */
#lockBtn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 13px;
  border-radius: 8px;
}

#lockBtn svg {
  width: 14px;
  height: 14px;
}

/* Vault status lock button styling */
.vault-status #lockBtn {
  background: var(--bg-button-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.vault-status #lockBtn:hover {
  background: var(--bg-input);
  border-color: var(--border-focus);
  color: var(--text-primary);
}



/* Sections */
.section {
  padding: var(--spacing-xl);
  flex: 1;
}

.section:last-child {
  padding-bottom: var(--spacing-xl);
}

.section.hidden {
  display: none;
}

/* Center the auth section */
#authSection {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px); /* Account for header height */
  padding: var(--spacing-3xl) var(--spacing-xl);
}

#authSection .card {
  width: 100%;
  max-width: 350px;
  margin: 0;
}

.hidden {
  display: none !important;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.card h2, .card h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  font-weight: 600;
}

.card h2 {
  font-size: 18px;
}

.card h3 {
  font-size: 16px;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}



input, select, textarea {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-input);
  border-radius: 12px;
  background: var(--bg-input);
  font-size: 14px;
  color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.15);
}

/* Placeholder styling */
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}

/* Dark theme placeholder styling */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.select {
  flex: 1;
}

/* Buttons */
.btn {
  padding: var(--spacing-md) var(--spacing-2xl);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Button styles are defined above - removing duplicates */

.btn-small {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
  color: white;
}

.btn-secondary.loading::after {
  color: var(--text-secondary);
}

@keyframes btn-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.button-group {
  display: flex;
  gap: var(--spacing-md);
}

.btn-copy {
  background: var(--bg-button-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  flex-shrink: 0;
  height: fit-content;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-copy:hover {
  background: var(--bg-input);
  border-color: var(--border-focus);
  color: var(--border-focus);
  transform: translateY(-1px);
}

.encrypt-result .btn-copy:hover {
  border-color: var(--accent-success);
  color: var(--accent-success);
}

.decrypt-result .btn-copy:hover {
  border-color: var(--accent-info);
  color: var(--accent-info);
}

.btn-copy svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* Vault Header */
.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

/* Vault Status Section */
.vault-status {
  padding: 0 0 var(--spacing-lg) 0;
  margin-bottom: var(--spacing-lg);
}

.vault-header h2 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

/* Add Keypair Toggle */
.add-keypair-toggle {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.btn-icon {
  margin-right: var(--spacing-sm);
  font-weight: bold;
}

.add-keypair-form {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.add-keypair-form:not(.hidden) {
  max-height: 300px;
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 6px;
  line-height: 1;
}

.btn-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-error);
}



.form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Keypairs List */
.keypairs-list {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-xs);
  margin: -var(--spacing-xs);
}

.keypair-item {
  padding: var(--spacing-lg);
  border-radius: 12px;
  margin-bottom: var(--spacing-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.keypair-item:last-child {
  margin-bottom: 0;
}

.keypair-item:hover {
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.keypair-item:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px hsla(var(--primary-hue), var(--primary-saturation), 55%, 0.15);
}

.keypair-item.selected {
  background: hsla(var(--accent-hue), 50%, 95%, 0.8);
  border-color: var(--accent-success);
  box-shadow: 0 4px 16px hsla(var(--accent-hue), 50%, 50%, 0.15);
}

[data-theme="dark"] .keypair-item.selected {
  background: hsla(var(--accent-hue), 30%, 15%, 0.8);
}

.keypair-item.selected .keypair-name {
  color: var(--accent-success);
  font-weight: 600;
}

.keypair-item.selected .keypair-type {
  background: hsla(var(--accent-hue), 50%, 80%, 0.8);
  color: var(--accent-success);
}

[data-theme="dark"] .keypair-item.selected .keypair-type {
  background: hsla(var(--accent-hue), 40%, 25%, 0.8);
}

.keypair-info {
  width: 100%;
}

.keypair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.keypair-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.keypair-type {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  background: hsla(var(--primary-hue), 40%, 85%, 0.6);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

[data-theme="dark"] .keypair-type {
  background: hsla(var(--primary-hue), 30%, 25%, 0.8);
}

.empty-state, .loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 20px;
}

/* Selected Keypair Info */
.keypair-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.keypair-info .info-row:last-child {
  border-bottom: none;
}

.keypair-info label {
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.public-key-container, .signature-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.keypair-info code, .signature-result code, .encrypt-result code, .decrypt-result code {
  background: var(--bg-input);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  word-break: break-all;
  flex: 1;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.encrypt-result code {
  background: var(--bg-card);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--text-primary);
}

.decrypt-result code {
  background: var(--bg-card);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--text-primary);
}

/* Enhanced Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 320px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.toast-show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.toast-hide {
  transform: translateX(100%);
  opacity: 0;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-message {
  line-height: 1.5;
  word-wrap: break-word;
}



/* Success Toast */
.toast-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
  color: white;
  border-color: rgba(16, 185, 129, 0.3);
}

.toast-success .toast-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Error Toast */
.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
  color: white;
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-error .toast-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Info Toast */
.toast-info {
  background: var(--accent-info);
  color: white;
  border-color: hsla(var(--primary-hue), 35%, 60%, 0.3);
}

.toast-info .toast-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}



/* Scrollbar Styles */
.keypairs-list::-webkit-scrollbar,
.encrypt-result code::-webkit-scrollbar,
.decrypt-result code::-webkit-scrollbar,
.signature-result code::-webkit-scrollbar {
  width: 6px;
}

.keypairs-list::-webkit-scrollbar-track,
.encrypt-result code::-webkit-scrollbar-track,
.decrypt-result code::-webkit-scrollbar-track,
.signature-result code::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 3px;
}

.keypairs-list::-webkit-scrollbar-thumb,
.encrypt-result code::-webkit-scrollbar-thumb,
.decrypt-result code::-webkit-scrollbar-thumb,
.signature-result code::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.keypairs-list::-webkit-scrollbar-thumb:hover,
.encrypt-result code::-webkit-scrollbar-thumb:hover,
.decrypt-result code::-webkit-scrollbar-thumb:hover,
.signature-result code::-webkit-scrollbar-thumb:hover {
  background: var(--border-focus);
}









/* Operation Tabs */
.operation-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

/* Hide scrollbar for webkit browsers */
.operation-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  flex-shrink: 0; /* Prevent tabs from shrinking */
  min-width: fit-content;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  background: var(--bg-input);
  color: var(--text-secondary);
}

.tab-btn.active {
  background: var(--bg-input);
  color: var(--border-focus);
  border-bottom-color: var(--border-focus);
  font-weight: 600;
}

/* Dark theme tab styling - white text for unselected tabs */
[data-theme="dark"] .tab-btn {
  color: var(--text-primary);
}

[data-theme="dark"] .tab-btn:hover,
[data-theme="dark"] .tab-btn.active {
  color: var(--border-focus);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Consolidated result styling */
.encrypt-result, .decrypt-result, .verify-result, .signature-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.encrypt-result, .signature-result {
  background: hsla(var(--accent-hue), 60%, 95%, 0.8);
  border-color: hsla(var(--accent-hue), 50%, 70%, 0.3);
  box-shadow: 0 2px 12px hsla(var(--accent-hue), 50%, 50%, 0.1);
}

.decrypt-result {
  background: hsla(var(--secondary-hue), 60%, 95%, 0.8);
  border-color: hsla(var(--secondary-hue), 50%, 70%, 0.3);
  box-shadow: 0 2px 12px hsla(var(--secondary-hue), 50%, 50%, 0.1);
}

.verify-result {
  background: hsla(var(--primary-hue), 30%, 95%, 0.8);
  border-color: hsla(var(--primary-hue), 40%, 70%, 0.3);
  box-shadow: 0 2px 12px hsla(var(--primary-hue), 40%, 50%, 0.1);
}

[data-theme="dark"] .encrypt-result,
[data-theme="dark"] .signature-result {
  background: hsla(var(--accent-hue), 40%, 15%, 0.6);
  border-color: hsla(var(--accent-hue), 50%, 40%, 0.4);
}

[data-theme="dark"] .decrypt-result {
  background: hsla(var(--secondary-hue), 40%, 15%, 0.6);
  border-color: hsla(var(--secondary-hue), 50%, 40%, 0.4);
}

[data-theme="dark"] .verify-result {
  background: hsla(var(--primary-hue), 20%, 15%, 0.6);
  border-color: hsla(var(--primary-hue), 30%, 40%, 0.4);
}

.encrypt-result label, .decrypt-result label, .signature-result label {
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
  font-size: 14px;
}

.encrypt-result label, .signature-result label {
  color: var(--accent-success);
}

.decrypt-result label {
  color: var(--accent-info);
}

.verification-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}

.verification-status.valid {
  color: var(--accent-success);
}

.verification-status.invalid {
  color: var(--accent-error);
}

.verification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verification-icon svg {
  width: 20px;
  height: 20px;
}