/* ==================== ants UI 风格样式 ==================== */

:root {
  --theme-color: #5D87FF;
  --theme-color-light: #ECF0FF;
  --default-bg: #f5f7fa;
  --default-box-color: #ffffff;
  --default-border: #e4e7ed;
  --gray-200: #e9e9eb;
  --gray-300: #d5d5d9;
  --gray-600: #909399;
  --gray-800: #606266;
  --gray-900: #303133;
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --custom-radius: 0.75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { width: 8px; height: 0; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { border-radius: 5px; background: #ccc; }
::-webkit-scrollbar-thumb:hover { background: #b0abab; }

html, body {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--default-bg);
  height: 100%;
}

a { text-decoration: none; color: var(--theme-color); }
a:hover { opacity: 0.8; }

/* Utility */
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-cb { display: flex; align-items: center; justify-content: space-between; }
.flex-cc { display: flex; align-items: center; justify-content: center; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.ml-2 { margin-left: 8px; }
.ml-4 { margin-left: 16px; }
.mr-2 { margin-right: 8px; }
.p-4 { padding: 16px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.text-sm { font-size: 12px; }
.text-g-600 { color: var(--gray-600); }

/* ==================== Login / Register Pages ==================== */
.auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: #fff;
}

.auth-left {
  position: relative;
  width: 60vw;
  background: var(--theme-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-left-content {
  text-align: center;
  z-index: 10;
}

.auth-left-content h1 {
  font-size: 26px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.auth-left-content p {
  font-size: 14px;
  color: var(--gray-600);
}

.auth-left-logo {
  position: absolute;
  top: 20px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.auth-left-logo h1 {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-900);
}

.auth-left .bg-bubble {
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: rgba(93,135,255,0.06);
  border-radius: 50%;
}

.auth-left .deco-circle {
  position: absolute;
  top: 3%; right: 3%;
  width: 50px; height: 50px;
  background: rgba(93,135,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s;
}

.auth-left .deco-circle:hover {
  background: rgba(93,135,255,0.3);
  box-shadow: 0 0 30px rgba(93,135,255,0.2);
}

.auth-left .deco-square {
  position: absolute;
  right: 10%; bottom: 10%;
  width: 50px; height: 50px;
  background: rgba(93,135,255,0.1);
  transform: rotate(45deg);
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 420px;
  padding: 0 20px;
}

.auth-card h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.auth-card .subtitle {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.auth-card .auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray-600);
}

/* ==================== Form Styles ==================== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-regular);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--default-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(93,135,255,0.1);
}

.form-input::placeholder { color: #c0c4cc; }

textarea.form-input {
  height: auto;
  min-height: 150px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.6;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606626' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-primary {
  background: var(--theme-color);
  color: #fff;
}

.btn-primary:hover { background: #4A6FE0; }
.btn-primary:disabled { background: #a0c4ff; cursor: not-allowed; }

.btn-default {
  background: #fff;
  color: var(--text-regular);
  border: 1px solid var(--default-border);
}

.btn-default:hover { border-color: var(--theme-color); color: var(--theme-color); }

.btn-warning {
  background: #e6a23c;
  color: #fff;
}
.btn-warning:hover { background: #cf9236; }

.btn-danger {
  background: #f56c6c;
  color: #fff;
}
.btn-danger:hover { background: #e06060; }

.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

/* ==================== Layout ==================== */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid var(--default-border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s, min-width 0.3s;
}

.sidebar.collapsed {
  width: 64px;
  min-width: 64px;
}

.sidebar-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--default-border);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-toggle {
  width: 32px; height: 32px;
  border: none; background: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-600);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover { background: var(--gray-200); }

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  color: var(--text-regular);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
}

.menu-item:hover { background: #f5f7fa; color: var(--theme-color); }

.menu-item.active {
  background: var(--theme-color-light);
  color: var(--theme-color);
  border-left-color: var(--theme-color);
  font-weight: 500;
}

.menu-item .menu-icon { font-size: 18px; width: 20px; text-align: center; }

.sidebar.collapsed .menu-item { justify-content: center; padding: 0; }
.sidebar.collapsed .menu-item .menu-text { display: none; }
.sidebar.collapsed .sidebar-title { display: none; }

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--default-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.topbar-breadcrumb {
  font-size: 14px;
  color: var(--gray-600);
}

.topbar-breadcrumb span { color: var(--text-primary); }

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.user-menu:hover { background: #f5f7fa; }

.user-avatar {
  width: 32px; height: 32px;
  background: var(--theme-color-light);
  color: var(--theme-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ==================== Card (ants style) ==================== */
.card {
  background: #fff;
  border: 1px solid var(--default-border);
  border-radius: calc(var(--custom-radius) + 4px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--default-border);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 20px;
}

/* ==================== Table ==================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ebeef5;
  font-size: 14px;
}

table th {
  background: #fafafa;
  color: var(--gray-900);
  font-weight: 600;
  white-space: nowrap;
}

table td { color: var(--text-regular); }

table tr:hover td { background: #f5f7fa; }

.table-empty {
  text-align: center;
  padding: 40px;
  color: var(--gray-600);
}

/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 0;
}

.pagination .page-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--default-border);
  border-radius: 4px;
  background: #fff;
  color: var(--text-regular);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination .page-btn:hover { border-color: var(--theme-color); color: var(--theme-color); }
.pagination .page-btn.active {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

.pagination .page-info { font-size: 13px; color: var(--gray-600); margin: 0 8px; }

/* ==================== Tags / Badges ==================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-success { background: #e1f3d8; color: #67c23a; }
.tag-danger { background: #fef0f0; color: #f56c6c; }
.tag-warning { background: #fdf6ec; color: #e6a23c; }
.tag-info { background: #ecf5ff; color: #409eff; }
.tag-primary { background: var(--theme-color-light); color: var(--theme-color); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f56c6c;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

/* ==================== Dialog / Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.modal {
  background: #fff;
  border-radius: calc(var(--custom-radius) + 4px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  min-width: 420px;
  max-width: 600px;
  max-height: 80vh;
  animation: slideUp 0.25s;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--default-border);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  width: 28px; height: 28px;
  border: none; background: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--gray-600);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--gray-200); }

.modal-body { padding: 20px; max-height: 50vh; overflow-y: auto; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--default-border);
}

/* ==================== Alert ==================== */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-info { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }
.alert-success { background: #e1f3d8; color: #67c23a; border: 1px solid #c2e7b0; }
.alert-warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.alert-error { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }

/* ==================== Divider ==================== */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--default-border);
  margin-left: 12px;
}

/* ==================== Switch ==================== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { display: none; }

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c0c4cc;
  border-radius: 12px;
  transition: all 0.3s;
}

.switch .slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

.switch input:checked + .slider { background: var(--theme-color); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ==================== Checkbox ==================== */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-regular);
}

.checkbox-group input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--theme-color);
}

/* ==================== Tabs ==================== */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--default-border);
  margin-bottom: 16px;
}

.tab-item {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-item:hover { color: var(--theme-color); }
.tab-item.active { color: var(--theme-color); border-bottom-color: var(--theme-color); font-weight: 500; }

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  animation: slideDown 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.toast-success { background: #e1f3d8; color: #67c23a; border: 1px solid #c2e7b0; }
.toast-error { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.toast-warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.toast-info { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }

/* ==================== Animations ==================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ==================== Responsive ==================== */
@media (max-width: 1180px) {
  .auth-left { display: none; }
  .sidebar { display: none; }
}

@media (max-width: 640px) {
  .content { padding: 12px; }
  .card-body { padding: 12px; }
}

/* ==================== Inline Form Row ==================== */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row > .form-group { flex: 1; }

/* ==================== Verify Box ==================== */
.verify-row {
  display: flex;
  gap: 10px;
}

.verify-row .form-input { flex: 1; }

/* ==================== Attachment List ==================== */
.attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f5f7fa;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 6px;
}

.attach-item .del-attach {
  cursor: pointer;
  color: #f56c6c;
  font-size: 16px;
  border: none;
  background: none;
}

/* ==================== DNS Record Box ==================== */
.dns-box {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 16px;
}

.dns-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--default-border);
}

.dns-row:last-child { border-bottom: none; }

.dns-label {
  width: 100px;
  font-weight: 600;
  color: var(--gray-900);
}

.dns-value {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--theme-color);
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  border: none;
  background: none;
  color: var(--theme-color);
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
}

.copy-btn:hover { background: var(--theme-color-light); }

/* ==================== Stats Cards ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--default-border);
  border-radius: var(--custom-radius);
  padding: 20px;
  transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.stat-card-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-card-value.theme { color: var(--theme-color); }
.stat-card-value.success { color: #67c23a; }
.stat-card-value.warning { color: #e6a23c; }
.stat-card-value.danger { color: #f56c6c; }

/* ==================== Search Box ==================== */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.search-box .form-input {
  padding-left: 36px;
  width: 280px;
}

.search-box-icon {
  position: absolute;
  left: 10px;
  color: var(--gray-600);
  pointer-events: none;
}

/* ==================== Settings Page ==================== */
.settings-tabs {
  display: flex;
  flex-direction: column;
}

.settings-tab-content {
  padding: 20px 0;
}

/* ==================== Action Bar ==================== */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--default-border);
}

.action-bar-left { display: flex; align-items: center; gap: 10px; }
.action-bar-right { display: flex; align-items: center; gap: 10px; }

/* ==================== Section Header ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== Contact Card ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--default-border);
  border-radius: var(--custom-radius);
  padding: 16px;
  transition: all 0.2s;
}

.contact-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-color: var(--theme-color);
}

.contact-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-email {
  font-size: 13px;
  color: var(--theme-color);
  margin-bottom: 8px;
}

.contact-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ==================== Template Card ==================== */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.template-card {
  background: #fff;
  border: 1px solid var(--default-border);
  border-radius: var(--custom-radius);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.template-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-color: var(--theme-color);
}

.template-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.template-card-subject {
  font-size: 13px;
  color: var(--theme-color);
  margin-bottom: 8px;
}

.template-card-preview {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
}

.template-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ==================== Filter Rule ==================== */
.filter-rule {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--default-border);
}

.filter-rule:last-child { border-bottom: none; }

/* ==================== Inline Edit ==================== */
.inline-input {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--default-border);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.inline-input:focus { border-color: var(--theme-color); }

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  color: #dcdfe6;
  margin-bottom: 16px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==================== Progress Bar ==================== */
.progress-bar {
  height: 8px;
  background: #ebeef5;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-bar-fill.low { background: #67c23a; }
.progress-bar-fill.mid { background: #e6a23c; }
.progress-bar-fill.high { background: #f56c6c; }

/* ==================== Quick Actions Dropdown ==================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--default-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-regular);
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover { background: #f5f7fa; color: var(--theme-color); }

.dropdown-item.danger { color: #f56c6c; }
.dropdown-item.danger:hover { background: #fef0f0; }

/* ==================== Two-column Layout ==================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==================== Star Mail ==================== */
.star-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: #dcdfe6;
  transition: all 0.2s;
  padding: 2px;
}

.star-btn.active { color: #e6a23c; }
.star-btn:hover { color: #e6a23c; transform: scale(1.2); }

/* ==================== Select All Checkbox ==================== */
.select-col {
  width: 40px;
  text-align: center;
}

.select-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--theme-color);
}