/**
 * FIRMWARE D0 PANEL - Style POST/BIOS
 * Interface D0-L1 flottante déplaçable
 */

.d0-firmware-panel {
  position: fixed;
  top: 50px;
  right: 50px;
  width: 400px;
  background: #000000;
  color: #00ff00;
  border: 2px solid #333333;
  font-family: 'Fixedsys', 'MS Sans Serif', monospace;
  font-size: 14px;
  line-height: 1.2;
  z-index: 10000;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

.d0-firmware-panel.dragging {
  cursor: move;
  opacity: 0.9;
}

/* Header déplaçable */
.firmware-header {
  background: #000000;
  border-bottom: 1px solid #333333;
  padding: 8px 12px;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.firmware-title {
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
}

.firmware-status {
  color: #00ff00;
  font-size: 12px;
  animation: firmware-blink 2s infinite;
}

@keyframes firmware-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.7; }
}

/* Contenu panel */
.firmware-content {
  padding: 16px;
  background: #000000;
}

.firmware-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin: 4px 0;
  border: 1px solid #333333;
  background: #111111;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.firmware-option:hover,
.firmware-option.firmware-hover {
  background: #222222;
  border-color: #00ff00;
  animation: firmware-pulse 1.5s infinite ease-in-out;
}

@keyframes firmware-pulse {
  0%, 100% { 
    background: #222222;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
  }
  50% { 
    background: #333333;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
}

.firmware-option:active {
  background: #333333;
  transform: scale(0.98);
}

.option-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.option-status {
  color: #00ff00;
  font-size: 12px;
  min-width: 80px;
  text-align: right;
  animation: status-fade 0.5s ease-in-out;
}

@keyframes status-fade {
  0% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Status colors */
.option-status:contains("ACTIVE") {
  color: #00ff00;
}

.option-status:contains("INACTIVE") {
  color: #ffff00;
}

.option-status:contains("PROCESSING") {
  color: #ff8800;
  animation: processing-blink 0.5s infinite;
}

@keyframes processing-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

.option-status:contains("COMPLETE") {
  color: #00ff00;
  animation: complete-flash 0.3s ease-out;
}

@keyframes complete-flash {
  0% { color: #00ff00; transform: scale(1); }
  50% { color: #ffffff; transform: scale(1.1); }
  100% { color: #00ff00; transform: scale(1); }
}

.option-status:contains("TERMINATING") {
  color: #ff0000;
  animation: terminate-blink 0.3s infinite;
}

@keyframes terminate-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
  .d0-firmware-panel {
    width: 300px;
    right: 10px;
    top: 10px;
  }
  
  .firmware-title {
    font-size: 14px;
  }
  
  .option-text {
    font-size: 12px;
  }
}

/* Animation d'apparition */
.d0-firmware-panel {
  animation: firmware-startup 0.8s ease-out;
}

@keyframes firmware-startup {
  0% {
    opacity: 0;
    transform: scale(0.8) translate(50px, -50px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
}

/* Scrollbar firmware style si nécessaire */
.firmware-content::-webkit-scrollbar {
  width: 8px;
}

.firmware-content::-webkit-scrollbar-track {
  background: #000000;
}

.firmware-content::-webkit-scrollbar-thumb {
  background: #333333;
  border: 1px solid #00ff00;
}

.firmware-content::-webkit-scrollbar-thumb:hover {
  background: #00ff00;
}