.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(var(--vh, 1vh) * 100);
  min-height: -webkit-fill-available;
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 10;
}
.chat-header .header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.chat-header .back-button,
.chat-header .menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.chat-header .back-button:hover,
.chat-header .menu-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.chat-header .back-button img,
.chat-header .menu-button img {
  width: 30px;
  height: 30px;
}
.chat-header .user-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
.chat-header .user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.chat-header .user-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.chat-header .user-details .user-name {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin: 0;
  line-height: 1.2;
}
.chat-header .user-details .user-status {
  font-size: 14px;
  color: #28a745;
  margin: 0;
  margin-top: 4px;
  line-height: 1;
}
.chat-header .header-right {
  position: relative;
}

.menu-content {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 20;
  width: 200px;
}
.menu-content.active {
  display: block;
}
.menu-content a {
  display: block;
  padding: 12px 16px;
  color: #212529;
  text-decoration: none;
  font-size: 14px;
}
.menu-content a:hover {
  background-color: #f8f9fa;
}
.menu-content a.disabled {
  color: #adb5bd;
  pointer-events: none;
  background-color: transparent;
}

.system-notice {
  flex-shrink: 0;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.system-notice .message-wrapper.system-message {
  justify-content: center;
  margin: 0;
}
.system-notice .message-wrapper.system-message .message-content {
  background-color: #e9ecef;
  color: #6c757d;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  max-width: 90%;
}
.system-notice .message-wrapper.system-message .message-content p {
  margin: 0;
  line-height: 1.4;
}
.system-notice .message-wrapper.system-message .message-time {
  display: none;
}

.chat-messages {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 100px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.message-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.message-wrapper.received-message {
  align-self: flex-start;
  flex-direction: row;
  align-items: start;
  padding-right: 48px;
}
.message-wrapper.sent-message {
  align-self: flex-end;
  flex-direction: row-reverse;
  padding-left: 48px;
}

.message-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.message-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.message-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}
.sent-message .message-body {
  align-items: flex-end;
}
.received-message .message-body {
  align-items: flex-start;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.4;
  max-width: 100%;
}
.sent-message .message-content {
  background-color: #007bff;
  color: white;
  border-bottom-right-radius: 6px;
}
.received-message .message-content {
  background-color: #ffffff;
  color: #212529;
  border: 1px solid #dee2e6;
  border-bottom-left-radius: 6px;
}
.message-content p {
  margin: 0;
  white-space: pre-wrap;
}

.message-time {
  font-size: 11px;
  color: #adb5bd;
  padding: 0 4px;
  white-space: nowrap;
}

.chat-input {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background-color: #ffffff;
  border-top: 1px solid #dee2e6;
  box-sizing: border-box;
  z-index: 100;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.chat-input.keyboard-active {
  transition: transform 0.3s ease-out;
  z-index: 101;
}

.input-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.attachment-button,
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}
.attachment-button:hover,
.send-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.attachment-button img,
.send-button img {
  width: 20px;
  height: 20px;
}

.send-button:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.input-wrapper {
  flex: 1;
  min-width: 0;
}

.message-input {
  width: 100%;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 16px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background-color: #f8f9fa;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
  overflow-y: auto;
  transition: border-color 0.2s ease;
}
.message-input:focus {
  border-color: #007bff;
  background-color: white;
}
.message-input::-moz-placeholder {
  color: #adb5bd;
}
.message-input::placeholder {
  color: #adb5bd;
}

@media (max-width: 1024px) {
  .chat-header {
    padding: 15px 18px;
  }
  .chat-header .user-details .user-name {
    font-size: 18px;
  }
  .chat-messages {
    padding: 12px;
    padding-bottom: 90px;
  }
  .message-wrapper {
    gap: 6px;
  }
  .message-wrapper.received-message {
    padding-right: 32px;
  }
  .message-wrapper.sent-message {
    padding-left: 32px;
  }
  .message-content {
    padding: 10px 14px;
    font-size: 14px;
    max-width: 80%;
  }
  .chat-input {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 768px) {
  .chat-header {
    padding: 12px;
    min-height: 68px;
  }
  .chat-header .header-left {
    gap: 8px;
  }
  .chat-header .user-avatar {
    width: 46px;
    height: 46px;
  }
  .chat-header .back-button,
  .chat-header .menu-button {
    width: 46px;
    height: 46px;
  }
  .chat-header .back-button img,
  .chat-header .menu-button img {
    width: 28px;
    height: 28px;
  }
  .chat-header .user-details .user-name {
    font-size: 16px;
  }
  .chat-header .user-details .user-status {
    font-size: 12px;
  }
  .system-notice {
    padding: 8px 12px;
  }
  .chat-messages {
    padding: 8px;
    padding-bottom: 80px;
  }
  .chat-input {
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .message-wrapper {
    gap: 4px;
  }
  .message-wrapper.received-message {
    padding-right: 40px;
  }
  .message-wrapper.sent-message {
    padding-left: 40px;
  }
  .message-avatar {
    width: 62px;
    height: 62px;
  }
  .message-content {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 16px;
    max-width: 85%;
  }
  .sent-message .message-content {
    border-bottom-right-radius: 4px;
  }
  .received-message .message-content {
    border-bottom-left-radius: 4px;
  }
  .message-time {
    font-size: 10px;
  }
  .input-container {
    gap: 6px;
  }
  .attachment-button,
  .send-button {
    width: 36px;
    height: 36px;
  }
  .attachment-button img,
  .send-button img {
    width: 18px;
    height: 18px;
  }
  .message-input {
    min-height: 36px;
    max-height: 108px;
    padding: 8px 14px;
    font-size: 16px;
    border-radius: 18px;
  }
}
@media (max-width: 480px) {
  .chat-header {
    min-height: 60px;
    padding: 8px;
  }
  .chat-header .user-details .user-name {
    font-size: 14px;
  }
  .chat-header .user-details .user-status {
    font-size: 11px;
  }
  .system-notice {
    padding: 6px 8px;
  }
  .chat-input {
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }
  .message-wrapper.received-message {
    padding-right: 36px;
  }
  .message-wrapper.sent-message {
    padding-left: 36px;
  }
  .message-content {
    max-width: 280px;
    padding: 6px 10px;
    font-size: 12px;
  }
}
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.message-input::-webkit-scrollbar {
  width: 4px;
}
.message-input::-webkit-scrollbar-track {
  background: transparent;
}
.message-input::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.message-wrapper {
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.loading-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px !important;
  min-height: 20px;
}

.loading-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.loading-dots span {
  width: 6px;
  height: 6px;
  background-color: #6c757d;
  border-radius: 50%;
  animation: loadingPulse 1.4s ease-in-out infinite both;
}
.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loadingPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.chat-input.keyboard-active {
  transition: transform 0.3s ease-out;
}

.persona-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.persona-menu {
  background: white;
  border-radius: 12px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.persona-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}
.persona-menu-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}
.persona-menu-header .persona-menu-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.persona-menu-header .persona-menu-close:hover {
  color: #495057;
}

.persona-menu-content {
  padding: 12px;
}

.persona-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.persona-option:hover {
  background-color: #f8f9fa;
}
.persona-option.active {
  background-color: #e3f2fd;
  border: 1px solid #2196f3;
}
.persona-option .persona-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.persona-option .persona-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.persona-option .persona-name {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.user-name {
  position: relative;
}
.user-name:hover {
  color: #007acc;
}
.user-name::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
  vertical-align: middle;
}
.user-name:hover::after {
  opacity: 1;
  transform: rotate(180deg);
}/*# sourceMappingURL=manager.css.map */