:root {
  --main-color: #3369f3;
  --main-color-hover: #2955cb;
  --main-color-active: #1f41b7;
  --second-color: #e4edfd;
  --error-color: #ff2f2f;
  --text-color: #1e1e1e;
  --white: #ffffff;
  --white-color-hover: #f1f1f1;
  --text-secondary-color: #999;
  --container-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
}

body {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

#modal {
  display: none;
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: #00000033;
}

#modal.active {
  display: block;
}
.chat-container {
  overflow: hidden;
  padding-right: 10px;
  background-color: var(--white);
}

.chat-layout {
  display: flex;
  gap: 20px;
}

.chat-active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 100%;
  background-color: #fbfbfb;
}

.back-button {
  position: absolute;
  top: 50%;

  width: 28px;
  height: 28px;
  padding: 0;
  margin-left: 18px;

  background: none;
  cursor: pointer;
  border: none;
}

.back-button:hover {
  opacity: 0.8;
}

.back-button:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.profile-avatar {
  width: 130px;
  height: 130px;

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

  border-radius: 50%;
  background-color: #efefef;
}

.edit-avatar-button {
  top: calc(50% - 20px);
  left: calc(50% - 20px);

  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  cursor: pointer;
  border: none;
}

.edit-avatar-button:hover {
  opacity: 0.8;
}

.edit-avatar-button:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.profile-name {
  margin-top: 21px;

  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

.profile-info {
  display: flex;
  flex-direction: column;

  margin-top: 60px;
  width: 510px;
}

.action-buttons {
  margin-top: 60px;

  display: flex;
  flex-direction: column;
}

.action-divider {
  width: 100%;
  height: 1px;
  margin-top: 10px;
  margin-bottom: 10px;

  background-color: #eaeaea;
}
.button {
  display: flex;
  justify-content: center;

  width: 100%;
  max-width: 280px;
  padding: 12px 24px;

  background-color: var(--main-color);
  cursor: pointer;
  border: none;
  border-radius: 8px;

  font-size: 13px;
  color: var(--white);
  text-align: center;

  transition: background-color 0.2s ease;
}

.button-secondary {
  color: var(--main-color);
  background-color: transparent;
  font-size: 11px;
}

.button:hover {
  background-color: var(--main-color-hover);
}

.button:active {
  background-color: var(--main-color-active);
}

.button.button-secondary:hover {
  background-color: var(--white-color-hover);
}

.button.button-secondary:active {
  background-color: var(--second-color);
}

.button:focus {
  outline: 2px solid rgba(51, 105, 243, 0.5);
  outline-offset: 2px;
}
.form-field {
  width: 100%;
  margin-bottom: 16px;
}

.field-label {
  display: block;

  margin-bottom: 8px;
  font-size: 9px;

  color: var(--text-color);
}

.field-input {
  width: 100%;
  padding: 0 0 7px 0;

  background: transparent;
  border: none;

  font-size: 13px;
  color: var(--text-color);
  outline: none;
}

.field-input.error-state {
  color: var(--error-color);
}

.field-underline {
  width: 100%;
  height: 1px;
  border: 1px solid var(--main-color);
}

.error-message {
  margin-top: 7px;
  font-size: 8px;
  color: var(--error-color);
}

.buttons-container {
  margin-top: 47px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.field-input:focus + .field-underline {
  border-width: 2px;
  border-color: var(--main-color);
}
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

  width: 340px;

  padding: 50px 30px 30px;

  background-color: var(--white);
  box-shadow: var(--container-box-shadow);
  border-radius: 12px;
}

.form-title {
  margin-bottom: 40px;

  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  min-width: 160px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
}

.info-value {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-align: right;
}

.info-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background-color: #eaeaea;
}

.info-value.info-input {
  width: 100%;

  background: transparent;
  border: none;

  font-size: 13px;
  outline: none;
}
.action-button {
  display: block;
  width: 100%;

  padding: 0;
  background: none;
  cursor: pointer;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--main-color);
  text-align: left;
}

.action-button:hover {
  opacity: 0.8;
}

.action-button:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.action-button.red {
  color: #f00;
}

.profile-avatar {
  width: 130px;
  height: 130px;

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

  border-radius: 50%;
  background-color: #efefef;
}

.edit-avatar-button {
  top: calc(50% - 20px);
  left: calc(50% - 20px);

  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  cursor: pointer;
  border: none;
}

.edit-avatar-button:hover {
  opacity: 0.8;
}

.edit-avatar-button:focus {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}
.modal-container {
    background-color: rgba(0, 0, 0, .7);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
}

.modal {
    background-color: white;
    border-radius: 12px ;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 340px;
    padding: 40px;
}

.modal__title {
    text-align: center;
    margin: 0;
}

.modal__body {
    padding: 45px 0;
}

.modal__footer {
    display: flex;
    flex-direction: column;
}
