html {
  color: #3F3F3F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
}

html,
body {
  height: 100%;
  width: 100%;
}

:root {
  --bea-primary: #455a64;
  --bea-accent:  #00897b;
}
/* ---- Nav ---- */
.bea-nav { background-color: var(--bea-primary) !important; }
.bea-nav .brand-logo { font-size: 1.1rem; font-weight: 500; }
.bea-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    margin-left: 60px;
    padding: 0;
    gap: 12px;
}

.bea-nav .nav-menu li a {
    color: #fff;
    padding: 0 20px;
    line-height: 64px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background .15s;
    font-size: 1rem;
    font-weight: 500;
}

.bea-nav .nav-menu li a .material-icons {
    margin-right: 8px;
    font-size: 1.3rem;
}
.bea-nav .nav-menu li a:hover,
.bea-nav .nav-menu li.active a { background: rgba(255,255,255,.15); }
/* .bea-nav .nav-menu li a .material-icons { margin-right: 4px; font-size: 1.1rem; } */

.bea-footer{
  margin-top : 40px;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  height: 90px;
  width: 100%;
  justify-content: flex-end;
}
header a {
  margin: 20px 0;
}
header a:last-child {
  margin-left: 5px;
  margin-right: 20px;
}

main {
  min-height: 100vh; /* Use vh (viewport height) for better reliability */
  margin: 0 70px;
}

h1,
h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.3rem 0 1.5rem 0.75rem;
}

h2 {
  margin: 0 0 1.5rem 0;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.row {
  margin-bottom: 15px;
}

.btn,
.btn-flat {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: none;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}
.btn,
.btn:hover,
.btn:focus {
  background: #31b7bc;
}
.file-field .btn {
  height: 54px;
  line-height: 54px;
}

.material-icons {
  color: #fff;
}

/* hide arrows from number inputs */

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: auto;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: auto;
  appearance: auto;
}

.input-field {
  margin-bottom: 0;
}
.input-field input {
  color: #3F3F3F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem !important;
  margin: 0 !important;
  margin-left: 0 !important; /* Adjust to match the icon width */
}
.input-field.inline {
  margin-left: 0;
  margin-top: 0;
  vertical-align: baseline;
}
.input-right input {
  text-align: right;
  width: 95% !important;
  padding-right: 5% !important;
}
.input-right label .right {
  display: none;
}
.input-field label.active .right {
  display: block;
  width: 0;
}
.input-field input.valid {
  border-bottom: 1px solid #9e9e9e !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}
.input-field label {
  color: #3F3F3F;
}
.input-field input:focus + label {
  color: #3F3F3F !important;
}
.input-field input:focus {
  border-bottom: 1px solid #9e9e9e !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}
.input-field input:focus.valid ~ label {
  color: #3F3F3F !important;
}
.input-field .helper-text {
  font-size: 0.8rem;
  margin-top: 3px;
}

.select-wrapper input,
.select-wrapper input.select-dropdown:disabled {
  color: transparent;
}
.select-wrapper input.visible,
.select-wrapper input.select-dropdown.visible:disabled {
  color: #3F3F3F;
}
.select-wrapper+label {
  top: 0;
  font-size: 1rem;
}
.dropdown-content li>span {
  font-size: 1rem;
  color: #3F3F3F;
}

[type="checkbox"].filled-in:checked+span:not(.lever):after {
  border: 2px solid #31b7bc;
  background-color: #31b7bc;
}
[type="checkbox"]+span:not(.lever) {
  color: #3F3F3F;
  line-height: 20px;
}


#welcome {
  height: 100%;
  justify-content: center;
}
#welcome .btnWrapper {
  margin: 0 40px;
}
#welcome .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 12rem;
  width: 12rem;
}
#welcome .material-icons {
  font-size: 7rem;
}
#btnNewProject .material-icons {
  font-size: 8.5rem;
}
#welcome h1 {
  margin: 1.2rem 0 0;
}

#importForm .valign-wrapper {
  flex-direction: column;
  align-items: flex-start;
  margin: 0 15px;
}
#importForm .file-path-wrapper {
  height: 0;
  visibility: hidden;
}

#controls,
#details,
#topFloor,
#wall,
#windowHeightWrapper,
#btnDownloadWrapper {
  display: none;
}

#tool {
  /* 1280px - 2 * 70px margin */
  width: 1140px;
  padding-top: 50px;
}
#tool #geometryWrapper {
  align-items: flex-start;
}

#drawingArea {
  position: relative;
  height: 600px;
  min-width: 700px;
  border: 1px solid #000;
  border-radius: 5px;
  background: #fff;
  margin: 20px 0 10px;
  overflow: hidden;
}

#chooser {
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}
#chooser p {
  margin: 20px 0;
}
#chooser .material-icons {
  font-size: 2.2rem;
}

#btnEmptyCanvas {
  min-width: 240px;
}

#pdfForm .valign-wrapper {
  flex-direction: column;
}
#pdfForm .file-field {
  margin-top: 0;
}
#pdfForm .btn {
  min-width: 240px;
}
#pdfForm .material-icons {
  margin-left: 7px;
  margin-right: 8px;
}
#pdfForm .file-path-wrapper {
  height: 0;
  visibility: hidden;
}

#scale,
#setSection,
#setScale {
  display: none;
}

#scale p {
  font-size: 0.8rem;
  margin: 0;
}
#scaleInput {
  width: 40px;
}

#pdfWrapper {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 600px;
  width: 800px;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
#pdfWrapper.scroll {
  overflow: scroll;
  pointer-events: auto;
}

#setSection,
#setScale {
  width: 800px;
}

#setSection .material-icons {
  font-size: 2rem;
}
#btnFinishSection {
  float: right;
}

#setScale .input-field {
  width: 70px;
  margin: 10px 0 20px;
  float: left;
}
#btnFinishScale {
  float: right;
  margin-top: 10px;
}

#canvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  cursor: crosshair;
  z-index: 10;
}

#north {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 90px;
  width: 80px;
  padding: 0.6rem;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  background: #fff;
  text-align: center;
  z-index: 20;
}
#arrow {
  color: #31b7bc;
  font-size: 2.5rem;
  margin-right: 4px;
  -webkit-transform: rotateZ(0deg);
  -ms-transform: rotateZ(0deg);
  transform: rotateZ(0deg);
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}
#northControls {
  justify-content: center;
  align-items: center;
}
#northControls .btn-flat {
  height: 20px;
  line-height: 20px;
  padding: 0 5px;
  margin-top: 2px;
}
#northControls .material-icons {
  color: #3F3F3F;
}
#northDegree {
  min-width: 25px;
  max-width: 25px;
  margin: 0;
}

#floors h3 {
  float: left;
  margin-right: 5px;
}
.btnShowFloor {
  color: #3F3F3F;
  font-size: 1.2rem;
  height: 24px;
  line-height: 17px;
  padding: 0 8px;
}
.btnShowFloor.active {
  color: #31b7bc;
}

#actions .btn {
  margin-left: 5px;
}

#details {
  width: 100%;
  margin-top: 20px;
  margin-left: 15px;
}
#details.marginTop {
  margin-top: 70px;
}

#floor {
  margin-bottom: 0 !important;
}
#checkboxTopFloor {
  margin-top: 20px;
}
#topFloor .input-field {
  margin-top: 0.75rem;
}

#wall {
  margin-top: 40px;
}
#windowDetails {
  margin-bottom: 0;
}

/* #btnDownloadWrapper {
  width: 100%;
  text-align: center;
} */
/* #btnDownload {
  font-size: 1.3rem;
  padding: 0 20px;
  margin-bottom: 3rem;
}
#btnDownload .material-icons {
  font-size: 2rem;
} */

/* Canvas */

.circle.disabled {
  fill: #ddd !important;
}
.circle.focused {
  fill: #A55249;
  stroke: #A55249;
  stroke-width: 3px;
  cursor: pointer;
}
.line {
  cursor: default;
  pointer-events: none;
}
.line.clickable {
  cursor: pointer;
  pointer-events: auto;
}
.line.disabled {
  stroke: #ddd;
  stroke-width: 0.8;
}
.line.focused {
  stroke: #A55249;
  stroke-width: 2;
}


#help main {
  padding: 3rem 0;
}
#help h1 {
  color: #31b7bc;
  font-size: 2rem;
  margin: 4rem 0 1.5rem 0;
}
#help h2 {
  color: #31b7bc;
  font-size: 1.1rem;
  margin: 0;
}
#help h3 {
  font-size: 1rem;
  margin: 0;
}
#help .indented {
  padding-left: 1.2rem;
}
#help .last {
  padding-bottom: 3rem;
}


.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.action-buttons .btn {
    min-width: 220px;
}

.compact-table {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.compact-table th,
.compact-table td {
    white-space: nowrap;
}
