:root {
  --navy: #102e2d;
  --green: #0d7063;
  --lime: #d1eb78;
  --bg: #f4f7f5;
  --line: #e2e9e6;
  --muted: #71827e;
  --white: #fff;
  --danger: #c14444;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.5 'DM Sans',
    sans-serif;
  background: var(--bg);
  color: #17312f;
}
h1,
h2,
h3,
b,
button {
  font-family: 'Manrope', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--navy);
  color: #bdd0cb;
  padding: 27px 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  color: #fff;
}
.admin-brand > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  font: 800 1.4rem 'Manrope';
}
.admin-brand b,
.admin-brand small {
  display: block;
}
.admin-brand small {
  color: #87a59e;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  padding: 12px 13px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}
.sidebar nav a span {
  width: 22px;
  text-align: center;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.sidebar nav a.active {
  box-shadow: inset 3px 0 var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}
.sidebar-bottom a,
.sidebar-bottom button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 13px;
  color: #bdd0cb;
  background: none;
  border: 0;
  cursor: pointer;
}
.admin-main {
  margin-left: 250px;
  min-height: 100vh;
}
.admin-top {
  height: 94px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 35px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.admin-top h1 {
  font-size: 1.45rem;
  margin: 0;
  letter-spacing: -0.03em;
}
.admin-top p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.admin-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user > span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e6f0ec;
  color: var(--green);
  font-weight: 800;
}
.admin-user b,
.admin-user small {
  display: block;
}
.admin-user small {
  font-size: 0.72rem;
  color: var(--muted);
}
.admin-menu {
  display: none;
  border: 0;
  background: none;
  font-size: 1.4rem;
}
.admin-content {
  padding: 30px 35px;
  max-width: 1500px;
  margin: auto;
}
.admin-flash {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 700;
}
.admin-flash.success {
  background: #dff3ea;
  color: #176b57;
}
.admin-flash.error {
  background: #fee5e2;
  color: #a03333;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.stats-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stats-grid small,
.stats-grid b {
  display: block;
}
.stats-grid small {
  color: var(--muted);
}
.stats-grid b {
  font-size: 2rem;
  margin-top: 7px;
}
.stats-grid article > span {
  width: 45px;
  height: 45px;
  background: #eaf3ef;
  color: var(--green);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.stats-grid .highlight {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.stats-grid .highlight small {
  color: #c9e2dc;
}
.stats-grid .highlight > span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--lime);
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 23px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.panel-head h2 {
  font-size: 1.08rem;
  margin: 0;
}
.panel-head p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.8rem;
}
.panel-head > a:not(.admin-btn) {
  color: var(--green);
  font-weight: 700;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr;
  gap: 20px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1ef;
  vertical-align: middle;
}
td small,
td b {
  display: block;
}
td small {
  color: var(--muted);
  font-size: 0.73rem;
}
.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: capitalize;
}
.status-new {
  background: #fff0d8;
  color: #9b5e00;
}
.status-contacted {
  background: #dff3ea;
  color: #176b57;
}
.status-closed {
  background: #edf0ef;
  color: #65746f;
}
.quick-panel > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.quick-panel > a > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf3ef;
  color: var(--green);
}
.quick-panel b,
.quick-panel small {
  display: block;
}
.quick-panel small {
  color: var(--muted);
}
.admin-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}
.admin-btn:hover {
  background: #09574d;
}
.admin-btn.small {
  padding: 10px 15px;
}
.secondary-btn {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.empty-row {
  text-align: center !important;
  padding: 35px !important;
  color: var(--muted);
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.product-cell img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  background: #edf2ef;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.actions a {
  color: var(--green);
  font-weight: 700;
}
.actions form {
  display: inline;
}
.actions button,
.danger-link {
  border: 0;
  background: none;
  color: var(--danger);
  cursor: pointer;
}
.admin-form {
  max-width: 1100px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 20px;
}
.form-grid.one {
  grid-template-columns: 1fr;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.form-grid label,
.inline-form label {
  font-weight: 700;
  font-size: 0.77rem;
}
.form-grid label small {
  font-weight: 400;
  color: var(--muted);
}
.form-grid input,
.form-grid textarea,
.form-grid select,
.inline-form input,
.inline-form select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d8e2de;
  background: #fbfcfb;
  padding: 11px 12px;
  border-radius: 9px;
  outline: 0;
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 112, 99, 0.1);
}
.form-grid .full {
  grid-column: 1/-1;
}
.check-row {
  display: flex;
  gap: 25px;
}
.check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-row input {
  width: auto;
  margin: 0;
}
.form-section-title {
  font-size: 0.88rem;
  margin: 30px 0 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.form-actions.bottom {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}
.two-col-admin {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 20px;
}
.list-stack {
  display: flex;
  flex-direction: column;
}
.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.list-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf3ef;
  display: grid;
  place-items: center;
  color: var(--green);
}
.list-item b,
.list-item small {
  display: block;
}
.list-item small {
  color: var(--muted);
  font-size: 0.75rem;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}
.inline-form .panel-head {
  min-width: 220px;
  margin: 0;
}
.inline-form .grow {
  flex: 1;
}
.checkbox-label {
  display: flex;
  gap: 5px;
  align-items: center;
  padding-bottom: 10px;
}
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.admin-gallery article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.admin-gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.admin-gallery article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}
.admin-gallery form {
  padding: 0 14px 14px;
}
.admin-gallery button {
  border: 0;
  background: none;
  color: var(--danger);
  padding: 0;
  cursor: pointer;
}
.inquiry-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.inquiry-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inquiry-head .avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e6f0ec;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.inquiry-head h3,
.inquiry-head p {
  margin: 0;
}
.inquiry-head > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.inquiry-list h4 {
  margin: 18px 0 5px;
}
.inquiry-list .message {
  color: #526864;
}
.inquiry-actions {
  display: flex;
  justify-content: space-between;
}
.inquiry-actions select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
}
.login-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-panel {
  background: linear-gradient(140deg, #0d7063, #082f2c);
  padding: 50px 8vw;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-brand {
  padding-left: 0;
}
.login-copy {
  margin: auto 0;
  max-width: 520px;
  position: relative;
  z-index: 2;
}
.login-copy > span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.login-copy h1 {
  font-size: 4.5rem;
  line-height: 1;
  margin: 15px 0;
}
.login-copy p {
  color: #c5ddd7;
  font-size: 1.05rem;
}
.login-shape {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 90px solid rgba(209, 235, 120, 0.12);
  border-radius: 50%;
  right: -180px;
  bottom: -170px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form {
  width: min(420px, 100%);
}
.login-form h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}
.login-form > p {
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 18px;
}
.login-form input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}
.login-form .admin-btn {
  width: 100%;
  margin-top: 5px;
}
.back-site {
  display: block;
  text-align: center;
  color: var(--muted);
  margin-top: 22px;
}
@media (max-width: 1000px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .two-col-admin {
    grid-template-columns: 1fr;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .admin-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-menu {
    display: block;
  }
  .admin-top {
    padding: 0 18px;
  }
  .admin-user div {
    display: none;
  }
  .admin-content {
    padding: 20px 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .admin-gallery {
    grid-template-columns: 1fr;
  }
  .login-body {
    grid-template-columns: 1fr;
  }
  .login-panel {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
  }
  .inline-form {
    display: block;
  }
  .inline-form label,
  .inline-form button {
    display: block;
    margin-top: 12px;
  }
  .panel-head {
    align-items: flex-start;
  }
  .list-item {
    grid-template-columns: auto 1fr;
  }
  .list-item .status,
  .list-item form {
    grid-column: 2;
  }
  .inquiry-head > span {
    display: none;
  }
}
