.sidebar-nav-wrapper .sidebar-nav ul .nav-item a .icon {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  justify-content: center;
}

.sidebar-nav-wrapper .sidebar-nav ul .nav-item a.active,
.sidebar-nav-wrapper .sidebar-nav ul .nav-item.active > a {
  color: #365cf5;
}

.placeholder-panel {
  align-items: center;
  border: 1px dashed #d8dbe5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 32px;
  text-align: center;
}

.placeholder-panel > i {
  color: #365cf5;
  font-size: 44px;
  margin-bottom: 16px;
}

.placeholder-panel h4 {
  margin-bottom: 10px;
}

.placeholder-panel p {
  color: #5d657b;
  margin-bottom: 0;
  max-width: 520px;
}

.placeholder-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.placeholder-meta span,
.placeholder-meta code {
  background: #f3f6ff;
  border-radius: 6px;
  color: #365cf5;
  display: inline-block;
  padding: 6px 10px;
}

.todo-status {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.status-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 50%;
  color: #365cf5;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.status-icon.success {
  background: #e8f7ef;
  color: #219653;
}

.auth-row {
  min-height: 100vh;
}

.signin-section .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.signin-wrapper,
.auth-cover-wrapper {
  min-height: 100vh;
}

.account-role-search {
  min-width: min(100%, 420px);
}

.account-role-search .form-control {
  min-width: 220px;
}

.account-role-table th,
.account-role-table td {
  vertical-align: middle;
}

.account-role-form {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 220px;
}

.account-role-form .form-select {
  min-width: 130px;
}

.profile-summary {
  align-items: center;
  display: flex;
  gap: 16px;
}

.profile-avatar {
  border-radius: 50%;
  flex: 0 0 72px;
  height: 72px;
  overflow: hidden;
  width: 72px;
}

.profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-info-grid > div,
.profile-confirm-box {
  background: #f7f8fc;
  border: 1px solid #eef0f7;
  border-radius: 8px;
  padding: 14px;
}

.profile-info-grid span {
  color: #5d657b;
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.profile-info-grid strong {
  color: #1f2a44;
  font-size: 15px;
  word-break: break-word;
}

.profile-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-permissions span {
  background: #eef2ff;
  border-radius: 6px;
  color: #365cf5;
  font-size: 13px;
  padding: 6px 10px;
}

.profile-confirm-box p {
  margin-bottom: 8px;
}

.profile-confirm-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

.post-table th,
.post-table td {
  vertical-align: middle;
}

.post-title-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 300px;
}

.post-title-cell img {
  border-radius: 6px;
  flex: 0 0 72px;
  height: 48px;
  object-fit: cover;
  width: 72px;
}

.post-category-badge {
  background: #eef2ff;
  border-radius: 6px;
  color: #365cf5;
  display: inline-block;
  font-size: 13px;
  padding: 6px 10px;
}

.post-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-editor-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.post-editor-toolbar {
  align-items: center;
  background: #f7f8fc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.post-editor {
  background: #fff;
  min-height: 360px;
  outline: none;
  padding: 18px;
}

.post-editor:empty::before {
  color: #9aa4b2;
  content: "Nhập nội dung bài viết...";
}

.post-editor img {
  display: block;
  height: auto;
  margin: 12px 0;
  max-width: 100%;
}

.post-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.post-table thead th {
  background: #f6f8ff;
  border-bottom: 1px solid #dfe5f3;
  color: #1f2a44;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 14px 16px;
  white-space: nowrap;
}

.post-table tbody td {
  border-bottom: 1px solid #edf0f7;
  color: #384152;
  padding: 16px;
  vertical-align: middle;
}

.post-table tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.post-table tbody tr:hover {
  background: #fbfcff;
  box-shadow: inset 3px 0 0 #365cf5;
}

.post-title-cell {
  gap: 14px;
  min-width: 340px;
}

.post-title-cell img {
  background: #eef2ff;
  border: 1px solid #e1e6f5;
  border-radius: 8px;
  flex-basis: 86px;
  height: 58px;
  width: 86px;
}

.post-category-badge {
  border: 1px solid #dce4ff;
  border-radius: 999px;
  font-weight: 600;
  padding: 7px 12px;
  white-space: nowrap;
}

.post-editor-shell {
  background: #fff;
  border: 1px solid #dfe5f3;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 42, 68, 0.04);
  margin-bottom: 20px;
  overflow: hidden;
}

.post-thumbnail-preview {
  align-items: center;
  background: #fbfcff;
  border: 1px solid #dfe5f3;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px;
}

.post-thumbnail-preview img {
  border-radius: 8px;
  flex: 0 0 132px;
  height: 82px;
  object-fit: cover;
  width: 132px;
}

.post-thumbnail-preview span {
  color: #5d657b;
  font-size: 14px;
}

.post-editor-toolbar {
  background: #fbfcff;
  border-bottom: 1px solid #dfe5f3;
  padding: 12px;
}

.post-tool-select,
.post-tool-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #2f6bff;
  border-radius: 5px;
  color: #0d5bff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.post-tool-select {
  border-color: #d8dee9;
  color: #1f2a44;
  min-width: 106px;
  padding-right: 10px;
}

.post-tool-btn:hover,
.post-tool-btn.is-active {
  background: #eef4ff;
  border-color: #0d5bff;
  color: #003fc7;
}

.post-tool-btn-muted {
  border-color: #7d8797;
  color: #5d657b;
}

.post-tool-btn-dark {
  border-color: #111827;
  color: #111827;
}

.post-tool-btn-danger {
  border-color: #ff5b5b;
  color: #ef3d3d;
}

.post-editor,
.post-source-editor {
  background: #fff;
  border: 0;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.7;
  min-height: 460px;
  outline: none;
  padding: 22px;
  width: 100%;
}

.post-source-editor {
  font-family: Consolas, "Courier New", monospace;
  resize: vertical;
}

.post-editor.is-dragging {
  background: #f3f7ff;
  box-shadow: inset 0 0 0 2px #365cf5;
}

.post-editor:empty::before {
  color: #9aa4b2;
  content: "Nhập nội dung bài viết...";
}

.post-editor h2,
.post-editor h3 {
  color: #1f2a44;
  line-height: 1.25;
  margin: 18px 0 12px;
}

.post-editor p,
.post-editor ul,
.post-editor ol {
  margin-bottom: 14px;
}

.post-editor img {
  border-radius: 8px;
  margin: 14px 0;
}

.post-editor table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
}

.post-editor th,
.post-editor td {
  border: 1px solid #d8dee9;
  padding: 10px 12px;
  vertical-align: top;
}

.post-editor hr {
  border: 0;
  border-top: 1px solid #d8dee9;
  margin: 22px 0;
  opacity: 1;
}

@media (max-width: 767px) {
  .post-tool-select,
  .post-tool-btn {
    flex: 1 1 auto;
  }

  .post-editor,
  .post-source-editor {
    min-height: 360px;
    padding: 16px;
  }
}
