/* css/styles.css */

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: #1f2937;
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
header {
  background: linear-gradient(90deg, #4b6cb7, #182848);
  color: #ffffff;
  padding: 1.25rem 2rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Navigation */
nav a {
  margin: 0 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #ffffff;
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 880px;
  margin: 0 auto;
}

section {
  margin-bottom: 2.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.035);
}

/* Footer */
footer {
  background-color: #f1f5f9;
  color: #64748b;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid #e2e8f0;
}

/* Forms */
form input,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background-color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
  border-color: #4b6cb7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.2);
}

form button {
  padding: 0.75rem 1.5rem;
  background: #4b6cb7;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

form button:hover {
  background: #3b509e;
}

/* Floating Bot Button */
#socrabot-launcher {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #4b6cb7;
  color: white;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

#socrabot-launcher:hover {
  background: #3a4e94;
}

/* Iframe Chatbot */
#socrabot-frame {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  width: 380px;
  height: 540px;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  display: none;
  background: #ffffff;
  z-index: 9998;
}

/* Inline Chatbot */
#socrabot-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin: 2rem auto;
}

#socrabot-container h1 {
  font-size: 1.5rem;
  color: #4b6cb7;
  margin-bottom: 1rem;
}

/* Chat */
.chat-box {
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  height: 260px;
  overflow-y: auto;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bot-msg,
.user-msg {
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  max-width: 80%;
  word-wrap: break-word;
}

.bot-msg {
  background: #e9effc;
  color: #1f2937;
  align-self: flex-start;
}

.user-msg {
  background: #4b6cb7;
  color: #ffffff;
  align-self: flex-end;
}

/* Input controls */
.input-box {
  display: flex;
  gap: 0.5rem;
}

#user-input {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
}

#send-btn,
#reset-btn {
  padding: 0.6rem 1.25rem;
  background: #4b6cb7;
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

#send-btn:hover,
#reset-btn:hover {
  background: #3953a4;
}

#reset-btn {
  margin-top: 1rem;
  background: #94a3b8;
}
