* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#root {
  width: 100%;
  height: 100%;
}

/* Global transitions for smooth theme switching */
.ant-layout,
.ant-layout-header,
.ant-layout-sider,
.ant-layout-content,
.ant-card,
.ant-collapse,
.ant-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.6);
}

/* History item hover effect */
.history-item {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.history-item:hover {
  background-color: rgba(24, 144, 255, 0.08) !important;
  transform: translateX(4px);
}

/* Button hover enhancement */
.ant-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-btn:hover {
  transform: translateY(-1px);
}

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

/* Card subtle shadow */
.ant-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.ant-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Collapse panel enhancement */
.ant-collapse {
  border-radius: 8px !important;
  overflow: hidden;
}

.ant-collapse-item {
  border-radius: 0 !important;
}

/* Slider enhancement */
.ant-slider-handle {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ant-slider-handle:hover {
  transform: scale(1.2);
}

/* Select dropdown enhancement */
.ant-select-dropdown {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Alert enhancement */
.ant-alert {
  border-radius: 8px;
}
