/* ═══════════════════════════════════════════════════════════════════════════
   ⌨️ COMMAND MANAGER STYLES - Cyberpunk Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* Command Item Styles */
.cyber-command-item {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cyber-command-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
  transition: left 0.5s ease;
}

.cyber-command-item:hover::before {
  left: 100%;
}

.cyber-command-item:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

/* Command Name Badge */
.cyber-command-name {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
  }
}

/* Language Badge */
.cyber-lang-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(6, 182, 212, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category Badge */
.cyber-category-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* Tags */
.cyber-tag {
  display: inline-block;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Code Preview */
.cyber-code-preview {
  background: #000;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  max-height: 150px;
  overflow: hidden;
  position: relative;
}

.cyber-code-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

.cyber-code-preview pre {
  margin: 0;
  color: #22c55e;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.cyber-code-preview code {
  color: #22c55e;
  font-family: 'Roboto Mono', monospace;
}

/* Icon Buttons */
.cyber-btn-icon {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.cyber-btn-icon:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  transform: scale(1.1);
}

.cyber-btn-icon-edit:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.cyber-btn-icon-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Scrollbar Styling */
.cyber-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.cyber-scrollbar::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 4px;
}

.cyber-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 4px;
}

.cyber-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Keyboard Shortcut Badge */
.cyber-kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #1a1a1a;
  border: 1px solid #ef4444;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  color: #ef4444;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0 2px;
}

/* Notification Styles (reuse from card-manager) */
.cyber-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: #1a1a1a;
  border: 2px solid #ef4444;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

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

.cyber-notification-success {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.cyber-notification-error {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.cyber-notification-info {
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.cyber-notification-warning {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* Input Group Styles (reuse from card-manager) */
.cyber-input-group {
  margin-bottom: 1.25rem;
}

.cyber-label {
  display: block;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cyber-input,
.cyber-textarea {
  width: 100%;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.cyber-input:focus,
.cyber-textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  background: rgba(26, 26, 26, 0.95);
}

.cyber-input::placeholder,
.cyber-textarea::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .cyber-admin-panel {
    max-width: 95vw;
  }
  
  .cyber-command-item {
    flex-direction: column;
  }
  
  .cyber-command-item .flex {
    flex-direction: column;
  }
  
  .cyber-btn-icon {
    width: 100%;
    height: 36px;
  }
}

