:root {
  --el-color-primary: #4f8cff;
  --el-color-primary-light-3: #6aa3ff;
  --el-color-primary-light-5: #8bb8ff;
  --el-color-primary-light-7: #b6d0ff;
  --el-color-primary-light-9: rgba(79, 140, 255, 0.14);
  --el-color-primary-dark-2: #2f6ed8;
  --el-color-success: #22c55e;
  --el-color-warning: #f59e0b;
  --el-color-danger: #f43f5e;
  --el-color-error: #f43f5e;
  --el-color-info: #7f9fbe;
  --el-bg-color: #07101d;
  --el-bg-color-page: #050914;
  --el-bg-color-overlay: #0b1628;
  --el-text-color-primary: #eef6ff;
  --el-text-color-regular: #c7d7eb;
  --el-text-color-secondary: #89a3c0;
  --el-text-color-placeholder: #5f7898;
  --el-border-color: rgba(104, 163, 255, 0.18);
  --el-border-color-light: rgba(104, 163, 255, 0.12);
  --el-border-color-lighter: rgba(104, 163, 255, 0.08);
  --el-fill-color: rgba(79, 140, 255, 0.08);
  --el-fill-color-light: rgba(79, 140, 255, 0.05);
  --el-fill-color-blank: #07101d;
  --el-border-radius-base: 8px;
  --el-border-radius-small: 6px;
  color-scheme: dark;
}

html,
body,
#app {
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(34, 211, 238, 0.12), transparent 25%),
    linear-gradient(135deg, #030712 0%, #050914 42%, #071120 100%) !important;
  color: #eaf4ff !important;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif !important;
}

body {
  margin: 0;
  overflow: hidden;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 140, 255, 0.36) transparent;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.42), rgba(34, 211, 238, 0.32));
  border-radius: 999px;
}

.main-layout,
.el-container {
  background: transparent !important;
}

.sidebar,
.el-aside {
  background:
    linear-gradient(180deg, rgba(8, 16, 32, 0.98), rgba(4, 9, 18, 0.98)) !important;
  border-right: 1px solid rgba(89, 154, 255, 0.16) !important;
  box-shadow: 14px 0 36px rgba(0, 0, 0, 0.28) !important;
}

.logo {
  height: 64px !important;
  border-bottom: 1px solid rgba(89, 154, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 22px !important;
}

.logo-text,
.logo-text-mini {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 0 18px rgba(80, 180, 255, 0.45) !important;
}

.logo-text {
  font-size: 20px !important;
}

.logo-text-mini {
  font-size: 15px !important;
}

.el-menu {
  background: transparent !important;
  border-right: 0 !important;
  padding: 10px 8px !important;
}

.el-menu-item,
.el-sub-menu__title {
  height: 44px !important;
  line-height: 44px !important;
  margin: 3px 0 !important;
  border-radius: 8px !important;
  color: #8fa9c9 !important;
  font-size: 14px !important;
  border: 1px solid transparent !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

.el-menu-item:hover,
.el-sub-menu__title:hover {
  color: #f4fbff !important;
  background: rgba(79, 140, 255, 0.1) !important;
  border-color: rgba(79, 140, 255, 0.18) !important;
  transform: translateX(2px);
}

.el-menu-item.is-active {
  color: #ffffff !important;
  background:
    linear-gradient(90deg, rgba(79, 140, 255, 0.28), rgba(34, 211, 238, 0.1)) !important;
  border-color: rgba(94, 170, 255, 0.34) !important;
  box-shadow: inset 3px 0 0 #4f8cff, 0 10px 26px rgba(30, 98, 220, 0.18) !important;
}

.el-menu--inline {
  background: rgba(0, 0, 0, 0.14) !important;
  border-radius: 8px !important;
  margin: 2px 0 6px !important;
  padding: 5px !important;
}

.el-menu--inline .el-menu-item {
  height: 38px !important;
  line-height: 38px !important;
  padding-left: 42px !important;
  font-size: 13px !important;
}

.topbar,
.el-header {
  height: 64px !important;
  background: rgba(5, 10, 20, 0.82) !important;
  border-bottom: 1px solid rgba(89, 154, 255, 0.14) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22) !important;
}

.collapse-btn,
.reminder-icon,
.user-info {
  color: #c8dcf5 !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
}

.collapse-btn:hover,
.reminder-icon:hover,
.user-info:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.content-area,
.el-main {
  background:
    linear-gradient(180deg, rgba(8, 15, 29, 0.72), rgba(3, 7, 18, 0.92)) !important;
  padding: 22px !important;
  overflow: auto !important;
}

.el-card,
.dashboard-card,
.stat-card,
.data-card,
.page-card,
.filter-card {
  background:
    linear-gradient(180deg, rgba(10, 23, 42, 0.92), rgba(7, 16, 31, 0.92)) !important;
  border: 1px solid rgba(100, 160, 255, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24) !important;
  color: #eaf4ff !important;
}

.el-card:hover,
.dashboard-card:hover,
.stat-card:hover,
.data-card:hover {
  border-color: rgba(90, 180, 255, 0.32) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3), 0 0 24px rgba(47, 140, 255, 0.08) !important;
}

.el-card__header {
  border-bottom: 1px solid rgba(100, 160, 255, 0.12) !important;
  color: #f8fbff !important;
}

.el-card__body {
  color: #c7d7eb !important;
}

h1,
h2,
h3,
h4,
.page-title,
.section-title {
  color: #f8fbff !important;
  letter-spacing: 0 !important;
}

.page-title {
  font-size: 22px !important;
  font-weight: 800 !important;
}

p,
.page-subtitle,
.section-subtitle,
.desc,
.muted {
  color: #91a9c5 !important;
}

.el-button {
  border-radius: 7px !important;
  font-weight: 650 !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
}

.el-button:hover {
  transform: translateY(-1px);
}

.el-button--primary {
  border: 0 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #3578ff, #21c8f6) !important;
  box-shadow: 0 10px 24px rgba(47, 140, 255, 0.28) !important;
}

.el-button--success {
  border: 0 !important;
  color: #04111f !important;
  background: linear-gradient(135deg, #22d3ee, #34d399) !important;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.2) !important;
}

.el-button--warning {
  border: 0 !important;
  color: #111827 !important;
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

.el-button--danger {
  border: 0 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f43f5e, #b91c50) !important;
}

.el-button--default,
.el-button.is-plain {
  background: rgba(10, 24, 44, 0.9) !important;
  border: 1px solid rgba(100, 160, 255, 0.2) !important;
  color: #cfe2f8 !important;
}

.el-button--default:hover,
.el-button.is-plain:hover {
  border-color: rgba(87, 176, 255, 0.45) !important;
  color: #ffffff !important;
  background: rgba(47, 140, 255, 0.14) !important;
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner,
.el-date-editor.el-input__wrapper {
  background: rgba(4, 11, 24, 0.84) !important;
  border: 1px solid rgba(100, 160, 255, 0.18) !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  color: #eaf4ff !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover,
.el-textarea__inner:hover {
  border-color: rgba(87, 176, 255, 0.38) !important;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
  border-color: #4f8cff !important;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.13) !important;
}

.el-input__inner,
.el-select__placeholder,
.el-range-input,
.el-textarea__inner {
  color: #eaf4ff !important;
}

.el-input__inner::placeholder,
.el-textarea__inner::placeholder {
  color: #607a9d !important;
}

.el-table {
  background: transparent !important;
  color: #d6e4f5 !important;
  --el-table-border-color: rgba(100, 160, 255, 0.1);
  --el-table-header-bg-color: rgba(79, 140, 255, 0.08);
  --el-table-tr-bg-color: transparent;
  --el-table-row-hover-bg-color: rgba(79, 140, 255, 0.08);
}

.el-table__inner-wrapper,
.el-table__body-wrapper,
.el-table__header-wrapper,
.el-table__fixed,
.el-table__fixed-right,
.el-table__fixed-header-wrapper,
.el-table__fixed-body-wrapper {
  background: transparent !important;
}

.el-table th.el-table__cell {
  background: rgba(79, 140, 255, 0.08) !important;
  color: #8fa9c9 !important;
  border-bottom: 1px solid rgba(100, 160, 255, 0.16) !important;
  font-weight: 750 !important;
}

.el-table td.el-table__cell {
  background: rgba(7, 16, 31, 0.52) !important;
  color: #d6e4f5 !important;
  border-bottom: 1px solid rgba(100, 160, 255, 0.08) !important;
}

.el-table__body tr:hover > td.el-table__cell {
  background: rgba(79, 140, 255, 0.1) !important;
}

.el-table__empty-text {
  color: #6f88a8 !important;
}

.el-tabs__header {
  border-bottom: 1px solid rgba(100, 160, 255, 0.13) !important;
}

.el-tabs__nav-wrap::after {
  background: rgba(100, 160, 255, 0.12) !important;
  height: 1px !important;
}

.el-tabs__item {
  color: #91a9c5 !important;
  font-weight: 600 !important;
}

.el-tabs__item:hover,
.el-tabs__item.is-active {
  color: #ffffff !important;
}

.el-tabs__active-bar {
  height: 2px !important;
  background: linear-gradient(90deg, #4f8cff, #22d3ee) !important;
}

.el-tag {
  background: rgba(79, 140, 255, 0.12) !important;
  border-color: rgba(79, 140, 255, 0.24) !important;
  color: #9dccff !important;
  border-radius: 999px !important;
  font-weight: 650 !important;
}

.el-tag--success {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
  color: #86efac !important;
}

.el-tag--warning {
  background: rgba(245, 158, 11, 0.13) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #fcd34d !important;
}

.el-tag--danger {
  background: rgba(244, 63, 94, 0.14) !important;
  border-color: rgba(244, 63, 94, 0.32) !important;
  color: #fda4af !important;
}

.el-dialog,
.el-drawer,
.el-popover,
.el-dropdown__popper,
.el-select-dropdown,
.el-picker-panel,
.el-message-box {
  background: rgba(8, 17, 32, 0.98) !important;
  border: 1px solid rgba(100, 160, 255, 0.18) !important;
  color: #eaf4ff !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.el-dialog__title,
.el-message-box__title {
  color: #f8fbff !important;
}

.el-dialog__header,
.el-dialog__footer,
.el-drawer__header {
  border-color: rgba(100, 160, 255, 0.12) !important;
}

.el-overlay {
  background: rgba(0, 0, 0, 0.68) !important;
}

.el-dropdown-menu,
.el-select-dropdown__list,
.el-picker-panel__body {
  background: transparent !important;
}

.el-dropdown-menu__item,
.el-select-dropdown__item {
  color: #c7d7eb !important;
}

.el-dropdown-menu__item:hover,
.el-select-dropdown__item.is-hovering {
  background: rgba(79, 140, 255, 0.12) !important;
  color: #ffffff !important;
}

.el-pagination,
.el-pagination button,
.el-pager li {
  color: #8fa9c9 !important;
  background: transparent !important;
}

.el-pager li.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #3578ff, #21c8f6) !important;
  border-radius: 7px !important;
}

.el-empty__description p {
  color: #7893b0 !important;
}

.el-loading-mask {
  background: rgba(3, 7, 18, 0.72) !important;
  backdrop-filter: blur(8px);
}

.el-message {
  background: rgba(8, 17, 32, 0.96) !important;
  border: 1px solid rgba(100, 160, 255, 0.2) !important;
}

.el-message__content {
  color: #eaf4ff !important;
}

.reminder-popover,
.reminder-list,
.reminder-item {
  background: transparent !important;
  color: #d6e4f5 !important;
}

.reminder-item {
  border-bottom: 1px solid rgba(100, 160, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 9px 10px !important;
}

.reminder-item:hover {
  background: rgba(79, 140, 255, 0.1) !important;
}

.reminder-name,
.reminder-title {
  color: #f8fbff !important;
}

.reminder-item-content,
.reminder-item-time,
.reminder-empty {
  color: #91a9c5 !important;
}

.stat-value,
.number,
.metric-value {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(79, 140, 255, 0.24);
}

.search-bar,
.filter-section,
.toolbar,
.action-bar {
  background: rgba(7, 16, 31, 0.78) !important;
  border: 1px solid rgba(100, 160, 255, 0.13) !important;
  border-radius: 10px !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
