/* -------------------------------------------------
  10) 모달 공통
------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #F0F2F5;
  padding: 24px;
  border-radius: 12px;
  width: 720px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.dark-theme .modal-content {
  background-color: #1E1E1E;
  color: #D0D3D6;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 음성 주문 모달 */
.mic-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.mic-icon {
  width: 80px;
  height: 120px;
  background: url('data:image/svg+xml;utf8,<svg fill="%230288D1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 14a3 3 0 0 0 3-3V5a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 14 0h-2zm-5 8c-3.31 0-6-2.69-6-6h2a4 4 0 0 0 8 0h2c0 3.31-2.69 6-6 6z"/></svg>') no-repeat center / contain;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.voice-input {
  width: 100%;
  height: 120px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  padding: 8px;
  border: 2px solid #CCCCCC;
  border-radius: 8px;
  resize: none;
}

.dark-theme .voice-input {
  background-color: #2A2A2A;
  color: #D0D3D6;
  border-color: #444444;
}

.modal-close-btn {
  background-color: #2C3E50; /* Primary: Blue Gray 500 */
  color: #F0F2F5;
  border: none;
  border-radius: 24px;
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  background-color: #1A252F; /* Primary-dark: Blue Gray 700 */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* 채팅 기록 모달 리스트 */
.chat-list {
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 16px;
  text-align: left;
  padding-left: 0;
}

.chat-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #D0D3D6;
  font-size: 1.2rem;
}

.dark-theme .chat-list li {
  border-bottom-color: #333333;
}

/* 스크롤바 스타일 */
.chat-list::-webkit-scrollbar {
  width: 0.8rem;
}
.chat-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 0.4rem;
}
.chat-list::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.08);
}
