@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #4F7CFF;
  --primary-light: #6B91FF;
  --primary-lighter: #E8EEFF;
  --primary-dark: #3A5FD9;
  
  --secondary-color: #6366F1;
  --secondary-light: #818CF8;
  
  --accent-color: #10B981;
  --accent-light: #34D399;
  
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --success-color: #10B981;
  --info-color: #3B82F6;
  
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-hover: #F1F5F9;
  
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --text-placeholder: #CBD5E1;
  
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  
  --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

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

html, body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.el-menu {
  font-family: var(--font-sans) !important;
  border-bottom: 1px solid var(--border-color) !important;
  background-color: var(--bg-secondary) !important;
}

.el-menu-item {
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
}

.el-menu-item:hover {
  background-color: var(--bg-hover) !important;
}

.el-menu-item.is-active {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color) !important;
  background-color: var(--primary-lighter) !important;
}

.el-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all var(--transition-normal) !important;
  background-color: var(--bg-secondary) !important;
}

.el-card:hover {
  box-shadow: var(--shadow-md) !important;
}

.el-card__header {
  border-bottom: 1px solid var(--border-light) !important;
  padding: 16px 20px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.el-card__body {
  padding: 20px !important;
}

.el-button--primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
}

.el-button--primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md) !important;
}

.el-button--default {
  font-weight: 500 !important;
  border-color: var(--border-color) !important;
  transition: all var(--transition-fast) !important;
}

.el-button--default:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: var(--primary-lighter) !important;
}

.el-input__wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  border: 1px solid var(--border-color) !important;
  transition: all var(--transition-fast) !important;
}

.el-input__wrapper:hover {
  border-color: var(--primary-light) !important;
}

.el-input__wrapper.is-focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px var(--primary-lighter) !important;
}

.el-select {
  --el-select-border-color-hover: var(--primary-light) !important;
}

.el-select .el-input__wrapper {
  border-radius: var(--radius-md) !important;
}

.el-select-dropdown {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-xl) !important;
  margin-top: 8px !important;
}

.el-select-dropdown__wrap {
  max-height: 320px !important;
}

.el-select-dropdown__item {
  padding: 10px 16px !important;
  line-height: 1.5 !important;
  transition: all var(--transition-fast) !important;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
  background-color: var(--primary-lighter) !important;
  color: var(--primary-color) !important;
}

.el-select-dropdown__item.is-selected {
  background-color: var(--primary-lighter) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.el-tag {
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  border: none !important;
}

.el-tag--success {
  background-color: #D1FAE5 !important;
  color: #059669 !important;
}

.el-tag--warning {
  background-color: #FEF3C7 !important;
  color: #D97706 !important;
}

.el-tag--danger {
  background-color: #FEE2E2 !important;
  color: #DC2626 !important;
}

.el-tag--info {
  background-color: #E0E7FF !important;
  color: #4F46E5 !important;
}

.el-table {
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
}

.el-table th.el-table__cell {
  background-color: var(--bg-tertiary) !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
}

.el-table td.el-table__cell {
  border-bottom: 1px solid var(--border-light) !important;
}

.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background-color: var(--bg-tertiary) !important;
}

.el-table__row:hover > td.el-table__cell {
  background-color: var(--primary-lighter) !important;
}

.el-tabs__item {
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
}

.el-tabs__item.is-active {
  color: var(--primary-color) !important;
}

.el-tabs__active-bar {
  background-color: var(--primary-color) !important;
}

.el-dialog {
  border-radius: var(--radius-xl) !important;
  overflow: hidden !important;
}

.el-dialog__header {
  padding: 20px 24px !important;
  border-bottom: 1px solid var(--border-light) !important;
}

.el-dialog__title {
  font-weight: 600 !important;
  font-size: 18px !important;
}

.el-dialog__body {
  padding: 24px !important;
}

.el-form-item__label {
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}

.el-slider__bar {
  background-color: var(--primary-color) !important;
}

.el-slider__button {
  border-color: var(--primary-color) !important;
}

.el-switch.is-checked .el-switch__core {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.el-alert {
  border-radius: var(--radius-md) !important;
  border: none !important;
}

.el-alert--info {
  background-color: #EFF6FF !important;
}

.el-alert--success {
  background-color: #ECFDF5 !important;
}

.el-alert--warning {
  background-color: #FFFBEB !important;
}

.el-alert--error {
  background-color: #FEF2F2 !important;
}

.el-divider {
  border-color: var(--border-light) !important;
}

.el-empty__description {
  color: var(--text-tertiary) !important;
}

.el-loading-mask {
  border-radius: var(--radius-lg) !important;
}

.el-descriptions {
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
}

.el-descriptions__label {
  background-color: var(--bg-tertiary) !important;
  font-weight: 500 !important;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

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

.slide-in-left {
  animation: slideInLeft 0.4s ease-out forwards;
}

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

.scale-in {
  animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-container {
  padding: 24px;
  min-height: calc(100vh - 60px);
  background-color: var(--bg-primary);
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.page-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 18px;
}

.card-icon.primary {
  background-color: var(--primary-lighter);
  color: var(--primary-color);
}

.card-icon.success {
  background-color: #D1FAE5;
  color: #059669;
}

.card-icon.warning {
  background-color: #FEF3C7;
  color: #D97706;
}

.card-icon.info {
  background-color: #E0E7FF;
  color: #4F46E5;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card:hover::before {
  opacity: 1;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 4px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

::selection {
  background-color: var(--primary-lighter);
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .page-container {
    padding: 16px;
  }
  
  .page-title {
    font-size: 20px;
  }
}
