/* General page styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main container */
.container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-width: 600px;
  width: 100%;
  padding: 30px;
}

/* App title */
h1 {
  text-align: center;
  color: #667eea;
  margin-top: 0;
  margin-bottom: 25px;
}

/* Input fields */
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

/* Send button */
#send {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 15px;
}

#send:hover {
  background: #5568d3;
}

#send:active {
  transform: scale(0.98);
}

/* Feedback messages */
#feedback {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  min-height: 20px;
  transition: all 0.3s;
}

/* Chat list */
#chat {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

#chat li {
  background: #f8f9fa;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message content */
.message-content {
  flex: 1;
}

#chat b {
  color: #667eea;
  margin-right: 8px;
  text-transform: capitalize;
}

#chat .message-text {
  text-transform: capitalize;
}

#chat i {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Delete button - RED */
#chat button {
  background: #ff4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
  margin-left: 10px;
  font-weight: bold;
}

#chat button:hover {
  background: #cc0000;
}

#chat button:active {
  transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 20px;
  }
  
  #chat li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #chat button {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
}

/* Scrollbar styling */
#chat::-webkit-scrollbar {
  width: 8px;
}

#chat::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#chat::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}
