/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
  margin: 0;
  padding: 0;
}

/* =========================
   ROOT LAYOUT
========================= */

#root {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  background: #f5f5f5;
}

/* =========================
   HEADER
========================= */

.admin-header {
  width: 100%;
  height: 150px;

  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;

  background: rgb(5, 125, 9);
  color: rgb(242, 255, 0);

  font-size: 24px;
}

/* =========================
   STATS SECTION
========================= */

.stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;

  padding: 40px;

  background: rgb(193, 248, 222);
}

/* Statistics cards */

.stat-card {
  display: flex;
  flex-direction: column;

  width: 300px;
  padding: 20px;
  gap: 10px;

  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;

  font-size: 24px;
}

/* =========================
   WEBSITE SUCCESS SECTION
========================= */

.website-success {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;

  padding: 40px;

  background: rgb(230, 206, 252);

  font-size: 24px;
}

/* Success cards */

.promotion {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 25%;
  padding: 20px;
  gap: 10px;

  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;

  font-size: 24px;
}

/* Success numbers */

.conversion-value {
  padding: 10px;

  border: 1px solid red;

  background: rgb(236, 223, 248);
  color: rgb(234, 1, 1);

  font-size: 27px;
  font-weight: bold;
}

/* =========================
   DEVELOPMENT SECTION
========================= */

/* Business development section */

.development {
  display: flex;
  flex-direction: row;

  padding: 40px;
  gap: 40px;

  background: rgb(232, 245, 199);
}

/* Moneybox block */

.moneybox {
  display: flex;
  flex-direction: column;

  padding: 20px;
  gap: 10px;

  font-size: 24px;
}

/* Motivation block */

.motivation {
  position: relative;
  right: 10px;

  width: 300px;
  margin: 20px;
  padding: 20px;

  border: 2px solid red;
}

/* =========================
   IMPORTANT SECTION
========================= */

/* Reviews moderation and orders section */

.important {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;

  padding: 20px;

  background: rgb(251, 205, 200);
}

/* =========================
   ORDER NOTIFICATIONS
========================= */

/* Order notification block */

.order {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 20px;
}

/* Order notification container */

#order {
  width: 400px;
  height: 150px;

  padding: 40px;

  border: none;
  border-radius: 10px;
  box-shadow: inset 0 4px 10px black;

  background: #eeeeee;

  font-size: 24px;
}

/* Notification text */

#text {
  font-size: 40px;
  font-weight: bold;
}

/* New orders counter */

.number_new_orders {
  padding: 20px;

  border: none;
  border-radius: 10px;
  box-shadow: inset 0 4px 10px black;

  background: #eeeeee;
  color: rgb(11, 0, 2);

  font-size: 55px;
  font-weight: bold;
}

/* Orders page button */

.btn-order {
  width: 300px;
  padding: 10px;

  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;

  background: rgb(138, 1, 65);
  color: white;

  font-size: 25px;
  font-weight: bold;
}

.btn-order:hover {
  background: rgb(200, 1, 94);
}

/* =========================
   REVIEW MODERATION
========================= */

/* Review container */

.review-box {
  display: flex;
  flex-direction: column;

  gap: 20px;
  max-width: 100%;
}

/* Review content */

.review {
  display: flex;
  flex-direction: row;

  padding: 20px;
  gap: 20px;

  border: none;
  border-radius: 10px;
  box-shadow: inset 0 4px 10px black;

  background: #eeeeee;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Review text */

.text-review {
  display: flex;
  flex-direction: column;
  gap: 8px;

  width: 400px;
  max-width: 100%;
  min-width: 0;
  padding: 20px;

  overflow-wrap: anywhere;
  word-break: break-word;

  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 20px;
}

.text-review > div {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.text-review > div:last-child {
  max-height: 180px;
  overflow-y: auto;
}

/* Review image */

.foto {
  width: 200px;

  border: 1px solid brown;
}

/* Moderation buttons block */

.block-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;

  gap: 20px;
}

/* Review buttons */

.btn {
  width: 200px;
  height: 40px;

  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;

  color: white;

  font-size: 25px;
}

/* Approve button */

#btn-approve {
  background: green;
}

#btn-approve:hover {
  background: rgb(1, 178, 1);
}

/* Reject button */

#btn_reject {
  background: rgb(214, 1, 1);
}

#btn_reject:hover {
  background: rgb(255, 0, 0);
}

.replace-photo-btn {
  width: auto;
  min-width: 180px;
  height: 40px;
  padding: 0 16px;

  background: #4a4a4a;
  color: white;

  font-size: 16px;
}

.replace-photo-btn:hover {
  background: #333333;
}

/* =========================
   SECTION TITLE
========================= */

/* Divider section */

.name_section {
  display: flex;
  justify-content: center;

  padding: 10px;

  background: rgb(250, 73, 132);
}

/* =========================
   WEBSITE MANAGEMENT
========================= */

/* Product management section */

.website_management {
  display: flex;
  flex-direction: row;
  justify-content: space-around;

  padding: 40px;
  gap: 20px;

  background: rgb(188, 227, 251);
}

/* Product edit form */

#edit-product-form {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 40%;
  height: auto;

  padding: 20px;
  gap: 10px;

  border: 2px solid rgb(1, 1, 181);
  border-radius: 10px;

  font-size: 15px;
  font-weight: bold;
}

/* Product input */

.product-form {
  width: 350px;
  height: 40px;

  margin: 3px;
  padding-left: 20px;

  border: none;
  border-radius: 10px;
  outline: none;

  box-shadow: inset 0 2px 5px black;

  background: rgb(231, 230, 230);

  font-size: 20px;
}

.box-product {
  display: flex;
  flex-direction: column;
}

/* =========================
   DELETE PRODUCT FORM
========================= */

/* Delete form */

.form {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 40%;
  height: 400px;

  padding: 100px;
  gap: 20px;

  border: 2px solid rgb(1, 1, 181);
  border-radius: 10px;
}

/* Product ID input */

.input-id {
  width: 150px;
  height: 40px;

  padding: 20px;

  border: none;
  border-radius: 10px;
  outline: none;

  box-shadow: inset 0 1px 5px black;

  background: rgb(231, 230, 230);

  font-size: 20px;
}

/* Product action button */

.product-btn {
  width: 300px;
  height: 50px;

  margin: 20px;

  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;

  background-color: blue;
  color: beige;

  font-size: 24px;
  font-weight: bold;
}

.product-btn:hover {
  background: rgb(1, 1, 144);
}

#reset-moneybox-btn,
.btn-find-product {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;
  font-weight: bold;
  cursor: pointer;
}

#reset-moneybox-btn {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  padding: 10px 16px;
  background: rgb(138, 1, 65);
  color: white;
  font-size: 20px;
}

#reset-moneybox-btn:hover {
  background: rgb(200, 1, 94);
}

.btn-find-product {
  align-self: flex-start;
  width: auto;
  min-width: 120px;
  height: 50px;
  padding: 0 20px;
  background-color: green;
  color: whitesmoke;
  font-size: 20px;
}

.btn-find-product:hover {
  background: rgb(2, 213, 2);
  color: black;
}

/* =========================
   MODAL CARD EDITOR
========================= */

/* Modal card section */

.edit-modalcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 40px;
  gap: 20px;

  background: rgb(185, 250, 185);
}

/* Main title */

#modal-title {
  font-size: 40px;
}

/* Instructions */

.edit-modalcard h3 {
  font-size: 30px;
}

/* Edit form */

.edit-form {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  width: 100%;
  gap: 50px;

  font-size: 24px;
  font-weight: bold;
}

/* Left form block */

.box-1 {
  display: flex;
  flex-direction: column;

  padding: 20px;
  gap: 20px;
}

/* Label block */

.g {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin-bottom: 10px;
}

.product-message {
  margin-top: 10px;
  color: red;
  font-size: 14px;
  font-weight: bold;
}

/* Form inputs */

.form-group {
  padding: 20px;

  border: none;
  border-radius: 8px;
  outline: none;

  box-shadow: inset 0 1px 5px black;

  font-size: 20px;
  font-weight: bold;
}

/* ID input */

#id-input {
  width: 150px;
  height: 50px;
}

/* Cake description fields */

#description-input,
#flavor-input,
#ingredients-input {
  width: 500px;
  height: 200px;
}

/* Save modal card button */

.btn-modalcard {
  width: 300px;
  height: 60px;

  margin-top: 25px;
  margin-left: 350px;

  border: none;
  border-radius: 10px;
  box-shadow: 5px 5px 10px black;

  background: green;
  color: beige;

  font-size: 25px;
  font-weight: bolder;
}

.btn-modalcard:hover {
  background: rgb(2, 213, 2);
  color: black;
}

/* =========================
   FOOTER
========================= */

.footer {
  bottom: 0;

  width: 100%;
  height: 100px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  flex-shrink: 0;

  background: rgb(176, 176, 176);

  font-size: 30px;
}
@media (max-width: 768px) {
  .admin-header {
    height: auto;
    min-height: 100px;
    padding: 20px 12px;
    text-align: center;
    font-size: 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .main {
    width: 100%;
    overflow-x: hidden;
  }

  .stats,
  .website-success,
  .development,
  .important,
  .website_management,
  .edit-modalcard {
    width: 100%;
    padding: 20px 12px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .stat-card,
  .promotion,
  .moneybox,
  .motivation,
  #order,
  .review-box,
  .review,
  #edit-product-form,
  .form {
    width: 100%;
    max-width: 360px;
  }

  .stat-card,
  .promotion,
  .moneybox,
  .motivation {
    padding: 16px;
    font-size: 16px;
  }

  .website-success {
    font-size: 16px;
  }

  .development {
    flex-direction: column;
  }

  .motivation {
    margin: 0;
  }

  .important {
    flex-direction: column;
  }

  #order {
    height: auto;
    padding: 20px;
    font-size: 18px;
  }

  #text {
    font-size: 26px;
    text-align: center;
  }

  .number_new_orders {
    padding: 14px;
    font-size: 36px;
  }

  .btn-order,
  .btn,
  .product-btn,
  .btn-modalcard {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 44px;
    margin: 12px 0;
    font-size: 18px;
  }

  .review {
    flex-direction: column;
    align-items: center;
    padding: 16px;
  }

  .text-review {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .foto {
    width: 100%;
    max-width: 220px;
  }

  .block-btn {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .website_management {
    flex-direction: column;
  }

  #edit-product-form,
  .form {
    height: auto;
    padding: 20px 12px;
  }

  .product-form,
  .input-id,
  .form-group,
  #description-input,
  #flavor-input,
  #ingredients-input {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .edit-form {
    flex-direction: column;
    gap: 20px;
    font-size: 18px;
  }

  .box-1 {
    width: 100%;
    padding: 0;
  }

  .edit-modalcard h2 {
    font-size: 28px;
    text-align: center;
  }

  .edit-modalcard h3 {
    font-size: 20px;
    text-align: center;
  }

  .btn-modalcard {
    margin-left: 0;
  }

  .footer {
    height: auto;
    min-height: 80px;
    padding: 20px 12px;
    flex-direction: column;
    gap: 10px;
    font-size: 20px;
    text-align: center;
  }
}
@media (max-width: 950px) and (max-height: 500px) {
  .admin-header {
    height: auto;
    min-height: 80px;
    padding: 16px 12px;
    font-size: 18px;
    text-align: center;
  }

  .stats,
  .website-success,
  .development,
  .important,
  .website_management,
  .edit-modalcard {
    width: 100%;
    padding: 20px 12px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .stat-card,
  .promotion,
  .moneybox,
  .motivation,
  #order,
  .review-box,
  .review,
  #edit-product-form,
  .form {
    width: 100%;
    max-width: 620px;
  }

  .stat-card,
  .promotion,
  .moneybox,
  .motivation {
    padding: 16px;
    font-size: 18px;
  }

  .website-success {
    font-size: 18px;
  }

  .important,
  .website_management,
  .edit-form {
    flex-direction: column;
  }

  #order {
    height: auto;
    padding: 20px;
    font-size: 18px;
  }

  #text {
    font-size: 28px;
    text-align: center;
  }

  .number_new_orders {
    font-size: 36px;
  }

  .review {
    flex-direction: column;
    align-items: center;
  }

  .text-review {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .foto {
    width: 100%;
    max-width: 220px;
  }

  .block-btn {
    flex-direction: column;
    align-items: center;
  }

  #edit-product-form,
  .form {
    height: auto;
    padding: 20px 12px;
  }

  .product-form,
  .input-id,
  .form-group,
  #description-input,
  #flavor-input,
  #ingredients-input {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .btn-order,
  .btn,
  .product-btn,
  .btn-modalcard {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 44px;
    margin: 12px 0;
    font-size: 18px;
  }

  .btn-modalcard {
    margin-left: 0;
  }

  .footer {
    height: auto;
    min-height: 70px;
    padding: 16px 12px;
    flex-direction: column;
    gap: 8px;
    font-size: 20px;
    text-align: center;
  }
}

/* =========================
   LOGIN PAGE
========================= */

.login-page .login-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.login-page .login-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  background: #fff;
  border: 2px solid rgb(1, 1, 181);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.login-page .login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.login-page .login-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
}

.login-page .login-label {
  font-size: 16px;
  font-weight: 600;
}

.login-page .login-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: none;
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 1px 5px black;
  background: rgb(231, 230, 230);
  font-size: 16px;
}

.login-page .login-button {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;
  background-color: blue;
  color: beige;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.login-page .login-button:hover {
  background: rgb(1, 1, 144);
}

.login-page .login-message {
  min-height: 1.25em;
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
}

.admin-header-actions {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-account-link {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid rgb(242, 255, 0);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  color: rgb(242, 255, 0);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.admin-account-link:hover {
  background: rgba(0, 0, 0, 0.3);
}

.admin-logout-button {
  padding: 8px 16px;
  border: 2px solid rgb(242, 255, 0);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  color: rgb(242, 255, 0);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-logout-button:hover {
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .admin-header-actions {
    position: static;
    transform: none;
    margin-top: 4px;
  }

  .admin-account-link {
    font-size: 14px;
    padding: 6px 12px;
  }

  .admin-logout-button {
    position: static;
    transform: none;
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* =========================
   ACCOUNT PAGE
========================= */

.account-page .account-main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 20px;
}

.account-page .account-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px;
  background: #fff;
  border: 2px solid rgb(1, 1, 181);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.account-page .account-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 28px;
}

.account-page .account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(231, 230, 230);
}

.account-page .account-label {
  font-size: 16px;
  font-weight: 600;
}

.account-page .account-value {
  font-size: 16px;
  text-align: right;
  word-break: break-word;
}

.account-page .admin-email-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.account-page .admin-email-status--verified {
  background: rgb(193, 248, 222);
  color: rgb(5, 125, 9);
}

.account-page .admin-email-status--unverified {
  background: rgb(255, 235, 200);
  color: rgb(120, 70, 0);
}

.account-page .account-message {
  min-height: 1.25em;
  margin: 12px 0 0;
  font-size: 14px;
}

.account-page .account-verification-action {
  margin-top: 16px;
}

.account-page .account-verification-button {
  margin-top: 0;
}

.account-page .account-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid rgb(231, 230, 230);
}

.account-page .account-section-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.account-page .account-form-label {
  font-size: 16px;
  font-weight: 600;
}

.account-page .account-form-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: none;
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 1px 5px black;
  background: rgb(231, 230, 230);
  font-size: 16px;
}

.account-page .account-button {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px black;
  background-color: blue;
  color: beige;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.account-page .account-button:hover {
  background: rgb(1, 1, 144);
}

@media (max-width: 768px) {
  .account-page .account-main {
    padding: 24px 12px;
  }

  .account-page .account-card {
    padding: 24px 20px;
  }

  .account-page .account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .account-page .account-value {
    text-align: left;
  }
}
