@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap");
@import url("review-refine.css");
:root {
  --red: #ed1b2f;
  --ink: #09090a;
  --panel: #111114;
  --line: #29292e;
  --muted: #aaaab2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink);
  color: #f6f4f2;
  font-family: Tajawal, sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, #3c0710 0, transparent 38%), #080809;
}
.login-panel {
  width: min(430px, calc(100% - 32px));
  padding: 42px;
  border-top: 4px solid var(--red);
  background: #101012;
  box-shadow: 0 30px 90px #000;
}
.admin-brand {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 800;
}
.admin-brand b {
  color: var(--red);
}
.admin-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 4px;
  color: #999;
}
.security-mark {
  margin-top: 42px;
  color: var(--red);
  font-size: 12px;
}
.login-panel h1 {
  font-size: 32px;
  margin: 8px 0;
}
.login-panel > p {
  color: var(--muted);
}
label {
  display: grid;
  gap: 7px;
  margin: 17px 0;
  font-size: 13px;
  color: #d5d5da;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #09090b;
  color: #fff;
  padding: 12px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--red);
}
button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
}
.login-panel button {
  width: 100%;
  margin-top: 8px;
}
.form-error,
.bad {
  color: #ff7783;
  min-height: 22px;
}
.back-link {
  display: block;
  color: #aaa;
  margin-top: 22px;
  text-align: center;
}
.admin-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.admin-header > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-header a {
  color: #ddd;
  text-decoration: none;
}
.admin-header button {
  background: #19191d;
}
.dashboard {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: calc(100vh - 72px);
}
aside {
  padding: 28px 18px;
  border-left: 1px solid var(--line);
  background: #0c0c0e;
}
aside span {
  color: #777;
  font-size: 11px;
}
.tab {
  display: block;
  width: 100%;
  text-align: right;
  background: none;
  margin-top: 8px;
  border-right: 2px solid transparent;
}
.tab.active {
  background: #1b1114;
  border-color: var(--red);
}
.dashboard > section {
  padding: 34px;
  max-width: 1200px;
  width: 100%;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.panel-head small {
  color: var(--red);
  letter-spacing: 2px;
}
.panel-head h1 {
  margin: 4px 0;
  font-size: 30px;
}
.search {
  max-width: 420px;
  margin: 22px 0;
}
.product-list {
  border-top: 1px solid var(--line);
}
.product-row {
  display: grid;
  grid-template-columns: 1fr 90px 150px;
  gap: 15px;
  align-items: center;
  padding: 15px 8px;
  border-bottom: 1px solid var(--line);
}
.product-row h3,
.product-row p {
  margin: 0;
}
.product-row p {
  color: var(--muted);
  font-size: 13px;
}
.product-row > div:last-child {
  display: flex;
  gap: 7px;
}
.product-row button {
  background: #242429;
  padding: 8px 12px;
}
.product-row .danger {
  color: #ff6877;
}
.on {
  color: #5cdb99;
}
.off {
  color: #888;
}
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border-right: 3px solid var(--red);
  padding: 15px;
  margin: 0;
}
.switch-row input {
  width: 20px;
  accent-color: var(--red);
}
.safe-note {
  color: var(--muted);
}
dialog {
  width: min(760px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  background: #111114;
  color: #fff;
  border: 1px solid #333;
  padding: 0;
}
dialog::backdrop {
  background: #000c;
}
dialog header,
dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
dialog footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-start;
  gap: 10px;
}
.form-grid {
  padding: 5px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.wide {
  grid-column: 1/-1;
}
.checks {
  display: flex;
  gap: 20px;
  padding: 8px 22px;
}
.checks label {
  display: flex;
}
.checks input {
  width: auto;
}
.good {
  color: #5cdb99;
}
@media (max-width: 700px) {
  .admin-header {
    padding: 0 14px;
  }
  .admin-header > div a {
    display: none;
  }
  .dashboard {
    display: block;
  }
  aside {
    display: flex;
    padding: 8px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  aside span {
    display: none;
  }
  .tab {
    margin: 0;
  }
  .dashboard > section {
    padding: 20px 14px;
  }
  .product-row {
    grid-template-columns: 1fr auto;
  }
  .product-row > div:last-child {
    grid-column: 1/-1;
  }
  .toggle-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .login-panel {
    padding: 28px;
  }
}
