/* D1 - D0 LOGIN MODAL - Style Win98/Vaporwave */
.d0-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(228, 226, 220, 0.9);
  backdrop-filter: none;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: flex-start;
  animation: fadeIn 0.3s ease-out;
}

.d0-login-modal {
  background: #e4e2dc;
  border: 2px outset #e4e2dc;
  border-radius: 0;
  padding: 20px;
  max-width: 300px;
  width: 90%;
  font-family: 'UnifontExMono', monospace;
  color: #000000;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease-out;
  margin-left: 20px;
  margin-top: 20px;
  
  /* Force pixelated rendering pour look retro */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  font-smooth: never;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

.d0-login-title {
  font-size: 14px !important;
  margin-bottom: 15px !important;
  text-align: center !important;
  color: #333 !important;
  letter-spacing: 1px !important;
  font-weight: bold !important;
  animation: subtlePulse 3s ease-in-out infinite !important;
  
  /* Font pixelated */
  -webkit-font-smoothing: none !important;
  -moz-osx-font-smoothing: unset !important;
  font-smooth: never !important;
}

@keyframes subtlePulse {
  0%, 100% { 
    opacity: 0.6 !important; 
  }
  50% { 
    opacity: 1 !important; 
  }
}

/* Animation typing pour status admin */
.d0-status-typing {
  font-family: 'UnifontExMono', monospace;
  white-space: nowrap;
}

.d0-status-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.8);
  margin-left: 2px;
  animation: blink 1s infinite;
}

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

.d0-login-input {
  width: 100%;
  background: #ffffff;
  border: 2px inset #e4e2dc;
  border-radius: 0;
  padding: 8px;
  font-family: 'UnifontExMono', monospace;
  font-size: 12px;
  color: #000000;
  margin-bottom: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
  
  /* Font pixelated */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

.d0-login-input:focus {
  outline: none;
  border: 2px inset #cccccc;
  background: #ffffff;
}

.d0-login-input::placeholder {
  color: #666666;
}

.d0-login-error {
  color: #cc0000;
  font-size: 11px;
  margin-top: 10px;
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  
  /* Font pixelated */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

.d0-login-success {
  color: #008800;
  font-size: 11px;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  
  /* Font pixelated */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

.d0-status-indicator {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  font-family: 'UnifontExMono', monospace !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  z-index: 99998 !important;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none !important;
}

.d0-status-indicator.visible {
  opacity: 1 !important;
}

.admin-trigger-zone {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 20px !important;
  height: 20px !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  transition: background-color 0.3s;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
}

.admin-trigger-zone:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* D0-L1 ADMIN SIDEBAR - Invisible avec ombre brune */
.admin-sidebar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(228, 226, 220, 0.02); /* Presque invisible */
  border: none;
  border-radius: 0;
  padding: 10px 8px;
  font-family: 'UnifontExMono', monospace;
  z-index: 99997;
  
  /* Ombre brune légère comme div flottante invisible */
  box-shadow: 2px 2px 6px rgba(139, 69, 19, 0.3);
  
  /* Font pixelated */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

.admin-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-control-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.admin-control-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: rgba(139, 69, 19, 0.8); /* Ton terre foncé */
  text-transform: uppercase;
  cursor: pointer;
  
  /* Font pixelated */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

.admin-control-label input[type="checkbox"] {
  margin: 0;
  margin-right: 4px;
  transform: scale(0.8);
}

.admin-control-btn {
  background: rgba(128, 128, 128, 0.9); /* Gris pour boutons */
  border: 1px outset #e4e2dc;
  border-radius: 0;
  padding: 3px 6px;
  font-family: 'UnifontExMono', monospace;
  font-size: 9px;
  color: #000000; /* Texte noir */
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
  
  /* Effet biseau Win98 */
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  
  /* Font pixelated */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

.admin-control-btn:hover {
  background: rgba(160, 160, 160, 0.9);
}

.admin-control-btn:active {
  border: 1px inset #e4e2dc;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-control-icon {
  font-size: 8px;
  margin-right: 2px;
  color: rgba(128, 128, 128, 1); /* Icônes grises */
}