.log-panel {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}

.log-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.log-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.log-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.log-clear-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.log-clear-button:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-1px);
}

.log-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.log-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.log-empty p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.8);
}

.log-empty span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.log-list {
  padding: 12px 0;
}

.log-entry {
  padding: 12px 20px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease;
}

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

.log-entry:hover {
  background: rgba(255, 255, 255, 0.05);
}

.log-entry.info {
  border-left-color: #2196F3;
}

.log-entry.warn {
  border-left-color: #FF9800;
}

.log-entry.error {
  border-left-color: #f44336;
}

.log-entry.success {
  border-left-color: #4CAF50;
}

.log-entry.debug {
  border-left-color: #9c27b0;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.log-icon {
  font-size: 1rem;
  line-height: 1;
}

.log-time {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.log-script {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.log-message {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
  margin-left: 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: pre-line;
}

.log-entry.error .log-message {
  color: #ffcdd2;
}

.log-entry.warn .log-message {
  color: #ffe0b2;
}

.log-entry.success .log-message {
  color: #c8e6c9;
}

.log-entry.debug .log-message {
  color: #e1bee7;
}

.log-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.log-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.filter-button.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-button.info.active {
  border-color: #2196f3;
  background: rgba(33, 150, 243, 0.2);
}

.filter-button.success.active {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.2);
}

.filter-button.warn.active {
  border-color: #ff9800;
  background: rgba(255, 152, 0, 0.2);
}

.filter-button.error.active {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.2);
}

.filter-button.debug.active {
  border-color: #9c27b0;
  background: rgba(156, 39, 176, 0.2);
}

.filter-icon {
  font-size: 0.9rem;
}

/* 自定义滚动条 */
.log-container::-webkit-scrollbar {
  width: 6px;
}

.log-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.log-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.log-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .log-header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .log-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .log-entry {
    padding: 10px 16px;
  }
  
  .log-message {
    margin-left: 20px;
    font-size: 0.85rem;
  }
  
  .log-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-buttons {
    gap: 6px;
  }

  .filter-button {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .log-footer {
    padding: 12px 16px;
  }
}
