html, body {
  height: 100%;
}
body {
  margin: 0;
  overflow: hidden;
}
body { visibility: hidden; }
body.ready { visibility: visible; }

/* стили файла navigation.html */
.navbar {
  background-color: #ADD8E6;
  font-family: verdana;
  display: flex;
  align-items: center;
  height: 55px;
  padding: 0;
  margin: 0;
  gap: 0;
}

/* Общие стили для всех элементов навбара */
.navbar > * {
  height: 100%;
  display: flex;
  align-items: center;
  border: 0px solid grey;
  padding: 0 0 0 0px;
  text-decoration: none;
  color: inherit;
  margin: auto;
}

/* Логотип */
.nav-logo {
  padding: 0 0 0 0px;
}

.nav-logo img {
  height: 35px;
  width: auto;
}

/* Обычные элементы навигации */
.nav-item {
  white-space: nowrap;
  transition: all 0.2s;
  color: inherit;
  text-decoration: none;
  padding: 0;
}

.nav-logout-btn {
  color: inherit;
  border: none;
  background-color: inherit;

}
.nav-logout-btn:hover {
  color: red;
}

.nav-item:hover {
  color: red;
}

/* поиск */
.search-wrap {
  flex: 0 0 50%;
  max-width: 650px;
  min-width: 260px;
  display: flex;
  justify-content: center;
  border: 0px solid grey;
  margin: 0;
  margin-right: auto;
}

.list-group {
  top: 100%;
  left: 0;
  z-index: 2000;
}

/* Правая часть */
.nav-right {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 30px;
}

/* Аватар */
.nav-avatar {
  padding: 0 30px 0 0px;
  display: flex;
  align-items: center;
}

.nav-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}


/* стили файла main_page.html */
.body-content {
  display: flex;
  justify-content: space-between;
  height: 100vh;
  width: 100vw;
  align-items: stretch;
  min-height: 100vh;
  gap: 0px;
}
.left-panel {
  flex: 0 0 50%
  min-width: 260px;
  margin-left: 20px;
}
.position-relative {
  width: 100%;
  margin-left: 20px;
}
.search-results {
  display: none;
}
.left-text {
  margin-top: 10px;
}
 .month-selector {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-left: 140px;
  padding-right: 140px;
  margin-bottom: 10px;
}
.selector-left,
.selector-right {
  width: 120px;      /* фиксированная ширина для кнопок-стрелок */
  text-align: center;
}
.selector-center {
  text-align: center;
  font-size: 20px;
  width: calc(100% - 240px); /* оставшаяся ширина между стрелками */
}
.left-text .month-selector a {
  text-decoration: none;
  color: #5c646a;
}
.left-text .month-selector a:hover {
  color: red;
}
.selector-left,
.selector-right {
  flex: 1 1 0;
  text-align: center;
  justify-content: center
}
.selector-center {
  flex: 2 1 0;
  text-align: center;
  font-size: 30px;
  justify-content: center;
}
.month-results {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px
}
.my-figure {
  width: 120px;
  height: 80px;
  border: 2px solid lightgrey;
  background-color: light;
  padding: 5px;
  border-radius: 15px;
  text-align: center;
  font-family: verdana;
  color: #333;
  margin: 2px;
}
.button-results {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
/* Общий стиль для всех кнопок выбора периода */
.period-btn {
  width: 170px;
  height: 35px;
  display: inline-flex;      /* чтобы текст по центру оставался по центру */
  align-items: center;
  justify-content: center;
  white-space: nowrap;       /* предотвращает перенос текста */
}
.results-graphic {
  margin: 00px;
}
.right-panel {
  display: flex;
  flex: 0 0 50%;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;

}
.month-table {
  table-layout: fixed;
  width: 90%;
  height: 80%;
  text-align: center;
  margin: 10px;
  min-height: 0;
}
.month-table td.table-element {
  width: 100px;     /* нужная вам ширина */
  height: 100px;    /* нужная вам высота; можно подобрать под дизайн */
  padding: 0;
  box-sizing: border-box;
  border: 0.5px solid grey; /* если нужна сетка */
  overflow: hidden;       /* скрыть переполнение, чтобы держать размер */
}
.table-head-element {
  border: 0.5px solid grey;
  font-size: 20px;
  height: 30px;
  font-family: verdana;
}
.table-element {
  padding: 5px;
  font-family: Verdana;
  font-size: 27px;
  cursor: pointer;
}
.table-element-link:hover {
  color: red;
}
.table-element-link {
  display: block;
  height: 100%;
  width: 100%;
  color: inherit;
  margin-top: 15px;
  text-decoration: none;
}
.cell-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 90%
}
.table-element-line {
  margin: 0;
}
.table-element-text {
  font-size: 11px;
  color: grey;
  margin-bottom: 0px;
}
.table-element:hover {
  background-color: #f0f8ff;
}


/* стили файла day_detail.html */
.body-content-day-detail {
  display: flex;
  justify-content: space-between;
  align-items: auto;
  gap: 5px;            /* промежуток между колонками по желанию */
  min-height: 100vh;      /* чтобы центр был по центру даже при малой высоте контента */
  margin-top: 10px;
}

.left-panel-day-detail {
  justify-content: space-between;
  width: 35%;
  height: 100%;
  flex: 0 0 35%;
  margin: 0;
  padding: 0;
}
.products-container {
  display: flex;
  flex-direction: column;
}
.product-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 25px;
  margin-left: 5px;
  margin-top: 2px;
}
.weight-input-no-spin {
  width: 70px;
  max-width: 60px;
  height: 23px;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.weight-input-no-spin::-webkit-outer-spin-button,
.weight-input-no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.btn.btn-outline-dark period-btn {
  width: 40px;
}
.btn.btn-outline-secondary {
  --bs-btn-padding-y: 0rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 1rem;
  line-height: 1.3;
}
.product-link {
  font-family: Verdana;
  font-size: 13px;
  text-decoration: none;
}
.center-panel-day-detail {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 27%;
  height: 100%;
  flex: 0 0 27%;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.calendar {
  box-sizing: border-box;
  width: auto;
  height: 100%;
  text-align: center;
  padding: 0px;
  margin: 0px;
}
.calendar-title {
  font-family: Verdana;
  font-size: 16px;
  padding: 10px;
  border: 0.5px solid grey;
}
.calendar-title th {
  border: 0.5px solid grey;
}
.day {
  border: 0.5px solid grey;
  height: 100%;
  padding: 0px;
  padding-left: 0px;
  padding-right: 0px;
  font-family: Verdana;
  font-size: 16px;
  cursor: pointer;
}
.day:hover {
  color: inherit;
  background-color: #f0f8ff;

}
.day-link {
  font-family: Verdana;
  text-decoration: none;
  color: black;
  display: block;
  box-sizing: border-box;
.day-text {
  margin: 8px;
}
}
.day-link:hover {
  color: red;
}
.month-results-day-detail {
  display: flex;
  align-items: center;
  font-size: 14px;
  width: 100%;
  gap: 5px
}
.figure-day-detail {
  width: 90px;
  height: 70px;
  border: 1px solid black;
  background-color: light;
  padding: 5px;
  border-radius: 15px;
  text-align: center;
  font-family: verdana;
  color: #333;
}
.product-button {
  margin-bottom: 5px;
  height: 20px;
  margin-top: 10px;
}
.weight-user {
  display: flex;
  flex-direction: column;
  width: 100px;
  margin-top: 0px;
}
.weight-user-title {
  font-size: 20px;
  align-text: center;
  margin-bottom: 0px;
  margin-top: 15px;
}
.weight {
  font-size: 32px;
}
.weight-user-input-no-spin {
  width: 100px;
  max-width: 100px;
  height: 23px;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
  margin-bottom: 10px;
}
.weight-user-input-no-spin::-webkit-outer-spin-button,
.weight-user-input-no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.right-panel-day-detail {
  width: 35%;
  height: 100%;
  flex: 0 0 35%;
  margin: 0;
  padding: 0;
}
.day-products {
  display: flex;
  flex-direction: column;
}
.day-product-row {
  font-family: Verdana;
  padding: 1px;
  font-size: 14px;
}

.day-product-link {
  text-decoration: none;
}


/* стили файла product_detail.html */

.body-content-product-detail {
  display: flex;
  justify-content: space-between;
  align-items: auto;
  gap: 5px;
  min-height: 100vh;
  margin-top: 10px;
}

.left-panel-product-detail {
  justify-content: space-between;
  width: 35%;
  height: 100%;
  flex: 0 0 35%;
  margin: 0;
  padding: 0;
}
.center-panel-product-detail {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 27%;
  height: 100%;
  flex: 0 0 27%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.product-summary {
  display: flex;
  align-items: center;
  font-size: 14px;
  width: 100%;
  gap: 5px
}
.product-manager {
  width: 100;
  border: 0px solid grey;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-manager-input {
  height: 30px;
  width: 100px;
  max-width: 100px;
  display: flex;
  justify-content: center;
  padding: 0;
}
.product-manager-button {
  height: 30px;
  width: 100px;
  max-width: 100px;
  min-width: 100px;
}
.day-summary-product-detail {
  display: flex;
  align-items: center;
  font-size: 14px;
  width: 100%;
  gap: 5px
}
.create-delete-product {
  display: flex;
  gap: 10px;
}

.right-panel-product-detail {
  width: 35%;
  height: 100%;
  flex: 0 0 35%;
  margin: 0;
  padding: 0;
}

/* стили файла update_product */

.body-content-update-product {
  display: flex;
  justify-content: center;
  align-items: auto;
  gap: 5px;
  min-height: 100vh;
  margin-top: 10px;
}
.update-form {
  border: 0px solid grey;
  margin: 10px;
  width: 30%;
  height: 100%;
  font-family: Verdana;
  font-size: 12px;
  text-align: right;
}
.attribute {
  width: 1000px;
  max-width: 100%;
}
.product-image {
  margin-top: 10px;
  height: 100%;
  border: 0px solid grey;
}
.product-attribute {
  width: 250px;
  max-width: 250px;
  height: 30px;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
  margin: 5px;
}
.product-attribute::-webkit-outer-spin-button,
.product-attribute::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* стили файла create_product */

.body-content-create-product {
  display: flex;
  justify-content: center;
  align-items: auto;
  gap: 5px;
  min-height: 100vh;
  margin-top: 10px;
}
.create-form {
  border: 0px solid grey;
  margin: 10px;
  width: 30%;
  height: 100%;
  font-family: Verdana;
  font-size: 12px;
  text-align: right;
}

/* Стили файла login.html */

.body-content-login {
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 20px;
  margin-top: 70px;
  justify-content: center;
  width: 90%;
  border: 0px solid grey;
  align-items: center;
}
.login-signin {
  display: flex;
  gap: 5px;
  text-align: center;
  flex-direction: column;
}
.login-signin a {
  text-decoration: none;
  color: black;
}
.login-signin a:hover {
  color: red;
}
.login-form-inputs {
  border: 0px solid grey;
  text-align: center;
  justify-content: center;
  max-width: 500px;
}
.alt-logins {
  display: flex;
  gap: 20px;
  text-align: center;
  justify-content: center;
}
.login-img {
  width: 50px;
  height: 50px;
  border: 0px solid grey;
  border-radius: 40px;
}
.login-img:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #007bff;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.login-form-button {
  display: flex;
  text-align: center;
  justify-content: center;
}
.container mt-3 {
  text-align: center;
}

/* Стили файла signup.html */
.signup-form {
  border: 0px solid grey;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.signup-form-inputs {
  border: 0px solid grey;
  text-align: center;
  max-width: 500px;
}
.attentions {
  max-width: 700px;
  margin: auto;
  align-items: center;
}

/* Стили файла profile.html */

.profile-content {
  text-align: center;
}
.profile-content img {
  border-radius: 30px;
  width: 230px;
  height: 230px;
}
.profile-block {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.profile-block-container {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.avatar-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 1    0%;
    overflow: hidden;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px 0 8px 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-container:hover .profile-avatar {
    filter: brightness(0.8);
}

.upload-label {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.profile-username-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-info-container {
  display: flex;
  gap: 30px;
}
.profile-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.result-header {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
  align-items: center;
}
.submit-text a {
  text-decoration: none;
  color: inherit;
}

.link-button {
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
.edit-input {
    width: 50px;
    max-width: 80px;
    height: 25px;
    padding: 5px;
    border: none;
    outline: none;
    border-radius: 3px;
    margin: auto;
    text-align: center;

}
.form-control.edit-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
    text-align: center; /* выравнивание текста по центру как в вашем дизайне */
}
.form-control[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-link {
  border: none;
  background-color: white;
  padding: 0;
  text-decoration: none !important;

}
.btn-link:hover {
  color: red !important;
}
.buttons-grid-container {
    width: 800px;
    height: 200px;
    margin: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    padding-top: 15px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(53, 10.47px);
    grid-template-rows: repeat(7, 10.47px);
    gap: 2px; /* отступ 1px между кнопками */
    grid-auto-flow: column;
    width: 660px;
    height: 100px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.grid-btn {
    width: 11px;
    max-width: 11px;
    border: 1px solid #e1dfdd;
    background-color: #f0f3f7;
    border-radius: 2px;
    cursor: pointer;
    padding: 0px;
    box-sizing: border-box;
}
.grid-btn:hover {
    background-color: grey;
    transform: scale(1.05);
}

.grid-btn:active {
    background-color: #007bff;
    border-color: #007bff;
}
.grid-summary {
  max-width: 660px;
  width: 660px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-family: verdana;
}
.summary-block {
  display: flex;
  flex-direction: column;
  font-size: 25px;
}
.text-summary {
  font-size: 12px;
}
.months-header {
    display: grid;
    grid-template-columns: repeat(53, 11px);
    gap: 2px;
    width: 660px;
    margin: 0 auto 0px auto;
    height: 20px;
}
.month-label {
    font-size: 11px;
    text-align: left;
    padding: 0px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    width: 25px;
    max-width: 25px;
    border: 0px solid grey;
    margin: 0;
}

/* ====== файл edit_profile.html ======= */
.profile-row {
  gap: 5px;
  border: 0px solid grey;
  align-items: center;
  justify-content: end;
  margin-bottom: 2px;
  display: flex;
  height: 50px;
  width: 360px;
}
.profile-row label {
  border: 0px solid grey;
  margin: 0px;
  font-size: 14px;
  max-width: 200px;
}
.form-field {
  width: 200px;
  margin-right: 10px;
  padding: 0px;
}
/* Универсальные стили для всех полей ввода */
.form-field input,
.form-field select {
  width: 100%;
  height: 40px; /* Фиксированная высота */
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

/* Особые стили для select */
.form-field select {
  padding: 0 12px; /* Убираем лишние отступы */
  appearance: none; /* Убираем стандартные стрелки */
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* Для текстовых полей дополнительно центрируем текст */
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"] {
  line-height: 1.5;
}
.body-content-update-profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-body {
  display: flex;
  justify-content: center;
  align-items: auto;
  gap: 5px;
  margin-top: 10px;
}
.bottom-body {
  display: flex;
  border: 1px solid grey;
}
.bottom-body attentions {
  max-width: 1000px;
  border: 1px solid grey;
}