* {
  box-sizing: border-box;
}

:root {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color: #17202a;
  background: #f4f6f8;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      #eef2f7,
      #dfe6ee
    );
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid #d9e0e7;
  border-radius: 16px;
  background: white;
  box-shadow:
    0 20px 50px
    rgb(0 0 0 / 10%);
}

.brand {
  margin-bottom: 28px;
  text-align: center;
}

.brand h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.brand p {
  margin: 0;
  color: #66717e;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd7df;
  border-radius: 9px;
  outline: none;
}

.form-group input:focus {
  border-color: #17202a;
  box-shadow:
    0 0 0 3px
    rgb(23 32 42 / 10%);
}

.primary-button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 9px;
  background: #17202a;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.primary-button:hover {
  opacity: 0.9;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.message {
  min-height: 22px;
  margin: 16px 0 0;
  text-align: center;
  color: #b42318;
}

.message.success {
  color: #157347;
}
.admin-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #f4f6f8;
}

.sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  background: #17202a;
  color: white;
}

.sidebar-brand {
  margin-bottom: 32px;
  font-size: 20px;
  font-weight: 800;
}

.sidebar-menu {
  display: grid;
  gap: 8px;
}

.sidebar-menu a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #dfe6ed;
  text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: #2d3b49;
  color: white;
}

.logout-button {
  margin-top: auto;
  padding: 11px;
  border: 1px solid #5b6875;
  border-radius: 8px;
  background: transparent;
  color: white;
  cursor: pointer;
}

.admin-content {
  padding: 32px;
}

.topbar {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  margin: 0 0 6px;
}

.topbar p {
  margin: 0;
  color: #66717e;
}

.stat-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.stat-card,
.panel {
  padding: 22px;
  border: 1px solid #dce2e8;
  border-radius: 12px;
  background: white;
}

.stat-card span {
  display: block;
  margin-bottom: 12px;
  color: #66717e;
}

.stat-card strong {
  font-size: 32px;
}

.panel {
  margin-top: 24px;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-button {
  padding: 11px 16px;
  border-radius: 8px;
  background: #17202a;
  color: white;
  text-decoration: none;
}

.action-button.secondary {
  background: #52606d;
}

@media (max-width: 800px) {
  .admin-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .admin-content {
    padding: 20px;
  }

  .topbar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar input,
.toolbar select {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  background: white;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid #e3e8ed;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  background: #f7f9fb;
  font-size: 13px;
}

.data-table button {
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: #17202a;
  color: white;
  cursor: pointer;
}

.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.page-actions {
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  gap: 20px;
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e6ebef;
}

.detail-list dt {
  color: #66717e;
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.stat-grid.compact {
  grid-template-columns:
    repeat(auto-fit, minmax(150px, 1fr));
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.panel-heading h2 {
  margin-bottom: 6px;
}

.panel-heading p {
  margin: 0;
  color: #66717e;
}

.credentials-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 10px;
  background: #f7f9fb;
}

.credentials-box code {
  padding: 4px 7px;
  border-radius: 5px;
  background: #e8edf2;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .detail-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
.import-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.import-file-group {
  flex: 1;
  min-width: 280px;
  margin-bottom: 0;
}

.import-file-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  background: white;
}
#direct-import-text {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #cfd7df;
  border-radius: 9px;
  outline: none;
  font-family:
    Consolas,
    "Courier New",
    monospace;
  font-size: 14px;
  line-height: 1.6;
}

#direct-import-text:focus {
  border-color: #17202a;
  box-shadow:
    0 0 0 3px
    rgb(23 32 42 / 10%);
}

.import-format {
  margin: 14px 0 18px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  background: #f7f9fb;
  font-family:
    Consolas,
    "Courier New",
    monospace;
  white-space: nowrap;
}

.direct-import-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

#direct-import-message {
  white-space: pre-line;
}

.message.error {
  color: #b42318;
}
.table-actions {
  display: flex;
  gap: 7px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8edf2;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sync-pending {
  background: #fff3cd;
  color: #664d03;
}

.sync-processing {
  background: #cff4fc;
  color: #055160;
}

.sync-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.sync-failed {
  background: #f8d7da;
  color: #842029;
}

#selected-count {
  align-self: center;
  color: #66717e;
  font-weight: 700;
}

#sync-progress-message {
  white-space: pre-line;
}
.form-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  background: white;
  font: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #17202a;
  outline: none;
  box-shadow:
    0 0 0 3px
    rgb(23 32 42 / 10%);
}

.checkbox-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.helper-text {
  color: #66717e;
}
.danger-button {
  border: none;
  background: #b42318;
  color: white;
}

.danger-button:hover {
  background: #912018;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
/* =========================================================
   TRANG TÀI KHOẢN ĐÃ XÓA
   ========================================================= */

body {
  background:
    linear-gradient(
      180deg,
      #eef2f7 0%,
      #f7f9fc 100%
    );
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  background:
    linear-gradient(
      180deg,
      #111827,
      #172334
    );
  box-shadow:
    14px 0 34px
    rgb(15 23 42 / 10%);
  color: #ffffff;
}

.admin-brand {
  margin-bottom: 28px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.admin-navigation {
  display: grid;
  gap: 8px;
}

.admin-navigation a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 11px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-navigation a:hover {
  background:
    rgb(255 255 255 / 8%);
  color: #ffffff;
  transform: translateX(3px);
}

.admin-navigation a.active {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #e9eef5
    );
  box-shadow:
    0 10px 24px
    rgb(0 0 0 / 17%);
  color: #17202a;
}

.admin-logout-button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid
    rgb(255 255 255 / 16%);
  border-radius: 11px;
  background:
    rgb(255 255 255 / 7%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.admin-logout-button:hover {
  background:
    rgb(255 255 255 / 13%);
  transform: translateY(-1px);
}

.admin-main {
  min-width: 0;
  padding: 30px;
}

.deleted-page {
  max-width: 1480px;
  margin: 0 auto;
}

.deleted-hero {
  border:
    1px solid
    rgb(255 255 255 / 8%);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgb(255 255 255 / 12%),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #111827 0%,
      #22334a 55%,
      #536983 100%
    );
  box-shadow:
    0 24px 60px
    rgb(15 23 42 / 19%);
}

.deleted-hero-actions {
  align-items: center;
}

.admin-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #17202a;
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #17202a,
      #2c3a4f
    );
  box-shadow:
    0 8px 18px
    rgb(15 23 42 / 14%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.admin-button:hover {
  box-shadow:
    0 13px 25px
    rgb(15 23 42 / 20%);
  transform: translateY(-2px);
}

.admin-button.secondary {
  border-color: #d7dde5;
  background: #ffffff;
  box-shadow:
    0 5px 14px
    rgb(15 23 42 / 6%);
  color: #273444;
}

.deleted-hero .admin-button.secondary {
  border-color:
    rgb(255 255 255 / 24%);
  background:
    rgb(255 255 255 / 10%);
  color: #ffffff;
}

.deleted-hero .admin-button.secondary:hover {
  background:
    rgb(255 255 255 / 18%);
}

.admin-button:disabled,
.admin-logout-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
  transform: none;
}

.deleted-stat-grid {
  margin-top: 4px;
}

.deleted-stat-card {
  min-height: 96px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fbfcfe
    );
  box-shadow:
    0 14px 34px
    rgb(15 23 42 / 8%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.deleted-stat-card:hover {
  box-shadow:
    0 20px 42px
    rgb(15 23 42 / 12%);
  transform: translateY(-3px);
}

.deleted-stat-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 16px;
}

.deleted-stat-card strong {
  font-size: 26px;
}

.deleted-panel {
  border-radius: 22px;
  box-shadow:
    0 18px 48px
    rgb(15 23 42 / 8%);
}

.deleted-toolbar {
  padding: 24px;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fafc
    );
}

.deleted-filter-group input,
.deleted-filter-group select {
  min-height: 46px;
  border-radius: 11px;
  box-shadow:
    inset 0 1px 2px
    rgb(15 23 42 / 3%);
}

.deleted-table-wrapper {
  background: #ffffff;
}

.deleted-table {
  min-width: 1180px;
}

.deleted-table th {
  padding-top: 16px;
  padding-bottom: 16px;
  background:
    linear-gradient(
      180deg,
      #f8fafc,
      #f2f5f8
    );
  color: #435064;
  font-size: 11px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.deleted-table td {
  padding-top: 17px;
  padding-bottom: 17px;
  color: #273444;
  font-size: 13px;
}

.deleted-table tbody tr:nth-child(even) {
  background: #fcfdfe;
}

.deleted-table tbody tr:hover {
  background: #f3f7fb;
}

.deleted-account-avatar {
  border:
    1px solid
    rgb(255 255 255 / 9%);
  box-shadow:
    0 8px 18px
    rgb(15 23 42 / 16%);
}

.deleted-account-main strong {
  font-size: 14px;
}

.deleted-account-main span {
  margin-top: 5px;
  color: #8a96a5;
  font-size: 11px;
}

.deleted-badge {
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid #dde4eb;
  background:
    linear-gradient(
      180deg,
      #f4f7fa,
      #eaf0f5
    );
  color: #526070;
}

.deleted-badge.hidden {
  border-color: #f2c4bf;
  background:
    linear-gradient(
      180deg,
      #fff0ef,
      #fee2df
    );
  color: #b42318;
}

.deleted-row-actions {
  align-items: center;
}

.deleted-row-actions .admin-button {
  min-height: 35px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.deleted-row-actions
.admin-button.secondary {
  border-color: #d9e0e7;
  background: #ffffff;
  color: #344054;
}

.deleted-pagination {
  padding: 22px;
  background:
    linear-gradient(
      180deg,
      #fbfcfd,
      #f4f7fa
    );
}

.deleted-pagination .admin-button {
  min-height: 38px;
}

.deleted-pagination-info {
  min-width: 150px;
  text-align: center;
}

.deleted-message {
  box-shadow:
    0 9px 22px
    rgb(15 23 42 / 6%);
}

.deleted-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #74808d;
  font-size: 14px;
}

.deleted-modal {
  animation:
    deleted-modal-background
    0.2s ease both;
}

.deleted-modal-card {
  border:
    1px solid
    rgb(255 255 255 / 30%);
  border-radius: 22px;
  animation:
    deleted-modal-card
    0.25s ease both;
}

.deleted-modal-account {
  border-color: #dce3ea;
  background:
    linear-gradient(
      180deg,
      #f9fbfd,
      #f2f6f9
    );
}

@keyframes deleted-modal-background {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes deleted-modal-card {
  from {
    opacity: 0;
    transform:
      translateY(14px)
      scale(0.97);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .admin-main {
    padding: 22px;
  }
}

@media (max-width: 800px) {
  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .admin-navigation {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .admin-logout-button {
    margin-top: 20px;
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .admin-navigation {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 12px;
  }

  .deleted-hero {
    border-radius: 18px;
  }

  .deleted-panel {
    border-radius: 16px;
  }
}
/* ===========================
   ACCOUNT FILTER
=========================== */

.accounts-filter-form{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
    margin-top:20px;
}

.filter-field{
    display:flex;
    flex-direction:column;
}

.filter-field label{
    font-size:13px;
    font-weight:600;
    margin-bottom:8px;
    color:#374151;
}

.filter-field input,
.filter-field select{
    width:100%;
    height:42px;

    padding:0 14px;

    border:1px solid #d1d5db;
    border-radius:10px;

    background:#fff;

    font-size:14px;

    transition:.2s;
}

.filter-field input:focus,
.filter-field select:focus{

    outline:none;

    border-color:#111827;

    box-shadow:
    0 0 0 3px rgba(17,24,39,.08);

}

.filter-search{

    grid-column:span 2;

}

.filter-actions{

    display:flex;

    align-items:flex-end;

    gap:10px;

}

.filter-actions button{

    height:42px;

}

.active-filter-summary{

    margin-top:18px;

    font-size:14px;

    color:#6b7280;

}
