:root {
	--primary-color: #f6f6f6;
	--primary-color-rgb: 246, 246, 246;
	--secondary-color: #000;
	--tertiary-color: #000;
	--accent-color: #000;
	--light-color: #a3abbd;
  --top-bar-border: #dadada;
	--beige: #f4f4f4;
	--hover: #ec776a;
	--box-color: hsla(0, 0%, 100%, .8);
  --background-color: #ffffff; /* White for backgrounds */
  --box-title-color: #2c3e50;
  --circle-size: 50px;
  --box-size: 60px;
  --test-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
	position: relative;
	width: 100%;
	height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
	color: 000;
	background-color: var(--primary-color);
	margin: 0;
	box-sizing: border-box;
	font-family: var(--test-font-family);
  font-style: normal;
  display: flex;
  flex-direction: column;
}

a {
	color: var(--background-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

label {
	display: block;
}

footer {
	text-align: center; 
	padding-top: 10px; 
	padding-bottom: 10px; 
	background-color: var(--secondary-color); 
	font-size: 12px; 
	color: var(--background-color); 
	position: static; 
	bottom: 0; 
	width: 100%; 
	left: 0;
  flex-shrink: 0;
}

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
	-webkit-padding: 0.4em 0;
	padding: 0.4em;
	margin: 0 0 0 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
}

input:disabled {
	color: #ccc;
}

button {
	color: #333;
	background-color: #f4f4f4;
	outline: none;
}

button:disabled {
	color: #999;
}

button:not(:disabled):active {
	background-color: #ddd;
}

button:focus {
	border-color: #666;
}

main {
	text-align: center;
	margin: 0 auto;
  flex: 1 0 auto;
  max-width: 100%;
}

@font-face {
  font-family: 'MuseoModerna';
  src: url('MuseoModerno.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@media (min-width: 640px) {
	main {
		max-width: none;
	}
}

h1 {
	color: var(--accent-color);
	font-size: 4em;
	font-weight: 500;
  font-family: 'MuseoModerna';
  letter-spacing: -0.07em;
  margin-bottom: 0px;
}

.tm {
  font-size: 0.4em; /* Adjust size to make it superscript-like */
  vertical-align: super; /* Position it as superscript */
  margin-left: 0.1em; /* Add a little spacing from the text */
  font-family: var(--test-font-family);
}

h2 {
	color: var(--accent-color);
	font-size: 0.9em;
	font-weight: 400;
	position: relative;
  font-family: 'MuseoModerna';
  margin-bottom: 30px;
  text-align: center;
}

h3 {
	color: var(--accent-color);
	text-transform: uppercase;
	font-size: 1.1em;
	font-weight: 300;
	position: relative;
}

h4 {
  color: var(--accent-color);
  font-size: 0.7em;
  font-weight: 200;
  position: relative;
  margin-bottom: 5px;
  padding-top: 10px;
  margin-top: 0px;
}

h5 {
  color: var(--accent-color);
	text-transform: uppercase;
	font-size: 0.9em;
	font-weight: 300;
	position: relative;
}

h6 {
  color: var(--accent-color);
  font-size: 0.85em;
  font-weight: 100;
  position: relative;
  margin-bottom: 5px;
  padding-top: 10px;
  margin-top: 0px;
}

@media (min-width: 768px) {
  h5 {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: 300;
    position: relative;
  }
}

@media (min-width: 768px) {
  h6 {
    color: var(--accent-color);
    font-size: 0.9em;
    font-weight: 200;
    position: relative;
    margin-bottom: 5px;
    padding-top: 10px;
    margin-top: 0px;
  }
}

h7 {
	color: var(--accent-color);
	font-size: 1.9em;
  letter-spacing: -0.02em;
	position: relative;
  margin-top: -15px;
  margin-bottom: 30px;
  line-height: 1.3em;
  font-weight: 100;
}

h8 {
	color: var(--accent-color);
	font-size: 0.85em;
	font-weight: 200;
	position: relative;
  margin-top: -15px;
  margin-bottom: 30px;
  line-height: 1.3em;
  letter-spacing: -0.02em;
}

canvas {
  width: 300px;
  height: 300px;
}

.analyze-info {
	background-color: var(--primary-color);
  margin-left: 30px;
  margin-right: 30px;
}

.container {
  display: flex;
  flex-direction: row; /* Default to vertical alignment */
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.double-width {
  flex: 1 1 calc(50% - 16px) !important;
}

.box {
  flex: 1 1 calc(25% - 16px);
  box-sizing: border-box;
  background-color: #f0f0f0;
  padding: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
  }

}

.key-value-table {
  background-color: var(--box-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.key-value-table:hover {
  box-shadow: 0 8px 12px 0 rgba(4, 4, 52, 0.1), 0 0 4px 0 rgba(91, 95, 107, 0.3);
}

.dropdown {
  position: relative;
  display: inline-block;
  width: 60vh;
}

.drop-down-adress {
  font-size: 0.7em;
  font-weight: 100;
  padding-top: 3px;
  color: #999;
}

.renovation-year {
  vertical-align: top;
  width: 50px;
}

.brfListLoading {
  left: 55%;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  display: flex; /* Enable flex layout for horizontal alignment */
  align-items: center; /* Align items vertically centered */
  color: grey; /* Set text color to grey */
  font-family: Arial, sans-serif; /* Optional: Set a font style */
  font-size: 14px; /* Optional: Adjust font size */
  margin-top: -5px;
  margin-left: 10px;
}

.info-text-attributes {
	line-height: 1.6;
	text-align: left;
}

.upload-input {
  padding: 10px 15px;
  box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
  border-radius: 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
  height: 40px;
}

.upload-input:hover {
	border-color: var(--tertiary-color);
  }

.upload-input:focus {
  border-color: var(--tertiary-color);
}

@media (max-width: 750px) {
  .dropdown-search-input {
    height: 80px !important;
  }

  .dropdown {
    width: 90%;
  }
}

.dropdown-search-input {
  background: url('/search.svg') no-repeat 8px center, var(--background-color);
  background-size: 3vh;
  padding-left: 2rem;

  border: 0px;
  padding-left: 50px;
  box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
  border-radius: 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s;
  height: 8vh;
  max-height: 75px;
}

.disabled {
  pointer-events: none;
  color: gray;
  text-decoration: none;
}

.dropdown-search-input:hover {
	border-color: var(--tertiary-color);
  }

.dropdown-search-input:focus {
  border-color: var(--tertiary-color);
}

.dropdown-content {
	position: absolute;
	margin-left: 2.5%;
  margin-top: -8px;
  width: 95%;
	background-color: #f9f9f9;
	box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
  border-radius: 5px;
  z-index: 1000;
}

.dropdown-item {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s, color 0.3s;
  border-bottom: 1px solid #e0e0e0; /* Light gray divider */
  background-color: var(--background-color);
  z-index: 1000;
}

.dropdown-item:last-child {
  border-bottom: none; /* Remove the border for the last item */
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  transform: scale(1.02);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--top-bar-border);
}

.dropdown:focus-within .dropdown-content {
  display: block;
}

.highlight {
  color: #000; /* Dark text for contrast */
  font-weight: bold; /* Emphasize the match */
}

.circle_answer {
	margin: 0 auto;
	text-align: center;
	width:40px;
	margin-bottom: 30px;
}

/* New styles for custom file input */
.file-input-wrapper {
    display: inline-block;
    position: relative;
    margin: 10px;
}

.custom-file-label {
    padding: 10px 15px;
    margin: 10px;
    border: 2px solid var(--hover);
    border-radius: 20px;
    outline: none;
    display: inline-block;
    cursor: pointer;
    font-family: "Silka",Helvetica,Arial;
    background-color: white;
    transition: border-color 0.3s, background-color 0.3s;
}

.custom-file-label:hover {
    background-color: var(--hover);
    color: white;
}

.center-content {
	display: inline-block;
    justify-content: center;
    align-items: left;
	height: 100%;
}

.about {
	width: 100%;
	position: relative;
	margin-top: 1.5em;
	color: var(--tertiary-color);
}

.infoButton {
	margin-bottom: 0px;
	border: solid 0px transparent;
	background: transparent;
	transition-duration: 0.4s;
	cursor: pointer;
}

.infoButton:hover {
  color: var(--hover); /* Black text on hover */
}

.refreshButton {
	background-color: transparent;
	border: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
	transition-duration: 0.4s;
}

.refreshButton:hover {
  color: white; /* Black text on hover */
}

.iframe {
	width: 100%;
  height: 900px;
}

ul {
  padding-left: 20px;
}

@media (min-width: 768px) {
  ul {
    padding-left: 30px;
  }
}

table {
  width: 100%;
 
}

td {
  font-weight: unset;
}

.upload-table {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.analyze-about-text {
  background-color: var(--box-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
    margin-bottom: 20px; 
    max-width: 550px; /* Ensure it doesn't exceed screen width initially */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .analyze-about-text {
        margin-left: 15px;  /* Center the block */
        margin-right: 15px; /* Center the block */
    }
}

.about-text{
  background-color: var(--box-color);
  border-radius: 12px;
  box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.ready-state.centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
padding-left: 20px;
padding-right: 20px;
}

.ready-state .content-container {
  flex: 1;
  width: 100%;
}

.ready-state h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--box-title-color);
  margin-bottom: 20px;
  text-align: center;
}

.column1 {
  text-align: left;
  font-weight: bold;
}

.column2 {
  text-align: right;
}

.column4 {
  text-align: left;
}
.column5 {
  text-align: center;
}
.column6 {
  text-align: right;
}

.question-input {
  border-radius: 7px;
  border: 0px;
  width: 100%;
  height: 60px;
  box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
}

.question-answer {
  line-height: 1.3;
  text-align: left;
}

.display-buttons{
  margin-bottom: 10vh;
}

.login-box {
	width: 300px;
    background-color: var(--box-color);
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
	border-radius: 12px;
    box-shadow: 0 2px 4px 0 rgba(4, 4, 52, .06), 0 0 2px 0 rgba(91, 95, 107, .24);
	text-align: left;
}

.login-loading {
	margin-top: 10px;
}

.login-button {
  background-color: #343a40;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
  display: inline-block;
  width: auto;
  margin-bottom: 15px;
  text-align: center;
}

.login-button:hover {
  background-color: #495057;
}

.login-button:disabled {
  background-color: var(--light-color);
  cursor: not-allowed;
}

.login-input {
	width: 100%;
  border: 0px;
  max-width: 300px;
	border-radius: 10px;
    font-size: 15px;
    line-height: 24px;
    transition: all .08s linear;
    transition: var(--transition);
	box-shadow: 0 3px 3px 0 rgba(4, 4, 52, .06), 0 0 1px 0 rgba(91, 95, 107, .24);
}

.google-btn-outer-wrapper {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
	max-width: 300px;
	height: 38px;
	box-shadow: 0 3px 3px 0 rgba(4, 4, 52, .06), 0 0 1px 0 rgba(91, 95, 107, .24);
}
  
.google-btn-inner-wrapper {
	margin: -1px -1px -1px -1px;
}

.info-text {
	font-size: 12px;
	margin-bottom: 10px;
  padding-top: 10px;
  text-align: center;
}

.file-input-wrapper {
    align-items: center;
    margin: 10px;
}

/* Adjust .custom-file-label within .file-input-wrapper */
.file-input-wrapper .custom-file-label {
    margin: 0; /* Remove margin to align with input */
}

/* Adjust .dropdown-search-input within .file-input-wrapper */
.file-input-wrapper .dropdown-search-input {
    margin-left: 10px;
    flex: 1; /* Allow input to take up remaining space */
}

.create-account-text {
    color: var(--accent-color);
    cursor: pointer;
    font-family: "Silka",Helvetica,Arial;
    font-size: 0.9em;
  }

  .create-account-text:hover {
    text-decoration: underline;
  }

  .error-message {
    color: red;
    font-size: 0.7em;
    margin-bottom: 10px;
  }

  .submit-button,
  .back-button {
    background-color: var(--tertiary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-family: "Silka",Helvetica,Arial;
    transition: background-color 0.3s;
  }

  .submit-button:hover,
  .back-button:hover {
    background-color: var(--secondary-color);
  }

  .submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  .general-button,
  .back-button,
  .upload-button {
    background-color: var(--tertiary-color);
    border: none;
    color: white;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Silka",Helvetica,Arial;
    transition: background-color 0.3s;
  }

  .general-button:hover,
  .back-button:hover, 
  .upload-button:hover {
    background-color: var(--hover);
  }

  .general-button:disabled, 
  .upload-button:disabled {
    cursor: not-allowed;
  }

  .upload-button {
    display:block;
    margin-bottom: 20px;
    text-align: center;
  }

.symbol {
  position: relative;
  width: 300px;
  height: var(--box-size);
  margin-right: auto;
  margin-left: auto;
}

.block {
    position: absolute;
    width: calc(0.368 * var(--box-size));
    height: calc(0.368 * var(--box-size));
    background-color: white;
    border-radius: calc(0.06 * var(--box-size));
}

.block-1 { top: 0; left: 0; }
.block-2 { top: 0; left: calc(0.63 * var(--box-size)); }
.block-3 { top: calc(0.63 * var(--box-size)); left: 0; }
.block-4 { top: calc(0.63 * var(--box-size)); left: calc(0.63 * var(--box-size)); }

.line-vertical {
    position: absolute;
    width: calc(0.11 * var(--box-size));
    height: calc(0.5 * var(--box-size));
    background-color: black;
    border-radius: calc(0.075 * var(--box-size));
    z-index: 10;
}

.line-v1 { top: calc(0.25 * var(--box-size)); left: calc(0.12 * var(--box-size)); }
.line-v2 { top: calc(0.25 * var(--box-size)); left: calc(var(--box-size) - 0.22* var(--box-size)); }

.line-horizontal {
    position: absolute;
    width: calc(0.5 * var(--box-size));
    height: calc(0.11 * var(--box-size));
    background-color: black;
    border-radius: calc(0.075 * var(--box-size));
    z-index: 10;
}

.line-h1 { left: calc(0.25 * var(--box-size)); top: calc(0.12 * var(--box-size)); }
.line-h2 { left: calc(0.25 * var(--box-size)); bottom: calc(0.12 * var(--box-size)); }

.title {
	color: white;
	font-size: 4em;
	font-weight: 500;
  font-family: 'MuseoModerna';
  letter-spacing: -0.07em;
  margin-bottom: 0px;
  left: 80px;
  position: relative;
  bottom: 7px;
  width: 215px;
}

.loading-analysis {
  margin: 0;
  justify-content: center;
    align-items: center;
    display: flex;
}

.loading-analysis .symbol{
  position: relative;
  height: var(--box-size);
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
  width: 60px;
}

.loading-analysis .block{
  background-color: black;
  animation: rotateBlocks 2.5s infinite linear;
}

.loading-analysis .line-vertical,
.loading-analysis .line-horizontal {
  background-color: var(--background-color);
}

/* Styles for Loading Indicators (like in AnalyzeStadgar) */
.loading-container {
  background-color: #f8f9fa; /* Light background like info-card */
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-left: auto;
  margin-right: auto;
}

.loading-header {
  font-size: 1.1rem; /* Slightly smaller */
  font-weight: 600;
  color: var(--box-title-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
  text-align: left; /* Changed from center in original to match Stadgar */
}

.loading-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between loading items */
}

.loading-item {
  display: flex;
  align-items: center; /* Vertically center align items */
  justify-content: flex-start; /* Align items to start */
  gap: 15px; /* Add space between spinner/icon and text */
  background-color: #fff; /* White background for contrast */
  border-radius: 8px;
  padding: 15px; /* Adjusted padding */
  border: 1px solid #e0e0e0;
  min-height: 50px; /* Adjusted min-height */
}

.loading-icon-area {
  width: 45px; /* Fixed width for icon/spinner area */
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking */
}

.loading-spinner {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.loading-spinner :global(svg) { /* Target Logotype SVG */
    width: 100%;
    height: 100%;
}

.loading-status-icon.done {
    font-size: 2.2rem;
    color: #28a745; /* Green checkmark */
}

.loading-text {
  display: flex;
  align-items: center;
  font-size: 0.9rem; /* Adjusted font size */
  color: #495057;
  font-weight: 500;
  flex-grow: 1; /* Allow text to take remaining space */
}
/* End Loading Indicator Styles */

.benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 20px auto;
  display: inline-block;
  text-align: left;
}

.benefits-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #34495e;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: #28a745;
  font-weight: bold;
  font-size: 1rem;
}

.question {
  justify-content: center;
    align-items: center;
    display: flex;
}

.question .symbol{
  position: relative;
  height: var(--box-size);
  margin-right: auto;
  margin-left: auto;
  width: 60px;
}

.question .block{
  background-color: black;
  animation: rotateBlocks 2.5s infinite linear;
}

.question .line-vertical,
.question .line-horizontal {
  background-color: var(--background-color);
}

.home-title .symbol {
    position: relative;
    width: 355px;
    height: var(--box-size);
    margin-right: auto;
    margin-left: auto;
    margin-top: 30px;
}
  
.home-title .block {
      position: absolute;
      width: calc(0.368 * var(--box-size));
      height: calc(0.368 * var(--box-size));
      background-color: black;
      border-radius: calc(0.06 * var(--box-size));
  }
  
  .home-title .line-vertical {
      background-color: var(--primary-color);
  }
  
  .home-title .line-horizontal {
      background-color: var(--primary-color);
  }
  
  .home-title .title {
    font-size: 4em;
    color: black;
    font-weight: 500;
    font-family: 'MuseoModerna';
    letter-spacing: -0.07em;
    left: 80px;
    position: relative;
    bottom: 20px;
    width: 215px;
  }

  .home-title:hover .block {
    animation: rotateBlocks 2.5s infinite linear;
  }

  @keyframes rotateBlocks {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(180deg); }  /* Fast rotation: 180deg in 20% of time */
    50%  { transform: rotate(225deg); }  /* Slow rotation: 45deg in 30% of time */
    70%  { transform: rotate(315deg); }  /* Fast rotation: 90deg in 20% of time */
    100% { transform: rotate(360deg); }  /* Slow rotation: 45deg in 30% of time */
  }

  .svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
     /* Optional padding */
    width: 30%;
    margin-right: auto;
    margin-left: auto;
}

.svg-image:hover {
    animation: tada 1s;
}

.svg-image {
    padding: 20px;
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

  /* Styles for the hamburger icon */
  .hamburger {
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    margin-top: 20px;
    margin-left: 3vh;
  }

  .bar {
    background-color: #333;
    height: 4px;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
  }

  /* Transform bars for open state */
  .hamburger.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hamburger.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Styles for the menu */
  .menu {
    position: absolute;
    top: 70px;
    left: -5px;
    width: 200px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none;
    animation-duration: 0.4s;
  }

  .menu.open {
    display: block;
  }

  .menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
  }

  .menu a:hover {
    background-color: #f0f0f0;
  }
  
  .toggle-line {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  /* Arrow styling */
  .icon {
    margin-right: 10px; /* Space between arrow and line */
    transition: transform 0.2s ease;
    background: var(--primary-color);
    width: 24px;
    z-index: 2;
  }
  
  .toggle-line.open .icon {
    transform: rotate(90deg); /* Rotate arrow when open */
  }
  
  /* Horizontal line and text */
  .text-wrapper {
    flex-grow: 1; /* Take remaining space */
    display: flex;
    align-items: center;
  }
  
  .text-wrapper::before,
  .text-wrapper::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #ccc;
  }
  
  .text-wrapper::before {
    margin-right: 10px; /* Space between left line and text */
    margin-left: -24px;
  }
  
  .text-wrapper::after {
    margin-left: 10px; /* Space between text and right line */
  }

  @media(max-height: 800px) {
    .brf-list-loading {
      width: 50px !important;
    }
  }

  @media (max-width: 750px) {
    .hamburger-menu {
      display: none;
    }

    .brf-list-loading { 
      width: 50px !important;
    }

    .about-text {
      margin-left: 15px;
      margin-right: 15px;
    }
  }

.overall_rating {
  font-family: 'MuseoModerna';
  font-size: 8em;
  text-align: center;
  margin-top: -30px;
}

.explanation_rating {
  margin-top: -40px;
}

.checkbox-container {
  display: flex;
  align-items: center;
}

.login-checkbox {
  margin-top: 15px;
  accent-color: var(--hover);
  width: 15px;
  height: 15px;
}

.pdf-container {
  padding: 20px;
  max-width: 850px;
  margin: 0 auto; /* Centers the container horizontally */
  text-align: center;
}

.brf-list-loading {
  display: block;
  --height-of-loader: 4px;
  --loader-color: #ec776a;
  width: 130px;
  height: var(--height-of-loader);
  border-radius: 30px;
  background-color: rgba(0,0,0,0.2);
  position: relative;
  margin-top: 4px;
  margin-left: 55px;
}

.brf-list-loading::before {
  content: "";
  position: absolute;
  background: var(--loader-color);
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 30px;
  animation: moving 1s ease-in-out infinite;
  ;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  text-align: center;
  color: #d32f2f;
}

.action-button {
  background-color: #343a40;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s ease, box-shadow 0.2s ease;
  display: inline-block;
  width: auto;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}
.action-button .button-arrow {
  margin-left: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.action-button:hover {
  background-color: #495057;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.action-button:hover .button-arrow {
  transform: translateX(3px);
}
.action-button:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-button {
	background-color: #343a40;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.2s, transform 0.1s ease, box-shadow 0.2s ease;
	display: inline-block;
	text-align: center;
	font-size: 0.9rem;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	margin-top: 10px;
}

.primary-button:hover {
	background-color: #495057;
	transform: translateY(-2px);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.primary-button:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-button {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
		background-color: transparent;
		border: 1px solid #343a40;
		color: #343a40;
    padding: 10px 20px;
		border-radius: 8px;
		cursor: pointer;
		transition: background-color 0.2s, transform 0.1s ease, box-shadow 0.2s ease;
		display: inline-block;
		text-align: center;
	}

	.secondary-button:hover {
		background-color: #343a40;
		color: white;
    transform: translateY(-2px);
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
	}
  
  .tooltip-content {
    position: absolute;
    text-align: left;
    top: -10px;
    left: calc(100% + 5px);
    width: 400px;
    max-width: min(400px, 95vw);
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transform-origin: top left;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #495057;
}

.tooltip-content p {
  margin-bottom: 10px;
}

.tooltip-content p > strong {
  display: block;
  margin-bottom: 5px;
  color: #343a40;
  font-size: 0.95rem;
  font-weight: 600;
}

.tooltip-content ul {
  list-style: none;
  padding-left: 15px;
  margin-bottom: 15px;
}

.tooltip-content li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.tooltip-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0px;
  color: #4a6491;
  font-weight: bold;
  font-size: 1.1rem;
}

.tooltip-content ul ul {
  margin-top: 8px;
  padding-left: 20px;
  margin-bottom: 10px;
}

.tooltip-content ul ul li::before {
  content: '–';
  color: #6c757d;
  font-size: 1rem;
  top: -1px;
}

.tooltip-content li > strong {
  color: #343a40;
  font-weight: 600;
}

.tooltip-container:hover .tooltip-content,
.tooltip-content.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.tooltip-content::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -10px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.tooltip-container {
  position: relative;
  display: inline-block;
  z-index: 110;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 12px;
  cursor: help;
  transition: background-color 0.2s;
  position: relative;
  z-index: 1;
}

.info-icon::before {
  content: "i";
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: bold;
}

.info-icon:hover {
  background-color: #dee2e6;
}

.warning-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--hover);
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  transition: background-color 0.2s;
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 12;
}

.metric-subvalue {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 4px;
}

.metrics-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.metrics-row .metric-card {
  flex: 1;
  min-width: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.metric-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s, z-index 0s linear 0.25s;
}

.metric-card:has(.tooltip-container:hover) {
  z-index: 100;
  transition-delay: 0s;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-header h6 {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.header-card {
  background: #f1f3f5;
  color: #495057;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-card h5 {
  margin: 0;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 600;
}

.section-title {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e9ecef;
}

.icon-detail {
  margin-right: 8px;
  color: #6c757d;
  width: 16px;
  text-align: center;
}

.solo-table {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  border: 1px solid #e9ecef;
  text-align: center;
}

.solo-table h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--box-title-color);
  margin-bottom: 10px;
}

.upload-instructions {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 25px;
  display: block;
}

/* Add this JavaScript-controlled class for right-side tooltips */
.tooltip-content.right-side {
  left: auto;
  right: calc(100% + 5px);
  transform-origin: top right;
}

/* Adjust the arrow for right-side tooltips */
.tooltip-content.right-side::before {
  left: auto;
  right: -10px;
  border-color: transparent transparent transparent white;
}

/* Enhanced Mobile-specific adjustments */
@media (max-width: 768px) {
  .tooltip-content {
    width: auto;
    max-width: 90vw; /* Increase from 280px to 90% of viewport width */
    font-size: 0.95rem; /* Slightly larger text for readability */
    padding: 20px; /* More padding for touch targets */
    min-width: 270px;
  }
  
  /* Make the info icon larger on mobile for easier tapping */
  .info-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  /* Improve the tooltip positioning for very small screens */
  @media (max-width: 480px) {
    .tooltip-content.center-mobile {
      left: 50%;
      right: auto;
      transform: translateX(-50%) scale(0.5);
      transform-origin: top center;
      top: 30px; /* Move it down a bit to not overlap with the triggering element */
    }
    
    .tooltip-content.center-mobile::before {
      left: 50%;
      right: auto;
      top: -10px;
      margin-left: -5px;
      border-color: transparent transparent white transparent;
    }
    
    .tooltip-container:hover .tooltip-content.center-mobile {
      transform: translateX(-50%) scale(1);
    }
    
    /* Add more space between list items on mobile */
    .tooltip-content li {
      margin-bottom: 12px;
    }
    
    /* Make headings more prominent */
    .tooltip-content p > strong {
      font-size: 1.05rem;
      margin-bottom: 8px;
    }
  }
}
.partners-section {
    padding: 4rem 2rem;
    text-align: center;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.partners-description {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 3rem;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.logo-item img {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .partners-section {
        padding: 4rem 1rem;
    }
    .logos-container {
        flex-direction: column;
        gap: 2.5rem;
    }
}

/* Indirekt nettoskuldsättning dropdown styles */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expand-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.expand-toggle:focus {
    outline: 2px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}

.calculation-section {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    animation: expandDown 0.3s ease-out;
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.andelstal-input-section {
    margin-bottom: 16px;
}

.andelstal-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
    font-size: 0.85rem;
}

.andelstal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    background-color: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.andelstal-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.andelstal-input::placeholder {
    color: #999;
    font-style: italic;
}

.result-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.result-label {
    font-weight: 500;
    color: #666;
    font-size: 0.85rem;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-left: 8px;
    border-left: 3px solid transparent;
}

@media (max-width: 750px) {
    .result-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .result-value {
        font-size: 1rem;
    }

    .calculation-section {
        padding: 12px;
    }

    .andelstal-input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .expand-toggle {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }

    .expand-toggle {
      bottom: -10px;
      width: 25px;
      height: 25px;
  }
}