/* CPU Turn Confirmation Modal */

.cpu-turn-confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999; /* High z-index to ensure visibility above everything */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop only - hide on mobile/touch devices */
@media (max-width: 1024px), (pointer: coarse) {
  .cpu-turn-confirm-modal {
    display: none !important;
  }
}

.cpu-confirm-content {
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 500px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.cpu-confirm-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cpu-confirm-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.cpu-confirm-log-section {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.cpu-confirm-log-section.collapsed {
  max-height: 0;
  opacity: 0;
}

.cpu-confirm-log-section.expanded {
  max-height: 400px;
  opacity: 1;
}

.cpu-confirm-turn-log {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 400px;
}

.cpu-confirm-turn-log .no-turn-entries {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.cpu-confirm-turn-log .turn-log-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.cpu-confirm-turn-log .turn-log-entry:last-child {
  margin-bottom: 0;
}

.cpu-confirm-turn-log .turn-log-timestamp {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
}

.cpu-confirm-turn-log .turn-log-message {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
}

/* Kind-specific colors for turn log entries */
.cpu-confirm-turn-log .turn-log-entry-damage {
  border-left-color: #ff4444;
}

.cpu-confirm-turn-log .turn-log-entry-heal {
  border-left-color: #44ff44;
}

.cpu-confirm-turn-log .turn-log-entry-energy {
  border-left-color: #ffaa00;
}

.cpu-confirm-turn-log .turn-log-entry-vp {
  border-left-color: #4488ff;
}

.cpu-confirm-turn-log .turn-log-entry-tokyo {
  border-left-color: #ff44ff;
}

.cpu-confirm-turn-log .turn-log-entry-system {
  border-left-color: #888888;
}

/* Scrollbar styling for turn log */
.cpu-confirm-turn-log::-webkit-scrollbar {
  width: 8px;
}

.cpu-confirm-turn-log::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.cpu-confirm-turn-log::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.cpu-confirm-turn-log::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cpu-confirm-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cpu-confirm-log-toggle {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  cursor: pointer;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.5px;
}

.cpu-confirm-log-toggle:hover {
  color: #fff;
}

.cpu-confirm-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
  color: #000 !important;
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
}

.cpu-confirm-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-1px);
}

.cpu-confirm-btn:active {
  transform: translateY(0);
}

.cpu-confirm-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
