/* Global Styles */
body {
  font-family: sans-serif;
  background: #f0f4f8;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navbar */
#navbar {
  background-color: #000080;
  width: 100%;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 240px;
  background-color: #000080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 1001;
}

.nav-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: calc(100% - 240px);
  margin-left: 240px;
  padding: 16px 24px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.nav-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  text-align: center;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* Layout */
#main-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

#sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #ddd;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
}

#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
}

/* Chat */
#chat-container {
  width: 100%;
  height: 75vh;
  display: flex;
  flex-direction: column;
}

#chat-window {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  white-space: pre-wrap;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 100%;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 6px;
  line-height: 1.5;
  word-wrap: break-word;
  display: block;
  text-align: left;
  align-self: flex-start;
}

form {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

button {
  padding: 10px 16px;
  border: none;
  background: #000080;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #009999;
}

/* Intro */
#intro-section {
  max-width: 900px;
  margin: 0 auto;
  background-color: #f0f4f8;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  text-align: center;
  font-size: 20px;
}

/* Tables and Filters */
table {
  border-collapse: collapse;
  margin-top: 1em;
  width: 100%;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size: 14px;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.target-table,
.molecule-table {
  background-color: #f9f9ff;
  font-family: sans-serif;
  font-size: 14px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.filter-option {
  margin: 6px 12px 6px 0;
  padding: 8px 14px;
  background-color: #000080;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.filter-option:hover {
  background-color: #009999;
}

/* Beta Sidebar Enhancements */
.beta-section {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #d9822b;
  font-size: 0.9em;
  border-radius: 6px;
}

.beta-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.beta-icon {
  width: 24px;
  height: 24px;
}

.beta-message,
.support-message,
.beta-meta {
  margin-bottom: 15px;
}

.beta-section h4 {
  margin-bottom: 5px;
  color: #d9822b;
}

.beta-section a {
  color: #0077cc;
  text-decoration: none;
}

.beta-section a:hover {
  text-decoration: underline;
}

.payment-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.powered-by {
  margin-top: 20px;
  padding-top: 10px;
  font-size: 0.9em;
  color: #888;
  border-top: 1px solid #ddd;
  text-align: center;
}

.brand-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin: 0 6px 0 4px;
}

#beta-timer {
  background-color: #d9822b;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .nav-container {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 12px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    left: 0;
  }

  .nav-logo {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
  }

  #main-wrapper {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    order: 2;
    border-right: none;
    border-top: 1px solid #ddd;
  }

  #content {
    order: 1;
  }
}

@media (max-width: 480px) {
  input {
    padding: 12px;
    font-size: 14px;
  }

  button {
    padding: 8px 12px;
    font-size: 14px;
  }

  #intro-section {
    font-size: 16px;
  }

  .nav-title {
    font-size: 18px;
  }
}
