.login-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-container .field {
  margin-bottom: 1rem;
}
.login-container .field label {
  display: block;
  margin-bottom: 0.5rem;
}
.login-container .field input[type=email],
.login-container .field input[type=password] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.login-container .actions {
  margin-top: 1.5rem;
  text-align: center;
}
.login-container .actions input[type=submit] {
  width: 100%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.login-container .actions input[type=submit]:hover {
  background-color: #0056b3;
}

@tailwind base;
@tailwind components;
@tailwind utilities;
html.chats {
  height: 100dvh;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 75px);
}
.chat-container .messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}
.chat-container .message-form {
  background: white;
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  max-height: 120px;
}
.chat-container .message-form .input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
}
.chat-container .message-form .message-input {
  flex-grow: 1;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid #e1e1e1;
  border-radius: 24px;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}
.chat-container .message-form .message-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.messages {
  padding-bottom: 80px;
}
.messages .message {
  max-width: 75%;
  margin-bottom: 1rem;
}
.messages .message .system-message-content a {
  color: #007bff;
}
.messages .message.message-sent {
  margin-left: auto;
}
.messages .message.message-sent .message-content {
  background-color: #daecff;
  color: rgb(37, 37, 49);
  border-radius: 18px 18px 4px 18px;
}
.messages .message.message-system {
  margin-right: auto;
}
.messages .message.message-system .message-content {
  background-color: #f1f3f5;
  color: #212529;
  border-radius: 18px 18px 18px 4px;
}
.messages .message.message-system.satisfaction-check .message-content {
  background-color: #edf8ed;
}
.messages .message.message-system.calendar-event-assessment .message-content {
  background-color: #E0E7FF;
}
.messages .message.message-system.duplicate-task-message .message-content {
  background-color: #FEFCE8;
}
.messages .message.personal-message .message-content {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 3px solid #0ea5e9;
}
.messages .message.personal-message.message-sent .message-content {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-right: 3px solid #3b82f6;
  border-left: none;
}
.messages .message .message-content {
  padding: 12px 16px;
  margin-bottom: 4px;
}
.messages .message .message-metadata {
  font-size: 0.75rem;
  color: #868e96;
  margin-left: 8px;
}

.send-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-button:hover {
  background-color: #e9ecef;
}
.send-button:active {
  background-color: #e9ecef;
}

.record-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
}
.record-button:hover {
  background-color: #e9ecef;
}
.record-button:active {
  background-color: #e9ecef;
}
.record-button.recording {
  background-color: #ff4444;
  animation: pulse 2s infinite;
}
.record-button.recording i {
  color: white;
}
.record-button i {
  font-size: 1.2rem;
  color: #32323f;
}

.recording-indicator {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  align-items: center;
  gap: 8px;
}
.recording-indicator .pulse {
  color: #ff4444;
  font-weight: 500;
}
.recording-indicator .timer {
  font-family: monospace;
  font-size: 0.9rem;
  color: #666;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.audio-player audio {
  max-width: 200px;
}
.audio-player .audio-metadata {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #666;
}
.audio-player .audio-metadata i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.file-input-wrapper {
  position: relative;
}
.file-input-wrapper input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.markdown-content h1 {
  font-size: 2rem;
  font-weight: bold;
}
.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
}
.markdown-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
}
.markdown-content p {
  padding: 0.5rem 0;
}
.markdown-content a {
  color: #6c7fee;
}
.markdown-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}
.markdown-content ul li {
  padding-left: 0.5rem;
}
.markdown-content ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
}
.markdown-content ol li {
  padding-left: 0.5rem;
}
.markdown-content blockquote {
  border-left: 2px solid #e1e1e1;
  padding-left: 1.25rem;
  margin: 1rem 0;
}
.markdown-content code {
  background-color: #e1e1e1;
  padding: 0.25rem;
  border-radius: 0.25rem;
}
.markdown-content pre {
  background-color: #e1e1e1;
  padding: 1rem;
  border-radius: 0.25rem;
}
.markdown-content img {
  max-width: 100%;
  height: auto;
}
.markdown-content table {
  width: 100%;
  border-collapse: collapse;
}
.markdown-content th, .markdown-content td {
  padding: 0.5rem;
  border: 1px solid #e1e1e1;
}
.markdown-content th {
  background-color: #e1e1e1;
}
.markdown-content hr {
  border-top: 1px solid #e1e1e1;
  margin: 1rem 0;
}
.markdown-content strong {
  font-weight: bold;
}
.markdown-content em {
  font-style: italic;
}
.markdown-content del {
  text-decoration: line-through;
}
.markdown-content sup {
  font-size: 0.875rem;
}
.markdown-content sub {
  font-size: 0.875rem;
}
.markdown-content mark {
  background-color: #fde68a;
  color: #333;
}

.pulse {
  color: #000000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}
.dashboard-audio-player {
  min-width: 250px;
}
@media (min-width: 768px) {
  .dashboard-audio-player {
    min-width: 400px;
  }
}
