body {
  margin: 0;
  padding: 0;
  background-color: #edefec;
}

h1 {
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}

#root {
  font-family: 'Roboto', sans-serif;
  color: #100c08;
  padding-top: 20px;
}

.container {
  width: 80%;
  min-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.chat__header {
  text-align: center;
  margin-bottom: 20px;
  color: #100c08;
}

.chat__connect {
  width: 150px;
  margin-left: auto;
  border-radius: 5px;
  padding: 10px 20px;
  text-align: center;
  box-sizing: border-box;
  background-color: #dee2e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  margin-bottom: 40px;
  cursor: pointer;
}

.chat__container {
  width: 100%;
  height: 600px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  display: flex;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

/* Левая панель с сотрудниками */
.chat__employees-sidebar {
  flex: 0 0 25%;
  background-color: #f8f9fa;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-right: 1px solid #e2e5e9;
  overflow-y: auto;
}

.chat__employees-header {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e5e9;
  text-align: center;
}

.employee__container {
  background-color: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.employee__container:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.employee__name {
  font-weight: 500;
  margin-bottom: 5px;
}

.employee__status {
  font-size: 12px;
  color: #666;
}

.employee__status-online {
  color: #4caf50;
}

.employee__status-offline {
  color: #f44336;
}

/* Основная область чата */
.chat__area {
  flex: 0 0 75%;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.chat__messages-container {
  flex: 0 0 85%;
  overflow-y: auto;
  padding: 15px;
  box-sizing: border-box;
  background-color: #fff;
}

.chat__messages-input {
  flex: 0 0 15%;
  padding: 15px;
  box-sizing: border-box;
  border-top: 1px solid #e2e5e9;
  background-color: #f8f9fa;
}

.form .form__group {
  margin-bottom: 0;
}

.form .form__input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e5e9;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.message__container {
  width: 70%;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  background-color: #f1f3f4;
}

.message__header {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.message__container-yourself {
  margin-left: auto;
  text-align: right;
  background-color: #e3f2fd;
}

.message__container-yourself .message__header {
  color: #1976d2;
}

.message__container-interlocutor {
  margin-right: auto;
  text-align: left;
}

.message__time {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  text-align: right;
}

.modal__form {
  display: none;
}

.modal__form.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal__header {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.modal__body {
  margin-bottom: 25px;
}

.modal__footer {
  text-align: center;
}

.modal__ok {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal__ok:hover {
  background-color: #1565c0;
}

.form__group {
  margin-bottom: 15px;
}

.form__input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.form__hint {
  font-size: 12px;
  color: #f44336;
  margin-top: 5px;
  min-height: 18px;
}

