.hidden {
  display: none !important;
}

#login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f7fbfc;
  color: #222;
}
.container {
  max-width: 1100px;
  margin: 64px auto 0 auto;
  padding: 0;
}
/* Header */
.header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0 0 0;
}
.lang-btn {
  border: none;
  background: #f3f6fc;
  border-radius: 7px;
  padding: 5px 18px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lang-btn:before {
  content: "🌐";
  font-size: 16px;
}
/* Card */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(40, 54, 100, 0.06);
  padding: 0;
  margin-bottom: 28px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f7;
  padding: 22px 24px 16px 24px;
}
.card-title {
  font-weight: 600;
  font-size: 19px;
  color: #2151d6;
  margin-right: 12px;
}
.beta-badge {
  background: #eaf1ff;
  color: #2151d6;
  font-weight: 500;
  font-size: 12px;
  border-radius: 6px;
  padding: 2px 11px;
  margin-left: 7px;
}
.card-desc {
  font-size: 14px;
  color: #445270;
  margin: 0;
  padding: 0 24px 18px 24px;
}
/* Steps Nav */
.steps-nav {
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid #eef2f7;
  padding: 0 0 0 10px;
  margin-bottom: 10px;
  background: #fff;
}
.step-item {
  border: none;
  background: none;
  padding: 14px 17px 5px 0;
  cursor: pointer;
  min-width: 120px;
}
.step-item.active {
  color: #2151d6;
  font-weight: 600;
  border-bottom: 2px solid #2151d6;
  background: none;
}
.step-number {
  font-size: 12px;
  margin-right: 3px;
}
.step-desc {
  display: block;
  font-size: 11px;
  color: #aaa;
}
.step-item.active .step-desc {
  color: #2151d6;
}
/* Main content */
.card-content {
  padding: 0 24px 24px 24px;
}
/* File Upload section */
.upload-section {
  margin: 22px 0 12px 0;
}
.upload-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.upload-desc {
  font-size: 13px;
  color: #585b65;
  margin-bottom: 7px;
}
.upload-drop {
  border: 2px dashed #dbe6fa;
  background: #fafdff;
  padding: 37px 15px 37px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.3s;
  text-align: center;
}
.upload-drop.dragover {
  border-color: #2151d6;
}
.upload-icon {
  font-size: 32px;
  color: #2151d6;
  margin-bottom: 8px;
}
.upload-btn {
  margin-top: 12px;
  border: 1px solid #2151d6;
  background: #fff;
  color: #2151d6;
  border-radius: 6px;
  padding: 7px 24px;
  cursor: pointer;
  font-size: 13px;
}

.upload-message {
  margin: 7px;
  color: #3a3f55;
}

.small-text {
  color: #9fa4b7;
  font-size: 12px;
  margin: 3px 0 0 0;
}
/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  margin-bottom: 5px;
}
.btn {
  border: none;
  background: #eef2f7;
  color: #585b65;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
  margin: 5px;
}
.btn.primary {
  background: #4386fa;
  color: #fff;
}
.btn.secondary {
  background: #eef2f7;
  color: #2452d6;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.a-btn {
  display: block;
  text-decoration: none;
  text-align: center;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 0 0;
  gap: 0.5em;
}
.page-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf3ff;
  color: #2452d6;
  border: none;
  font-size: 15px;
  margin: 0 2px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.page-dot.active {
  background: #2151d6;
  color: #fff;
}
.footer {
  text-align: center;
  color: #8d99bb;
  font-size: 12px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.chat-container {
  display: flex;
  flex-direction: column;
}

.chat-conversation {
  display: flex;
  flex-direction: column;
}

.msg {
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 5px;
}

.msg-from-assistant {
  background: #dbe4f4;
}

.msg-from-user {
  margin-left: 20%;
  width: 80%;
  background: #96bcff;
}

.msg-from-requirement {
  background: #eeeeee;
}

.msg-from-requirement-answer {
  background: #eeeeee;
}

.msg-from-requirement-answer textarea {
  width: 99%;
  min-height: 8em;
}

.ta-update-me {
  background: #e6b1b1;
}

.ta-updated {
  background: #ceeed4;
}

.msg-from-title {
  font-size: 1.4em;
  font-weight: bold;
}

.msg-from-requirement-title {
  margin-right: 20%;
  background: #eeeeee;
  font-size: 1.2em;
}

#technical-margins {
  width: 100%;
}

.table-right-align {
  text-align: end;
}

.table-middle-align {
  text-align: center;
}

.summary-row td {
  border-top: 1px solid black;
  border-collapse: collapse;
  height: 30px;
}

td {
  padding: 3px;
}

.margin-perc {
  text-align: center;
}

.margin-slider {
  vertical-align: middle;
}

.margin-slider-figure {
  min-width: 50px;
  display: inline-block;
  text-align: end;
}

.step-6-figure-name {
  width: 200px;
}

.step-6-figure {
  text-align: end;
  width: 250px;
}

#anbudssumma {
  font-size: 2em;
  margin: 50px;
}

.page-break {
  width: 90%;
  margin-block: 18px;
  height: 1px;
  background: black;
  margin-inline: auto;
}

.please-wait {
  width: 30%;
  text-align: center;
  padding: 70px;
  margin: auto;
}

#db-popup {
  height: calc(75vh + 64px);
  width: 50%;
  border: 2px solid #dbe6fa;
  border-radius: 8px;
  color: #2d3648;
  overflow: hidden;
}

.db-popup-list {
  width: 100%;
  height: 75vh;
  color: #2d3648;
}

.db-popup-title {
  margin: 3px;
}

/* Scrollbar for aesthetics */
::-webkit-scrollbar {
  width: 10px;
  background: #e9eff7;
}
::-webkit-scrollbar-thumb {
  background: #dde4f5;
  border-radius: 20px;
}
