.admin-dashboard {
  color: #263b5e;
  background: #f4f7fb;
  padding-bottom: 80px;
}

.admin-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 112px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(9, 30, 60, 0.98), rgba(38, 59, 94, 0.92)),
    url("../images/bg/page-header.jpg") center/cover no-repeat;
}

.admin-hero::after {
  position: absolute;
  top: -140px;
  right: -100px;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.admin-hero .container {
  position: relative;
  z-index: 1;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
}

.admin-breadcrumb a,
.admin-breadcrumb span {
  color: rgba(255, 255, 255, 0.72);
}

.admin-breadcrumb a:hover {
  color: #fff;
}

.admin-breadcrumb i {
  color: rgba(255, 255, 255, 0.35);
  font-size: 8px;
}

.admin-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #ff7896;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin-bottom: 13px;
  color: #fff;
  font-size: 44px;
  line-height: 1.15;
}

.admin-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.admin-primary-button,
.admin-secondary-button,
.admin-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.admin-primary-button {
  border: 1px solid #ff1949;
  color: #fff;
  background: #ff1949;
  box-shadow: 0 10px 24px rgba(255, 25, 73, 0.25);
}

.admin-primary-button:hover {
  border-color: #e70c3b;
  color: #fff;
  background: #e70c3b;
  transform: translateY(-1px);
}

.admin-hero-link {
  margin-right: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.admin-hero-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.admin-primary-button i,
.admin-secondary-button i,
.admin-hero-link i {
  margin-right: 8px;
}

.admin-content {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.admin-stats {
  margin-bottom: 14px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 23px;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(9, 30, 60, 0.08);
}

.admin-stat-icon {
  display: inline-flex;
  flex: 0 0 52px;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-right: 16px;
  border-radius: 12px;
  font-size: 19px;
}

.admin-stat-icon-books {
  color: #1e5eff;
  background: #eaf0ff;
}

.admin-stat-icon-authors {
  color: #7a4ce0;
  background: #f1ebff;
}

.admin-stat-icon-categories {
  color: #0c9463;
  background: #e5f8f0;
}

.admin-stat-icon-files {
  color: #e33c5c;
  background: #ffebef;
}

.admin-stat-label {
  display: block;
  margin-bottom: 4px;
  color: #7a879b;
  font-size: 12px;
  font-weight: 600;
}

.admin-stat-card strong {
  display: block;
  color: #091e3c;
  font-family: "Quicksand", sans-serif;
  font-size: 29px;
  line-height: 1;
}

.admin-quick-actions {
  padding: 20px 0 12px;
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-heading span,
.admin-panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: #ff1949;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.admin-section-heading h2,
.admin-panel-header h2 {
  margin: 0;
  color: #091e3c;
  font-size: 24px;
}

.admin-quick-link {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  color: #33435d;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(9, 30, 60, 0.04);
  transition: all 0.2s ease;
}

.admin-quick-link i {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 11px;
  border-radius: 9px;
  color: #46617f;
  background: #f0f3f8;
}

.admin-quick-link:hover,
.admin-quick-link-active {
  border-color: rgba(255, 25, 73, 0.22);
  color: #ff1949;
  box-shadow: 0 10px 25px rgba(9, 30, 60, 0.08);
  transform: translateY(-2px);
}

.admin-quick-link:hover i,
.admin-quick-link-active i {
  color: #fff;
  background: #ff1949;
}

.admin-panel {
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(9, 30, 60, 0.07);
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf0f5;
}

.admin-panel-header p {
  margin: 7px 0 0;
  color: #7a879b;
  font-size: 13px;
}

.admin-secondary-button {
  flex: 0 0 auto;
  border: 1px solid #dce3ed;
  color: #091e3c;
  background: #fff;
}

.admin-secondary-button:hover {
  border-color: #ff1949;
  color: #ff1949;
}

.admin-alert {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
}

.admin-alert i {
  margin: 3px 10px 0 0;
}

.admin-alert-error {
  border-color: #f7c4ce;
  color: #a91f3a;
  background: #fff1f4;
}

.admin-alert-success {
  border-color: #bce7d5;
  color: #08744c;
  background: #ecfaf4;
}

.admin-empty-state {
  padding: 70px 20px;
  text-align: center;
}

.admin-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #ff1949;
  background: #fff0f3;
  font-size: 25px;
}

.admin-empty-state h3 {
  margin-bottom: 8px;
  color: #091e3c;
  font-size: 22px;
}

.admin-empty-state p {
  margin-bottom: 22px;
  color: #7a879b;
}

.admin-table-wrap {
  overflow: visible;
}

.admin-books-table {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.admin-books-table thead th {
  padding: 13px 14px;
  border-top: 0;
  border-bottom: 1px solid #e1e7ef !important;
  color: #6f7c90;
  background: #f7f9fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-books-table thead th:first-child {
  border-radius: 8px 0 0 8px;
}

.admin-books-table thead th:last-child {
  border-radius: 0 8px 8px 0;
}

.admin-books-table tbody td {
  padding: 15px 14px;
  border-top: 0;
  border-bottom: 1px solid #edf0f5;
  color: #46556d;
  font-size: 13px;
  vertical-align: middle;
}

.admin-books-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-books-table tbody tr:hover {
  background: #fbfcfe;
}

.admin-row-number {
  width: 50px;
  color: #9aa5b5 !important;
  font-weight: 700;
}

.admin-book-cell {
  display: flex;
  align-items: center;
  min-width: 330px;
}

.admin-book-cover {
  flex: 0 0 52px;
  width: 52px;
  height: 68px;
  margin-right: 14px;
  border: 1px solid #e3e8f0;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 5px 12px rgba(9, 30, 60, 0.12);
}

.admin-book-info {
  min-width: 0;
}

.admin-book-info > a {
  display: inline-block;
  margin-bottom: 5px;
  color: #091e3c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-book-info > a:hover {
  color: #ff1949;
}

.admin-book-info p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 450px;
  margin: 0;
  color: #8994a5;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-author-name {
  display: inline-block;
  min-width: 120px;
  color: #3d4d65;
  font-weight: 600;
}

.admin-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 20px;
  color: #365274;
  background: #edf3f9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-file-link {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #f5ccd4;
  border-radius: 6px;
  color: #d5284a;
  background: #fff6f8;
  font-size: 11px;
  font-weight: 700;
}

.admin-file-link:hover {
  border-color: #ff1949;
  color: #fff;
  background: #ff1949;
}

.admin-file-link i {
  margin-right: 6px;
}

.admin-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 118px;
}

.admin-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dde4ed;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  transition: all 0.2s ease;
}

.admin-view-button {
  color: #315c9b;
}

.admin-view-button:hover {
  border-color: #315c9b;
  color: #fff;
  background: #315c9b;
}

.admin-edit-button {
  color: #0d8a60;
}

.admin-edit-button:hover {
  border-color: #0d8a60;
  color: #fff;
  background: #0d8a60;
}

.admin-delete-button {
  color: #d72c4e;
}

.admin-delete-button:hover {
  border-color: #d72c4e;
  color: #fff;
  background: #d72c4e;
}

.admin-disabled-button {
  color: #b7c0cd;
  background: #f3f5f8;
  cursor: not-allowed;
}

.admin-panel .dataTables_wrapper .row:first-child,
.admin-panel .dataTables_wrapper .row:last-child {
  align-items: center;
  margin-right: 0;
  margin-left: 0;
}

.admin-panel .dataTables_wrapper .row:first-child {
  margin-bottom: 18px;
}

.admin-panel .dataTables_wrapper .row:last-child {
  margin-top: 20px;
}

.admin-panel .dataTables_length label,
.admin-panel .dataTables_filter label {
  margin: 0;
  color: #7c889b;
  font-size: 12px;
}

.admin-panel .dataTables_length select {
  width: 72px;
  height: 38px;
  margin: 0 6px;
  border-color: #dce3ec;
  border-radius: 7px;
  color: #33435d;
  background-color: #fff;
}

.admin-panel .dataTables_filter input {
  width: 280px;
  height: 40px;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  color: #263b5e;
  background: #fff;
  font-size: 12px;
}

.admin-panel .dataTables_filter input:focus {
  border-color: #ff1949;
  box-shadow: 0 0 0 3px rgba(255, 25, 73, 0.09);
  outline: none;
}

.admin-panel .dataTables_info {
  padding-top: 0 !important;
  color: #8994a5;
  font-size: 12px;
}

.admin-panel .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-left: 5px;
  padding: 5px 9px;
  border: 1px solid #e0e6ee;
  border-radius: 7px !important;
  color: #56657c;
  background: #fff;
  font-size: 12px;
}

.admin-panel .page-item.active .page-link,
.admin-panel .page-item .page-link:hover {
  border-color: #ff1949;
  color: #fff;
  background: #ff1949;
}

.admin-panel .page-item.disabled .page-link {
  color: #b3bdca;
  background: #f5f7fa;
}

@media (max-width: 991px) {
  .admin-hero {
    padding: 58px 0 104px;
  }

  .admin-hero h1 {
    font-size: 38px;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }
}

@media (max-width: 767px) {
  .admin-dashboard {
    padding-bottom: 55px;
  }

  .admin-hero {
    padding: 45px 0 94px;
  }

  .admin-hero h1 {
    font-size: 32px;
  }

  .admin-hero p {
    font-size: 14px;
  }

  .admin-hero-link,
  .admin-primary-button {
    width: 100%;
    margin: 0 0 9px;
  }

  .admin-content {
    margin-top: -54px;
  }

  .admin-stat-card {
    min-height: 100px;
  }

  .admin-panel {
    padding: 18px;
    border-radius: 11px;
  }

  .admin-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-secondary-button {
    width: 100%;
  }

  .admin-panel .dataTables_filter,
  .admin-panel .dataTables_filter input {
    width: 100%;
  }

  .admin-panel .dataTables_filter {
    margin-top: 12px;
  }

  .admin-panel .dataTables_info,
  .admin-panel .dataTables_paginate {
    margin: 8px 0;
    text-align: center !important;
  }
}

/* Full-screen authentication */
.admin-auth-body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #263b5e;
  background: #fff;
}

.admin-auth-page {
  display: grid;
  grid-template-columns: minmax(400px, 46%) minmax(0, 54%);
  min-height: 100vh;
}

.admin-auth-brand {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: clamp(38px, 5vw, 68px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6, 23, 47, 0.98), rgba(26, 53, 88, 0.94)),
    url("../images/bg/page-header.jpg") center/cover no-repeat;
}

.admin-auth-brand::before,
.admin-auth-brand::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.admin-auth-brand::before {
  top: -210px;
  right: -210px;
  width: 520px;
  height: 520px;
}

.admin-auth-brand::after {
  bottom: -280px;
  left: -220px;
  width: 620px;
  height: 620px;
}

.admin-auth-brand-pattern {
  position: absolute;
  top: 18%;
  right: -90px;
  width: 260px;
  height: 260px;
  border: 55px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  pointer-events: none;
}

.admin-auth-logo,
.admin-auth-brand-content,
.admin-auth-brand-footer {
  position: relative;
  z-index: 1;
}

.admin-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: #fff;
}

.admin-auth-logo:hover {
  color: #fff;
}

.admin-auth-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-right: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.admin-auth-logo-mark img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.admin-auth-logo strong,
.admin-auth-logo small {
  display: block;
}

.admin-auth-logo strong {
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.admin-auth-logo small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-auth-brand-content {
  align-self: center;
  max-width: 560px;
  padding: 58px 0;
}

.admin-auth-kicker,
.admin-auth-form-kicker {
  display: block;
  margin-bottom: 13px;
  color: #ff7896;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.admin-auth-brand-content h1 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.admin-auth-brand-content > p {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
  line-height: 1.85;
}

.admin-auth-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.admin-auth-feature {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-auth-feature > i {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 8px;
  color: #ff7896;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.admin-auth-feature span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.55;
}

.admin-auth-feature strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 11px;
}

.admin-auth-product {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 60px;
  color: #fff;
}

.admin-auth-product:hover {
  color: #fff;
}

.admin-auth-product-mark {
  display: inline-flex;
  flex: 0 0 55px;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.admin-auth-product-mark img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.admin-auth-product-copy {
  line-height: 1;
}

.admin-auth-product-copy strong,
.admin-auth-product-copy small {
  display: block;
  color: #fff;
}

.admin-auth-product-copy strong {
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
}

.admin-auth-product-copy strong + strong {
  margin-top: 2px;
}

.admin-auth-product-copy small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: none;
}

.admin-auth-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.admin-auth-brand-footer i {
  margin-right: 6px;
  color: #ff7896;
}

.admin-auth-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px clamp(45px, 7vw, 110px) 65px;
  background:
    radial-gradient(circle at 92% 8%, rgba(49, 92, 155, 0.055), transparent 25%),
    #fff;
}

.admin-auth-back {
  position: absolute;
  top: 34px;
  right: 42px;
  display: inline-flex;
  align-items: center;
  color: #78869a;
  font-size: 11px;
  font-weight: 700;
}

.admin-auth-back:hover {
  color: #ff1949;
}

.admin-auth-back i {
  margin-right: 7px;
}

.admin-auth-form-shell {
  width: 100%;
  max-width: 430px;
}

.admin-auth-mobile-logo {
  display: none;
}

.admin-auth-heading {
  margin-bottom: 34px;
}

.admin-auth-form-kicker {
  color: #ff1949;
}

.admin-auth-heading h2 {
  margin-bottom: 10px;
  color: #091e3c;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.admin-auth-heading p {
  margin: 0;
  color: #8490a2;
  font-size: 13px;
  line-height: 1.65;
}

.admin-auth-alert {
  margin-bottom: 24px;
}

.admin-auth-form .admin-form-group {
  margin-bottom: 21px;
}

.admin-auth-form .admin-form-group label {
  margin-bottom: 9px;
  font-size: 12px;
}

.admin-auth-form .admin-form-control {
  height: 52px;
  border-radius: 9px;
  background: #fbfcfe;
}

.admin-auth-form .admin-form-control:focus {
  background: #fff;
}

.admin-login-button.admin-auth-submit {
  min-height: 52px;
  margin-top: 5px;
  border-radius: 9px;
}

.admin-auth-help {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e8edf3;
  color: #8a96a8;
}

.admin-auth-help > i {
  margin: 3px 10px 0 0;
  color: #6f8096;
  font-size: 12px;
}

.admin-auth-help p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.admin-auth-form-footer {
  position: absolute;
  right: 42px;
  bottom: 28px;
  color: #adb6c3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .admin-auth-page {
    grid-template-columns: minmax(360px, 43%) minmax(0, 57%);
  }

  .admin-auth-brand {
    padding: 42px;
  }

  .admin-auth-brand-content h1 {
    font-size: 46px;
  }

  .admin-auth-features {
    grid-template-columns: 1fr;
  }

  .admin-auth-feature:last-child {
    display: none;
  }

  .admin-auth-form-panel {
    padding-right: 55px;
    padding-left: 55px;
  }
}

@media (max-width: 767px) {
  .admin-auth-page {
    display: block;
  }

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

  .admin-auth-form-panel {
    align-items: flex-start;
    min-height: 100vh;
    padding: 82px 24px 48px;
  }

  .admin-auth-back {
    top: 24px;
    right: 24px;
  }

  .admin-auth-form-shell {
    max-width: 480px;
    margin: auto;
  }

  .admin-auth-mobile-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 46px;
    color: #091e3c;
    font-size: 13px;
    font-weight: 800;
  }

  .admin-auth-mobile-logo img {
    width: 45px;
    height: 45px;
    margin-right: 11px;
    object-fit: contain;
  }

  .admin-auth-heading {
    margin-bottom: 28px;
  }

  .admin-auth-heading h2 {
    font-size: 31px;
  }

  .admin-auth-form-footer {
    position: static;
    display: block;
    margin-top: 38px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .admin-auth-form-panel {
    padding-right: 19px;
    padding-left: 19px;
  }

  .admin-auth-back {
    right: 19px;
  }

  .admin-auth-heading h2 {
    font-size: 28px;
  }
}

/* Admin sign-in */
.admin-login-page {
  padding: 48px 0 56px;
  background:
    radial-gradient(circle at 10% 15%, rgba(49, 92, 155, 0.08), transparent 34%),
    #f4f7fb;
}

.admin-login-shell {
  overflow: hidden;
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(9, 30, 60, 0.13);
}

.admin-login-brand {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  min-height: 540px;
  padding: 40px 36px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(9, 30, 60, 0.98), rgba(38, 59, 94, 0.94)),
    url("../images/bg/page-header.jpg") center/cover no-repeat;
}

.admin-login-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 52px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.admin-login-logo:hover {
  color: #fff;
}

.admin-login-logo img {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.admin-login-brand h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 40px;
}

.admin-login-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.admin-login-security {
  display: flex;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.6;
}

.admin-login-security i {
  margin: 3px 10px 0 0;
  color: #ff7896;
}

.admin-login-form-column {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 540px;
  padding: 44px 52px;
}

.admin-login-heading {
  margin-bottom: 24px;
}

.admin-login-form .admin-form-group {
  margin-bottom: 18px;
}

.admin-login-heading h2 {
  margin-bottom: 10px;
  color: #091e3c;
  font-size: 27px;
}

.admin-login-heading p {
  margin: 0;
  color: #8490a2;
  font-size: 13px;
}

.admin-input-with-icon {
  position: relative;
}

.admin-input-with-icon > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: #8d98aa;
  font-size: 13px;
  transform: translateY(-50%);
}

.admin-input-with-icon .admin-form-control {
  padding-right: 44px;
  padding-left: 42px;
}

.admin-password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  color: #8995a7;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.admin-password-field button:hover {
  color: #ff1949;
}

.admin-login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #ff1949;
  border-radius: 8px;
  color: #fff;
  background: #ff1949;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 25, 73, 0.2);
  transition: all 0.2s ease;
}

.admin-login-button:hover {
  border-color: #e70c3b;
  background: #e70c3b;
  transform: translateY(-1px);
}

.admin-login-back {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: #728095;
  font-size: 12px;
  font-weight: 600;
}

.admin-login-back:hover {
  color: #ff1949;
}

.admin-login-back i {
  margin-right: 8px;
}

@media (max-width: 991px) {
  .admin-login-page {
    padding: 38px 0 46px;
  }

  .admin-login-brand {
    min-height: 320px;
    padding: 34px 40px;
  }

  .admin-login-logo {
    margin-bottom: 34px;
  }

  .admin-login-form-column {
    min-height: auto;
    padding: 42px 48px;
  }
}

@media (max-width: 767px) {
  .admin-login-page {
    padding: 22px 0 30px;
  }

  .admin-login-shell {
    border-radius: 12px;
  }

  .admin-login-brand {
    min-height: 0;
    padding: 28px 24px;
  }

  .admin-login-logo {
    margin-bottom: 30px;
  }

  .admin-login-security {
    margin-top: 30px;
    padding-top: 17px;
  }

  .admin-login-brand h1 {
    font-size: 32px;
  }

  .admin-login-form-column {
    padding: 32px 22px;
  }

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

  .admin-login-heading h2 {
    font-size: 23px;
  }
}

@media (max-width: 420px) {
  .admin-quick-link {
    align-items: flex-start;
    flex-direction: column;
    min-height: 104px;
  }

  .admin-quick-link i {
    margin: 0 0 9px;
  }
}

/* Shared admin forms and management pages */
.admin-hero-compact {
  padding-top: 58px;
  padding-bottom: 96px;
}

.admin-content-compact {
  margin-top: -50px;
}

.admin-quick-actions-compact {
  padding-top: 0;
}

.admin-form-layout,
.admin-list-layout {
  padding-bottom: 10px;
}

.admin-form-card,
.admin-aside-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(9, 30, 60, 0.07);
}

.admin-form-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  border-bottom: 1px solid #edf0f5;
}

.admin-form-card-header h2,
.admin-aside-card h3 {
  margin: 0;
  color: #091e3c;
}

.admin-form-card-header h2 {
  font-size: 23px;
}

.admin-form-card-header p {
  margin: 7px 0 0;
  color: #7a879b;
  font-size: 13px;
}

.admin-form-card-icon {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  color: #ff1949;
  background: #fff0f3;
  font-size: 17px;
}

.admin-form-body {
  padding: 28px;
}

.admin-form-group {
  margin-bottom: 22px;
}

.admin-form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #243652;
  font-size: 13px;
  font-weight: 700;
}

.admin-form-group label .required {
  margin-left: 3px;
  color: #ff1949;
}

.admin-form-group label small {
  color: #929daf;
  font-size: 10px;
  font-weight: 600;
}

.admin-form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  color: #263b5e;
  background: #fff;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.admin-form-control {
  height: 132px;
  min-height: 132px;
  line-height: 1.65;
  resize: vertical;
}

select.admin-form-control {
  padding-right: 36px;
  cursor: pointer;
}

.admin-form-group .select2-container {
  display: block;
  width: 100% !important;
  color: #263b5e;
  font-family: inherit;
  font-size: 13px;
}

.admin-form-group .select2-container--default .select2-selection--single {
  box-sizing: border-box;
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  color: #263b5e;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0;
  color: #263b5e;
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
}

.admin-form-group .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #a1aaba;
}

.admin-form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 1px;
  right: 10px;
  width: 28px;
  height: 46px;
}

.admin-form-group .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #7a879b transparent transparent;
}

.admin-form-group .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #7a879b;
}

.admin-form-group .select2-container--default.select2-container--focus .select2-selection--single,
.admin-form-group .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #ff1949;
  box-shadow: 0 0 0 3px rgba(255, 25, 73, 0.09);
}

.select2-dropdown {
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(9, 30, 60, 0.12);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  height: 40px;
  padding: 8px 11px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  color: #263b5e;
  outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #ff1949;
}

.select2-container--default .select2-results__option {
  padding: 9px 12px;
  font-size: 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  color: #fff;
  background: #ff1949;
}

.admin-form-control:focus {
  border-color: #ff1949;
  box-shadow: 0 0 0 3px rgba(255, 25, 73, 0.09);
  outline: none;
}

.admin-form-control::placeholder {
  color: #a1aaba;
}

.admin-form-help {
  display: block;
  margin-top: 7px;
  color: #8a96a7;
  font-size: 11px;
  line-height: 1.55;
}

.admin-file-field {
  position: relative;
  padding: 16px;
  border: 1px dashed #ccd5e2;
  border-radius: 9px;
  background: #f9fbfd;
}

.admin-file-field:focus-within {
  border-color: #ff1949;
  background: #fffafb;
}

.admin-file-field-title {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #33435d;
  font-size: 12px;
  font-weight: 700;
}

.admin-file-field-title i {
  margin-right: 8px;
  color: #ff1949;
}

.admin-file-input {
  width: 100%;
  color: #69778b;
  font-size: 12px;
}

.admin-upload-progress {
  margin-top: 13px;
  padding: 12px 13px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fbfcfe;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #69778b;
  font-size: 11px;
  font-weight: 600;
}

.admin-upload-progress-status {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-upload-progress-percent {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-upload-progress-track {
  overflow: hidden;
  width: 100%;
  height: 13px;
  border: 1px solid #dbe4e0;
  border-radius: 999px;
  background: #e9efec;
  box-shadow: inset 0 1px 2px rgba(9, 30, 60, 0.08);
}

.admin-upload-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-color: #20a464;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.18) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.18) 75%,
    transparent 75%,
    transparent
  );
  background-size: 22px 22px;
  box-shadow: 0 1px 5px rgba(32, 164, 100, 0.3);
  transition: width 0.22s ease-out;
}

.admin-upload-progress.is-uploading {
  border-color: rgba(32, 164, 100, 0.28);
  background: #f5fcf8;
}

.admin-upload-progress.is-uploading .admin-upload-progress-bar {
  animation: admin-upload-bar-motion 0.8s linear infinite;
}

.admin-upload-progress.is-complete {
  border-color: #bfe8d3;
  background: #f4fcf8;
}

.admin-upload-progress.is-complete .admin-upload-progress-bar {
  background: #20a464;
  box-shadow: 0 0 10px rgba(32, 164, 100, 0.2);
}

.admin-upload-progress.is-error {
  border-color: #f2c0ca;
  background: #fff7f8;
}

.admin-upload-progress.is-error .admin-upload-progress-bar {
  background: #d93655;
}

@keyframes admin-upload-bar-motion {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 22px 0;
  }
}

.admin-upload-form-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  color: #53657f;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 600;
}

.admin-upload-form-status[hidden] {
  display: none;
}

.admin-upload-form-status.is-uploading i {
  color: #ff1949;
}

.admin-upload-form-status.is-complete {
  border-color: #bfe8d3;
  color: #187849;
  background: #f4fcf8;
}

.admin-upload-form-status.is-complete i {
  color: #20a464;
}

.admin-upload-form-status.is-error {
  border-color: #f2c0ca;
  color: #a22940;
  background: #fff7f8;
}

.admin-form-body.is-uploading .admin-file-field,
.admin-form-body.is-uploading .admin-form-control,
.admin-form-body.is-uploading .select2-selection {
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-submit-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .admin-upload-progress,
  .admin-upload-progress-bar {
    transition: none;
    animation: none;
  }
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #edf0f5;
}

.admin-submit-button,
.admin-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-submit-button {
  border: 1px solid #ff1949;
  color: #fff;
  background: #ff1949;
  box-shadow: 0 8px 18px rgba(255, 25, 73, 0.2);
}

.admin-submit-button:hover {
  border-color: #e70c3b;
  background: #e70c3b;
  transform: translateY(-1px);
}

.admin-cancel-button {
  border: 1px solid #dce3ec;
  color: #4b5b72;
  background: #fff;
}

.admin-cancel-button:hover {
  border-color: #aeb9c8;
  color: #091e3c;
}

.admin-submit-button i,
.admin-cancel-button i {
  margin-right: 8px;
}

.admin-aside-card {
  margin-bottom: 22px;
  padding: 24px;
}

.admin-aside-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.admin-aside-card > p {
  margin-bottom: 18px;
  color: #7d899a;
  font-size: 12px;
  line-height: 1.65;
}

.admin-tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-tips-list li {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid #edf0f5;
  color: #536176;
  font-size: 12px;
  line-height: 1.55;
}

.admin-tips-list li i {
  flex: 0 0 25px;
  margin-top: 2px;
  color: #0c9463;
}

.admin-related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  color: #33435d;
  background: #f9fbfd;
  font-size: 12px;
  font-weight: 700;
}

.admin-related-link:hover {
  border-color: #ff1949;
  color: #ff1949;
  background: #fff;
}

.admin-current-file,
.admin-current-cover {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-current-cover img {
  width: 48px;
  height: 62px;
  margin-right: 12px;
  border-radius: 5px;
  object-fit: cover;
}

.admin-current-cover span,
.admin-current-file span {
  color: #56657a;
  font-size: 11px;
  line-height: 1.45;
}

.admin-current-cover strong,
.admin-current-file strong {
  display: block;
  color: #223551;
  font-size: 12px;
}

.admin-current-file i {
  margin-right: 11px;
  color: #d5284a;
  font-size: 23px;
}

.admin-entity-cell {
  display: flex;
  align-items: center;
  min-width: 230px;
}

.admin-entity-avatar {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 10px;
  color: #315c9b;
  background: #eaf1fb;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-entity-avatar-category {
  color: #7a4ce0;
  background: #f1ebff;
}

.admin-entity-cell strong {
  display: block;
  color: #172b49;
  font-size: 13px;
}

.admin-entity-cell small {
  color: #929daf;
  font-size: 11px;
}

.admin-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 20px;
  color: #365274;
  background: #edf3f9;
  font-size: 11px;
  font-weight: 700;
}

.admin-list-panel .admin-books-table {
  min-width: 680px;
}

.admin-list-panel .admin-table-wrap {
  overflow-x: auto;
}

@media (max-width: 991px) {
  .admin-aside-column {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .admin-hero-compact {
    padding-top: 45px;
    padding-bottom: 88px;
  }

  .admin-content-compact {
    margin-top: -48px;
  }

  .admin-form-card-header,
  .admin-form-body {
    padding: 20px;
  }

  .admin-form-card-header h2 {
    font-size: 20px;
  }

  .admin-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-submit-button,
  .admin-cancel-button {
    width: 100%;
  }
}
