/* Base Setup */
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

}

/* Layout Grid */
.layout {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100vw;
  height: 100vh;
}

/* Header Section */
.header {
  background-color: #f2f2f2;
  width: 100%;
  position: relative;
  height: 100px;
}

/* Header Banner */
.HeaderTitle2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: linear-gradient(rgb(10 1 1 / 80%), rgb(8 0 0 / 60%)),
    url(header.png);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  padding: 0 1rem;
}

/* Logo and Heading */
.hexalogo {
  width: 2vw;
  height: 2vw;
  margin: 0.5vw 0.5vw 1vw 1vw;
  position: absolute;
  left: 0.1%;
}

.logoheading {
  font-weight: 500;
  color: white;
  position: absolute;
  left: 3.5%;
  font-size: 1.3vw;
}

/* Title Text Container */
.headerTitleContainer {
  display: flex;
  align-items: center;
  margin-left: 25%;
  text-decoration: none;
}

.headerTitle {
  width: 100%;
  font-style: normal;
  font-weight: 600;
  font-size: 3vw;
  line-height: 28px;
  display: flex;
  align-items: flex-end;
}

/* Avatar Container */
.persona {
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.persona img {
  border-radius: 50%;
  width: 56px;
  height: 56px;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Content Area */
.main-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 300px;
  /* padding-top: 40px; */
  margin-block: auto;
  overflow-x: auto;
  overflow-y: auto;
}

.main-content input,
.main-content select,
.main-content #responseFrame {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.main-content {
  display: none;
}

.main-content #responseFrame {
  height: 200px;
  resize: none;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: "Segoe UI", sans-serif;
}

/* .loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 18px;
} */
#responseFrame strong {
  font-weight: bold;
}

#responseFrame a {
  color: #0078d4;
  text-decoration: underline;
}

#responseFrame p {
  margin: 0 0 1em;
}

/* Copy Button in Response */
#copyBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* Button */
.main-content button {
  padding: 10px;
  font-size: 14px;
  background-color: #00c781;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Form Container */
.form-container {
  width: 80%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* margin-top: 6%;
  padding-top: 40px; */
}

/* Language Container */
.language-container {
  display: flex;
  align-items: end;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
}

#languageSelect {
  min-width: 125px;
  height: 35px;
  width: 120px;
  padding: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

#languageSelect option {
  width: auto;
  white-space: nowrap;
}

#othercontrols-container {
  display: flex;
  align-items: baseline;
  vertical-align: middle;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 34px;
}

.switch input {
  display: none;
}

.toggle-switch-bar:after {
  background-color: #fff !important;
}

.toggle-switch-check:checked ~ .toggle-switch-bar:before {
  background-color: #a7a9bc !important;
  border-color: #a7a9bc !important;
}

.toggle-switch-check:checked ~ .toggle-switch-bar:after {
  background-color: #fff !important;
}

.toggle-switch-bar:before {
  background-color: #a7a9bc !important;
  border-color: #a7a9bc !important;
}

/* Utility Classes */
.loading {
  font-size: 1.2rem;
  text-align: center;
  padding: 2rem;
}

.error {
  color: red;
  font-weight: bold;
}

/* Mobile Fixes */
@media (max-width: 1022px) {
  .headerTitle {
    font-size: 4vw;
  }

  .logoheading {
    font-size: 2vw;
  }
}

@media (max-width: 650px) {
  .headerTitle {
    font-size: 6vw;
  }
}

@media (max-width: 480px) {
  .headerTitleContainer {
    margin-left: 4px;
  }
}

@media (max-width: 350px) {
  .container {
    overflow-x: auto;
    overflow-y: auto;
  }
}
