/* =============== Global =============== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #121212;
  color: #eee;
  height: 100vh;
  height: 100dvh; /* adjusts when the keyboard changes the viewport */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* =============== Chat Container =============== */
.chat-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh; /* adjusts when the keyboard changes the viewport */
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* =============== Header =============== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d47a1;
  padding: 12px 16px;
}
.header .logo {
  height: 40px;                /* default */
  margin-right: 12px;
}
@media (min-width: 768px) {
  .header .logo {
    height: 56px;             /* larger on desktop */
  }
}
.header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  flex: 1;
}
.visit-btn {
  background: #fff;
  color: #0d47a1;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}
.visit-btn:hover {
  background: #e0e0e0;
}

/* =============== Disclaimer =============== */
.disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  padding: 6px 12px;
  border-bottom: 1px solid #333;
  background: #1e1e1e;
}

/* =============== Messages =============== */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}
/* Assistant messages */
.message.assistant {
  justify-content: flex-start;
}
.message.assistant .bubble {
  background: #2a2a2a;        /* darker bubble */
  color: #f1f1f1;
  margin-left: 8px;           /* space from avatar */
}
/* User messages */
.message.user {
  justify-content: flex-end;
}
.message.user .bubble {
  background: #1565c0;        /* blue bubble */
  color: #fff;
  margin-right: 8px;
}
/* Bubble base */
.bubble {
  padding: 12px 16px;
  border-radius: 20px;
  max-width: 75%;
  word-wrap: break-word;
}


/* =============== Avatar =============== */
.avatar {
  width: 64px;    /* bigger avatar */
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============== Input Area =============== */
.input-area {
  display: flex;
  border-top: 1px solid #333;
  padding: 8px;
  background: #1e1e1e;
}
#userInput {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: #2a2a2a;
  color: #eee;
}
#userInput:focus {
  outline: none;
  background: #333;
}
#sendBtn {
  margin-left: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #1565c0;
  color: #fff;
  cursor: pointer;
}
#sendBtn:hover {
  background: #0d47a1;
}

/* =============== Choice Buttons =============== */
.choices {
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  padding: 8px;
}
.choices button {
  margin: 4px 0;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #1565c0;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.choices button:hover {
  background: #0d47a1;
}

/* =============== Admin Pages (basic) =============== */
body.admin {
  background: #f5f5f5;
  color: #333;
}
.container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
}
.nav {
  background: #0d47a1;
  padding: 10px;
}
.nav a {
  color: #fff;
  margin-right: 15px;
  text-decoration: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
th, td {
  padding: 8px;
  border: 1px solid #ccc;
}
th {
  background: #eee;
  text-align: left;
}
pre {
  background: #222;
  color: #eee;
  padding: 10px;
  overflow-x: auto;
}

/* 1. Remove unwanted top‐margin on mobile */
@media (max-width: 768px) {
  .sith-chat-header {
    margin-top: 0 !important;
    height: 60px;                  /* tighten if needed */
  }
}

/* 2. Make chat panel fill viewport & pin input to bottom */
.sith-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0;
}
.sith-chat-messages {
  flex: 1;
  overflow-y: auto;
}
.sith-chat-input {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 8px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* 3. Theme buttons to match college branding */
.sith-btn {
  display: inline-block;
  background: #0056A8;     /* MI College blue */
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 0.5em;
}
.sith-btn:hover {
  background: #004080;
}

/* 4. “Apply Now” variant */
.sith-btn.apply-now {
  background: #28A745;    /* green for call-to-action */
}
.sith-btn.apply-now:hover {
  background: #218838;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* prevent double‐scrolling */
}

/* assuming your chat lives in a container with id="chat-container" */
#chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;     /* fill the viewport */
  height: 100dvh; /* adjusts when the keyboard changes the viewport */
}

/* the scrollable messages area: */
.chat-messages {
  flex: 1;
  overflow-y: auto;
}

/* the input bar sticks to the bottom: */
.chat-input {
  flex-shrink: 0;
}


