.page-body {
  padding: 20px;
  bottom: 0;
}

:root {
  --sidebar-width: 200px;
  --sidebar-collapsed-width: 64px;
}

.layui-layout-admin .layui-side {
  width: var(--sidebar-width);
  transition: width 0.25s ease;
  overflow: visible;
}

.layui-layout-admin .layui-side .layui-side-scroll {
  overflow-x: hidden;
  overflow-y: auto;
}

.layui-layout-admin .layui-body {
  left: var(--sidebar-width);
  transition: left 0.25s ease;
}

.layui-layout-admin.sidebar-collapsed .layui-side {
  width: var(--sidebar-collapsed-width);
}

.layui-layout-admin.sidebar-collapsed .layui-body {
  left: var(--sidebar-collapsed-width);
}

.layui-layout-admin.sidebar-collapsed .layui-side .layui-nav-tree {
  width: 100% !important;
  max-width: var(--sidebar-collapsed-width);
}

.layui-layout-admin .layui-side .layui-nav-tree .layui-nav-item a {
  overflow: hidden;
  white-space: nowrap;
}

.layui-layout-admin.sidebar-collapsed .layui-side .layui-nav-tree .layui-nav-item {
  width: 100%;
  overflow: hidden;
}

.layui-layout-admin.sidebar-collapsed .layui-side .layui-nav-tree .layui-nav-item a {
  width: 100%;
  padding: 0 !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layui-layout-admin.sidebar-collapsed .layui-side .layui-nav-tree .layui-nav-item a .layui-icon {
  margin-right: 0;
}

.layui-layout-admin.sidebar-collapsed .layui-side .layui-nav-tree .layui-nav-item a .nav-label {
  display: none;
}

.sidebar-toggle {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  width: 28px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: #555;
  cursor: pointer;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.sidebar-toggle:hover {
  color: #fff;
  background: #16b777;
  border-color: #16b777;
}

.sidebar-toggle-icon {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.layui-layout-admin.sidebar-collapsed .sidebar-toggle-icon {
  transform: rotate(180deg);
}

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

.layui-layout-admin .layui-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.layui-side .layui-nav-tree .layui-nav-item a {
  height: 48px;
  line-height: 48px;
}

.layui-side .layui-nav-tree .layui-nav-item a .layui-icon {
  margin-right: 8px;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f9;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

.auth-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(145deg, #1e2a3a 0%, #2d3a4f 45%, #1a6b5c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -120px;
  right: -80px;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(22, 183, 119, 0.15);
  bottom: -60px;
  left: -40px;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.auth-brand-logo .layui-icon {
  font-size: 36px;
  color: #5fb878;
}

.auth-brand-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
}

.auth-brand-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px;
}

.auth-brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-brand-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.auth-brand-list .layui-icon {
  color: #5fb878;
  font-size: 18px;
}

.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #f4f6f9;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 32px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.auth-card-head {
  margin-bottom: 28px;
}

.auth-card-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
}

.auth-card-head p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.auth-form .auth-field {
  margin-bottom: 20px;
}

.auth-form .auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .layui-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9ca3af;
  z-index: 1;
  pointer-events: none;
}

.auth-input-wrap .layui-input {
  height: 46px;
  line-height: 46px;
  padding-left: 42px;
  border-radius: 8px;
  border-color: #e5e7eb;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-wrap .layui-input:focus {
  border-color: #16b777;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 183, 119, 0.12);
}

.auth-options {
  margin-bottom: 24px;
}

.auth-submit {
  margin-bottom: 8px;
}

.auth-btn {
  height: 46px;
  line-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #16b777 0%, #12a066 100%);
  border: none;
}

.auth-btn:hover {
  opacity: 0.92;
}

.auth-footer-link {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14px;
  color: #9ca3af;
}

.auth-footer-link a {
  color: #16b777;
  font-weight: 600;
}

.auth-card .flash-msg {
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-brand {
    padding: 36px 28px;
    min-height: auto;
  }

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

  .auth-brand-list {
    display: none;
  }

  .auth-panel {
    padding: 24px 16px 40px;
  }

  .auth-card {
    padding: 32px 24px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  }
}

.flash-msg {
  margin-bottom: 15px;
}

.flash-success {
  border-left: 5px solid #16b777;
  background: #f0faf5;
}

.flash-danger {
  border-left: 5px solid #ff5722;
  background: #fff5f0;
}

.flash-warning {
  border-left: 5px solid #ffb800;
  background: #fffbf0;
}

.flash-info {
  border-left: 5px solid #1e9fff;
  background: #f0f9ff;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.stat-card .stat-label {
  font-size: 13px;
  color: #999;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

.stat-value-success {
  color: #16b777;
}

.stat-value-danger {
  color: #ff5722;
}

.stat-value-muted {
  color: #999;
}

.text-muted {
  color: #999;
}

.text-danger {
  color: #ff5722;
}

.text-success {
  color: #16b777;
}

.text-center {
  text-align: center;
}

.article-content {
  line-height: 1.8;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.EasyMDEContainer {
  margin-bottom: 1rem;
}

.article-cover {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.list-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-error {
  color: #ff5722;
  font-size: 12px;
  margin-top: 5px;
}

.filter-form .layui-inline {
  margin-bottom: 0;
}
