/* AES Encryption specific styles */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 10px 20px;
  border: 2px solid #e1e8ed;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.tab-btn:hover:not(.active) {
  border-color: #667eea;
  background: #f8f9fa;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.key-section {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #e1e8ed;
  margin-bottom: 16px;
}

.key-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.key-input-group .input-field {
  flex: 1;
}

.key-input-group .btn {
  white-space: nowrap;
  padding: 10px 16px;
}

.test-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-btn {
  padding: 6px 12px;
  border: 2px solid #e1e8ed;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.test-btn:hover {
  border-color: #667eea;
  background: #f8f9fa;
}

.help-content {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.help-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
}

.help-content strong {
  color: #2c3e50;
}

.processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.processing-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #667eea;
  font-weight: 600;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 6px;
  border: 2px solid #f5c6cb;
  margin-top: 12px;
  font-size: 13px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: 6px;
  border: 2px solid #c3e6cb;
  margin-top: 12px;
  font-size: 13px;
}

.key-info {
  font-size: 11px;
  color: #6c757d;
  margin-top: 4px;
}

.mode-encrypt .encrypt-only {
  display: block;
}

.mode-encrypt .decrypt-only {
  display: none;
}

.mode-decrypt .encrypt-only {
  display: none;
}

.mode-decrypt .decrypt-only {
  display: block;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .key-input-group {
    flex-direction: column;
  }
  
  .test-cases {
    justify-content: center;
  }
  
  .mode-tabs {
    flex-direction: column;
  }
}