footer {
  background: linear-gradient(90deg, #209CEE 60%, #0ea5e9 100%);
  color: #fff;
  text-align: center;
  padding: 16px 0;
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}

.footer-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1200px;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  white-space: nowrap;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.copyright {
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .footer-wrapper {
    gap: 16px;
    padding: 0 12px;
  }
  
  footer a {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .footer-wrapper {
    gap: 12px;
    padding: 0 8px;
  }
  
  footer {
    padding: 12px 0;
  }
}

/* Keyboard Help Modal Styles */
#keyboard-help-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keyboard-help-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.keyboard-help-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
}

[data-theme="dark"] .keyboard-help-content {
  background: #2d3748;
  color: #e2e8f0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.keyboard-help-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .keyboard-help-content h3 {
  color: #e2e8f0;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .shortcut-item {
  border-color: #4a5568;
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-item .keys {
  display: flex;
  gap: 4px;
  align-items: center;
}

.shortcut-item kbd {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 0.85em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

[data-theme="dark"] .shortcut-item kbd {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
}

.shortcut-item .desc {
  color: #64748b;
  font-size: 0.9em;
}

[data-theme="dark"] .shortcut-item .desc {
  color: #a0aec0;
}

.keyboard-help-content .hint {
  margin: 16px 0 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85em;
}

.keyboard-help-content .hint kbd {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.85em;
}

[data-theme="dark"] .keyboard-help-content .hint kbd {
  background: #4a5568;
  border-color: #718096;
}

/* Copy Toast Notification Styles */
.copy-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.copy-toast.success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.copy-toast.error {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

.copy-toast i {
  font-size: 1.1em;
}

/* Enhanced copy button styles */
.copy-btn, .btn-copy {
  transition: all 0.2s ease;
}

.copy-btn:active, .btn-copy:active {
  transform: scale(0.95);
}

/* History Panel Styles */
.history-panel {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .history-panel {
  background: #2d3748;
  border-color: #4a5568;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .history-header {
  border-color: #4a5568;
}

.history-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .history-header h4 {
  color: #e2e8f0;
}

.history-clear-btn {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s;
}

.history-clear-btn:hover {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f7fafc;
  border-radius: 6px;
  transition: all 0.2s;
}

[data-theme="dark"] .history-item {
  background: #1a202c;
}

.history-item:hover {
  background: #edf2f7;
}

[data-theme="dark"] .history-item:hover {
  background: #4a5568;
}

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

.history-preview {
  display: block;
  font-size: 0.85rem;
  color: #4a5568;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .history-preview {
  color: #e2e8f0;
}

.history-time {
  font-size: 0.75rem;
  color: #a0aec0;
}

.history-restore-btn {
  background: none;
  border: none;
  color: #4a90e2;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0;
}

.history-item:hover .history-restore-btn {
  opacity: 1;
}

.history-restore-btn:hover {
  background: rgba(74, 144, 226, 0.1);
}

/* Recent Tools Widget */
.recent-tools-widget {
  margin-bottom: 20px;
}

.recent-tools-widget h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
}

[data-theme="dark"] .recent-tools-widget h3 {
  color: #e2e8f0;
}

.recent-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-tools-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .recent-tools-list li {
  border-color: #4a5568;
}

.recent-tools-list li:last-child {
  border-bottom: none;
}

.recent-tools-list a {
  color: #4a90e2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.recent-tools-list a:hover {
  color: #3182ce;
}

.recent-time {
  font-size: 0.75rem;
  color: #a0aec0;
}
