:root {
  /* Ant Design Colors */
  --antd-blue: #1890ff;
  --antd-blue-hover: #40a9ff;
  --antd-blue-active: #096dd9;
  --antd-green: #52c41a;
  --antd-gold: #faad14;
  --antd-red: #ff4d4f;
  --antd-cyan: #13c2c2;
  --antd-purple: #722ed1;
  
  /* Neutral Colors */
  --text-primary: rgba(0, 0, 0, 0.85);
  --text-secondary: rgba(0, 0, 0, 0.45);
  --text-disabled: rgba(0, 0, 0, 0.25);
  --border-color-base: #d9d9d9;
  --border-color-split: #f0f0f0;
  --bg-color-base: #f0f2f5;
  --bg-color-container: #ffffff;
  --bg-color-hover: #fafafa;
  
  /* Spacing & Sizing */
  --font-size-base: 14px;
  --font-size-sm: 12px;
  --font-size-lg: 16px;
  --border-radius-base: 4px; /* Slightly more modern than 2px */
  --padding-xs: 8px;
  --padding-sm: 12px;
  --padding-md: 16px;
  --padding-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 0 rgba(0, 0, 0, 0.015);
  --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-color-base);
  margin: 0;
  line-height: 1.5715;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.main-content {
  padding: var(--padding-lg);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--padding-lg);
  background: transparent;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 32px;
}

.header-actions {
  display: flex;
  gap: var(--padding-xs);
}

/* Cards/Containers */
.card {
  background: var(--bg-color-container);
  border-radius: var(--border-radius-base);
  box-shadow: var(--shadow-card);
  padding: var(--padding-lg);
  margin-bottom: var(--padding-lg);
}

/* Buttons (AntD Style) */
.btn {
  line-height: 1.5715;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  background-image: none;
  border: 1px solid transparent;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  user-select: none;
  touch-action: manipulation;
  height: 32px;
  padding: 4px 15px;
  font-size: 14px;
  border-radius: var(--border-radius-base);
  color: var(--text-primary);
  background: #fff;
  border-color: var(--border-color-base);
  text-decoration: none;
  gap: 8px;
}

.btn:hover {
  color: var(--antd-blue-hover);
  border-color: var(--antd-blue-hover);
}

.btn-primary {
  color: #fff;
  background: var(--antd-blue);
  border-color: var(--antd-blue);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
}

.btn-primary:hover {
  color: #fff;
  background: var(--antd-blue-hover);
  border-color: var(--antd-blue-hover);
}

.btn-icon {
  padding: 0;
  width: 32px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

/* Filters Toolbar */
.filter-toolbar {
  display: flex;
  gap: var(--padding-md);
  margin-bottom: var(--padding-lg);
  flex-wrap: wrap;
  align-items: center;
}

.filter-item {
  display: flex;
  align-items: center;
  min-width: 150px;
}

.filter-item.search {
  flex-grow: 1;
  max-width: 400px;
}

/* Date Range Picker Mockup */
.ant-picker-range {
  position: relative;
  background-color: #fff;
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-base);
  display: flex;
  align-items: center;
  padding: 4px 11px;
  width: 100%;
  transition: border 0.3s;
  height: 32px;
}
.ant-picker-range:hover {
  border-color: var(--antd-blue-hover);
}
.ant-picker-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44%;
}
.ant-picker-input > input {
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5715;
  background-color: transparent;
  background-image: none;
  border: none;
  outline: none;
  padding: 0;
}
.ant-picker-separator {
  width: 12%;
  color: var(--text-secondary);
  text-align: center;
}
.ant-picker-suffix {
  margin-left: auto;
  color: var(--text-disabled);
  font-size: 14px;
}

/* Inputs (AntD Style) */
.input-group {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.ant-input {
  box-sizing: border-box;
  margin: 0;
  font-variant: tabular-nums;
  list-style: none;
  font-feature-settings: 'tnum';
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  padding: 4px 11px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5715;
  background-color: #fff;
  background-image: none;
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-base);
  transition: all 0.3s;
}

.ant-input:hover {
  border-color: var(--antd-blue-hover);
}

.ant-input:focus {
  border-color: var(--antd-blue-hover);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: 0;
}

.input-icon {
  position: absolute;
  right: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Select Mockup */
.ant-select {
  position: relative;
  width: 100%;
  height: 32px;
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-base);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 11px;
  cursor: pointer;
  color: var(--text-primary);
}
.ant-select:hover {
  border-color: var(--antd-blue-hover);
}
.ant-select .arrow {
  margin-left: auto;
  color: var(--text-disabled);
  font-size: 12px;
}
.ant-select .placeholder {
  color: var(--text-secondary);
}

/* Table (AntD Style) */
.table-wrapper {
  background: #fff;
  border-radius: var(--border-radius-base);
}

.ant-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.ant-table th {
  position: relative;
  color: var(--text-primary);
  font-weight: 500;
  text-align: left;
  background: #fafafa;
  border-bottom: 1px solid var(--border-color-split);
  transition: background 0.3s ease;
  padding: 8px 12px; /* Dense padding (size="small") */
  white-space: nowrap;
}

/* Sorting caret mockup */
.ant-table th .sorter {
  margin-left: 8px;
  color: var(--text-disabled);
  font-size: 10px;
  display: inline-block;
  vertical-align: middle;
}

.ant-table td {
  border-bottom: 1px solid var(--border-color-split);
  transition: background 0.3s;
  padding: 8px 12px; /* Dense padding (size="small") */
  color: var(--text-primary);
}

.ant-table tr:hover td {
  background: #fafafa;
}

.ant-table tr:last-child td {
  border-bottom: none;
}

/* Column Styling */
.cell-content {
  display: flex;
  flex-direction: column;
}
.cell-title {
  font-weight: 500;
  color: var(--antd-blue); /* Link color */
  cursor: pointer;
  margin-bottom: 2px;
}
.cell-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}
.cell-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* Tags/Badges */
.ant-tag {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  font-variant: tabular-nums;
  line-height: 1.5715;
  list-style: none;
  font-feature-settings: 'tnum';
  display: inline-block;
  height: auto;
  margin-right: 8px;
  padding: 0 7px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  cursor: default;
  transition: all 0.3s;
}

.tag-blue { background: #e6f7ff; border-color: #91d5ff; color: #1890ff; }
.tag-green { background: #f6ffed; border-color: #b7eb8f; color: #52c41a; }
.tag-gold { background: #fffbe6; border-color: #ffe58f; color: #faad14; }
.tag-red { background: #fff1f0; border-color: #ffa39e; color: #ff4d4f; }
.tag-purple { background: #f9f0ff; border-color: #d3adf7; color: #722ed1; }
.tag-cyan { background: #e6fffb; border-color: #87e8de; color: #13c2c2; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 8px;
  align-items: center;
}

.page-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: var(--border-radius-base);
  border: 1px solid var(--border-color-base);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.page-item.active {
  border-color: var(--antd-blue);
  color: var(--antd-blue);
  font-weight: 500;
}

.page-item:hover:not(.active) {
  border-color: var(--antd-blue);
  color: var(--antd-blue);
}

.page-info {
  margin-right: 8px;
  color: var(--text-secondary);
}

/* Utilities */
.text-right { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }

/* Avatar placeholder */
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--antd-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: 8px;
}
.avatar-wrap {
  display: flex;
  align-items: center;
}

/* Tooltip Hint */
.tooltip-hint {
  border-bottom: 1px dashed var(--text-secondary);
  cursor: help;
}

/* Icons */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: currentColor;
}

/* Sidebar Styles */
.layout-sider {
  width: 200px;
  background: #001529;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo {
  height: 64px;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #002140;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item {
  padding: 12px 24px;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  transition: all 0.3s;
}

.menu-item:hover {
  color: #fff;
}

.menu-item.active {
  background: var(--antd-blue);
  color: #fff;
}

@media (max-width: 768px) {
  .layout-sider {
    display: none;
  }
}

/* Global Header */
.global-header {
  background: #fff;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  justify-content: flex-end;
}

/* Flex Utilities for Layout */
.flex-row {
  flex-direction: row;
}

.flex-1 {
  flex: 1;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

/* Specific component overrides */
.table-card {
  padding: 0;
  overflow: hidden;
}

.footer-pagination {
  padding: 16px;
  border-top: 1px solid var(--border-color-split);
}

.page-size-selector {
  width: 100px;
  margin-left: 10px;
}

.font-13 {
  font-size: 13px;
}

.border-none {
  border: none;
}
