html,
body,
#app,
.el-container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

[v-cloak] {
  display: none;
}

body {
  background: #f5f7fb;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
}

.admin-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top left, rgba(64, 158, 255, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(48, 65, 86, 0.12), transparent 32%),
    #f5f7fb;
}

.admin-auth-loading {
  padding: 18px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-size: 15px;
  color: #374151;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 22px;
  overflow: hidden;
}

.admin-login-brand {
  margin-bottom: 22px;
}

.admin-login-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.admin-login-subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.admin-login-button {
  width: 100%;
  margin-top: 6px;
}

.admin-login-meta {
  margin-top: 18px;
  font-size: 12px;
  color: #9ca3af;
  text-align: right;
}

.admin-layout {
  min-height: 100vh;
}

.admin-aside {
  min-height: 100vh;
  background: #304156;
  color: #ffffff;
}

.brand-panel {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #ebeef5;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-admin-account {
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}

.device-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.device-actions .el-button {
  margin-left: 0;
  margin-right: 0;
}

.admin-main {
  background: #f5f7fb;
  overflow: auto;
  padding: 24px;
}

.panel-stack {
  display: block;
}

.dashboard-row {
  margin-top: 20px;
}

.panel-card {
  border-radius: 14px;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-meta {
  font-size: 13px;
  color: #9ca3af;
}

.dashboard-card {
  min-height: 100%;
}

.timeline-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.info-card {
  margin-bottom: 16px;
}

.info-title {
  font-size: 14px;
  color: #6b7280;
}

.info-value {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  color: #111827;
}

.info-desc {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.quick-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.device-admin-table {
  margin-top: 4px;
}

.device-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.device-table-toolbar-meta {
  font-size: 13px;
  color: #6b7280;
}

.device-table-toolbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.device-table-toolbar-label {
  font-size: 13px;
  color: #374151;
}

.device-admin-table .cell {
  line-height: 1.45;
}

.device-admin-table .el-table__body-wrapper {
  overflow-x: auto;
}

.device-admin-table .el-scrollbar__bar.is-horizontal {
  height: 12px;
}

.proxy-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
}

.proxy-cell-main {
  font-size: 13px;
  color: #111827;
  word-break: break-all;
}

.proxy-cell-sub {
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
}

.device-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.device-table-pagination-meta {
  font-size: 13px;
  color: #6b7280;
}

.proxy-check-panel {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.proxy-check-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.proxy-check-grid {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}
