@font-face {
    font-family: 'Archivo-Regular';
    src: url('/static/fonts/Archivo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Archivo-Thin';
    src: url('/static/fonts/Archivo-Thin.ttf') format('truetype');
}

body, html {
    font-family: 'Archivo-Regular', Arial, sans-serif;
    background-color: white;
    color: black;
    height: 100vh; 
    margin-top: 0vh;
    margin-right: 2vw; 
    margin-left: 2vw; 
    margin-bottom: 0vh;
    padding-bottom: 5vh;
    display: grid;
    grid-template-rows: 1fr auto;
    flex-direction: column;
    position:relative;
    box-sizing: border-box;
}

.container {
    flex: 1 0 auto;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    padding-bottom: 0px;
    overflow: auto;
}

.button-style, input.button-style, a.button-style {
  background-color: white;
  border: 1px solid black;
  color: black;
  padding: 8px 14px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color .12s ease, color .12s ease, transform .06s ease, box-shadow .12s ease;
}

.form-input {
    width: 50%; 
    background-color: white; 
    border: none; 
    border-bottom: 1px solid gray; 
    margin-bottom: 10px;
    padding: 10px;
}

.content-container {
    padding-left: 0; 
    padding-right: 0; 
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.left-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-container {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    background-color: white;
    padding-bottom: 0;
}

.chatbot-name {
    font-size: small;
    color: #0000ff; 
}

.parent-container {
    width: 100%;
    margin: 0 auto;
    padding-left: 0; 
    padding-right: 0; 
}

.header-text {
    font-size: 2em;
    font-weight: bold;
}

.sub-header-text {
    margin-top: -20px;
    font-style: italic;
}

.footer-text {
    flex: 1 1 auto;
    margin-bottom: 20px;
    max-width: 500px; 
    word-wrap: break-word; 
    color: #888;
    font-size: small;
}

.footer-logo, .chatbot-logo {
    display: flex;
    align-items: center;
}

.company-logo {
    width: 90px; 
    height: auto;
    margin-right: 10px; 
}

.chat-logo {
    height: 40px;
    width: auto;
    margin-left: 0px; 
    margin-right: 0px; 
}

/* Hover for any element using .button-style, including <button>, <input>, <a> */
.button-style:hover, input.button-style:hover, a.button-style:hover, button.button-style:hover {
  background-color: #888888;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.button-style:active, input.button-style:active, a.button-style:active {
  transform: translateY(0);
  box-shadow: none;
}

form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"], form input[type="password"], form input[type="email"], form textarea, form select {
    font-family: 'Archivo-Thin', Arial, sans-serif;
    width: 55%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    color: black;
    border: none;
    border-bottom: 1px solid gray;
}

#intel-text {
    height: 15vh;
}

.chat-output {
    height: 35vh; 
    overflow-y: auto;
    margin-bottom: 5px;
}

#chat-form {
    position: relative;
    top: 0; 
    margin-bottom: 20px;
}

form textarea {
    height: 150px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #888;
    color: black;
}

table, th, td {
    border: 1px solid white;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: #444444; 
    color: white;
}

table.table-striped tbody tr:nth-of-type(odd) {
    background-color: lightgray;
}

a {
    color: #0000ff;
    text-decoration: none;
}

a:hover {
    color: #9999f8;
}

.chatbot-response {
    font-size: 1.5em;
}

nav {
    text-align: right;
    padding-right: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .button-style, input.button-style, a.button-style {
        margin-left: 0;
    }
}


/* --- Filters modal --- */
.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* slate-900/55 */
  display: none; /* toggled by JS */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.filters-modal {
  background: #fff;
  width: min(940px, 92vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.filters-header h2 { margin: 0; }

.icon-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.filters-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0 16px;
}
.tab-btn {
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .12s ease, color .12s ease, transform .06s ease;
  color: #111827;
}
.tab-btn.active {
  background: #111827;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.tab-btn:hover { background-color: #111827; color: #fff; transform: translateY(-0.5px); }

.filters-content {
  padding: 16px;
  overflow: auto;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.list-toolbar {
  display: flex;
  margin-bottom: 12px;
}
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.list-item {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .12s ease, background-color .12s ease;
  display: flex;
  flex-direction: column;
}
.list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.item-title { font-weight: 600; font-size: 1rem; }
.item-subtitle { font-size: 12px; color: #6b7280; margin-top: 4px; }

/* Document items should match category items and not show IDs */
.doc-title { font-weight: 400; font-size: 1rem; }

.filters-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 16px 16px;
  border-top: 1px solid #e5e7eb;
}

/* Buttons */
.button-secondary {
  background: #1f2937 !important;
  color: #fff !important;
}
.button-ghost {
  background: transparent !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
.button-style.sm { padding: 6px 10px; font-size: 0.9rem; }

/* Make footer buttons in modal animate */
.filters-footer .button-style { transition: background-color .12s ease, color .12s ease, transform .06s ease; }
.filters-footer .button-style:hover { transform: translateY(-1px); }

/* Active filter pill styled like a small selected button */
.filter-pill { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:9999px; background:#111827; color:#fff; border:1px solid transparent; }
.filter-pill .button-ghost { margin-left:8px; border-color: rgba(255,255,255,0.12); color:#fff; }

/* Ensure document items have same font weight/size as categories */
.documents-list .list-item .doc-title { font-weight: 400; }

/* Layout tweaks */
.actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-pill-wrapper { margin-bottom: 10px; }

/* States */
.loading, .empty, .error {
  padding: 14px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
}
