:root {
  --theme-primary: #1890ff;
  --theme-secondary: #f0f0f0;
  --theme-background: #ffffff;
  --theme-surface: #fafafa;
  --theme-text: #262626;
  --theme-text-secondary: #8c8c8c;
  --theme-border: #d9d9d9;
  --theme-header: #ffffff;
  --theme-footer: #f5f5f5;
  --theme-accent: #52c41a;
  --theme-success: #52c41a;
  --theme-warning: #faad14;
  --theme-error: #ff4d4f;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--theme-background);
  color: var(--theme-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

#root {
  height: 100vh;
}

/* Стили для плавных переходов между темами */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Кастомные стили для компонентов Ant Design */
.ant-layout-header {
  transition: all 0.3s ease !important;
}

.ant-layout-content {
  transition: all 0.3s ease !important;
}

.ant-layout-footer {
  transition: all 0.3s ease !important;
}

.ant-typography {
  transition: color 0.3s ease !important;
}

/* Стили для выпадающего меню тем */
.ant-dropdown-menu {
  border-radius: 8px !important;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
}

.ant-dropdown-menu-item {
  border-radius: 6px !important;
  margin: 4px 8px !important;
}

.ant-dropdown-menu-item:hover {
  background-color: var(--theme-secondary) !important;
}
