/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  color: rgb(31, 35, 40);
  font-weight: 300;
}

h1, h2, h3 {
  font-weight: 500;
}

h2 {
  margin: 0.6em 0;
}

form {
  margin: 1.3em 0;
}

form h2 {
  margin-top: 1.5em;
}

a {
  color: rgb(71, 113, 179);
  font-weight: 400;
}

footer a {
  color: rgb(120, 128, 116);
  text-decoration: none;
}

code {
  background-color: #e6e8e4;
  padding: 1px 4px;
  border-radius: 3px;
}

pre {
  background: #e6e8e4;
  padding: 0.3em;
  overflow: scroll;
}

pre > code {
  padding: 0;
}

.markdown-body {
  max-width: 768px;
  line-height: 1.5;
}

.markdown-body table {
  border-collapse: collapse;
  border: 1px solid #a7b3a8;
}

.markdown-body th, .markdown-body td {
  padding: 10px;
  border: 1px solid #a7b3a8;
}

.pure-button {
  background-color: #e6e8e4 !important;
  color: #313c31 !important;
}

input[type=text],
input[type=number],
input[type=password],
textarea,
select {
  width: 100%;
  max-width: 600px;
  font-weight: 300;
}

form input[type=file].file-select {
  margin: 1em 0;
}

form.pure-form-stacked input[type=text],
form.pure-form-stacked input[type=number],
form.pure-form-stacked input[type=password],
form.pure-form-stacked textarea,
form.pure-form-stacked select {
  margin-bottom: 1em;
}

textarea {
  height: 8em;
}

label {
  font-weight: 400;
}

.CodeMirror.cm-s-solarized-light {
  resize: vertical;
  max-height: 700px;
  font-size: 14px;
  max-width: 900px;
  min-height: 5em;
  height: auto;
}

.CodeMirror-scroll {
  max-height: 700px;
  overflow-y: auto;
}

.editor {
  margin-bottom: 1em;
}

.tippy-content a {
  color: rgb(179, 208, 255);
}

.text {
  max-width: 768px;
}

.highlight {
  overflow: scroll;
  background-color: #e6e8e4;
  border: 1px solid #d1d5cd;
  font-size: 0.8em;
  max-width: 900px;
}

.title-breadcrumbs {
  font-size: 1.4em;
  font-weight: 500;
  background-color: #e6e8e4;
  border: 1px solid #d1d5cd;
  /*border-radius: 0.5em;*/
  padding: 0.6em;
  color: #313c31;
}

.header {
  background-color: #4f5750;
  align-items: center;
}

.header form {
  margin: 0;
  min-width: 200px;
  margin-left: 0.5em;
}

.right-justify {
  display: flex;
  justify-content: flex-end;
  padding-right: 1em;
}

.center-vertical {
  display: flex;
  align-items: center;
  height: 4em;
}

.header-text-button {
  display: inline-block;
  color: #e9f5e4;
  text-decoration: none;
  border: 1px solid #a7b3a8;
  padding: 0.5em;
  border-radius: 8px;
}

#sign-up-button {
  color: #4f5750;
  background-color: #e9f5e4;
  font-weight: 600;
  margin-right: 0.5em;
}

#sign-up-button:hover {
  background-color: #343934;
  color: #e9f5e4;
}

.selection-form {
  font-size: 1.6em;
  padding: 0.3em;
  background-color: #4f5750;
  border: 1px solid #a7b3a8;
  border-radius: 0.2em;
  color: #e9f5e4;
}

#project-create-icon {
  margin-left: 0.5em;
}

#project-create-icon, #account-icon {
  width: 40px;
  border-radius: 0.3em;
  height: 40px;
  padding: 2px;
  display: block;
  cursor: pointer;
}

#project-create-icon:hover, #account-icon:hover, .header-text-button:hover {
  background-color: #343934;
}

#anonymous-content input[type=text], #anonymous-content input[type=password] {
  max-width: 400px;
  width: 100%;
}

.anon-form {
  max-width: 500px;
  margin: auto;
  padding: 0 4%;
}

#landing-page {
  background-color: #3b423c;
  min-height: 50em;
  padding-top: 2em;
  padding-bottom: 10em;
  color: #e9f5e4;
}

.landing-content {
  max-width: 1000px;
  margin: auto;
  padding: 0 3%;
}

.responsive-img {
  max-width: 100%;
}

#landing-page h1 {
  font-size: 4em;
  font-weight: bold;
}

#landing-page h2 {
  font-size: 2.5em;
  font-weight: bold;
  margin-top: 1.5em;
}

#landing-page p {
  font-size: 1.5em;
  font-weight: 400;
}

#landing-page img {
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px; /* optional for soft corners */
  margin-bottom: 3em;
}

.landing-action {
  color: #4f5750;
  background-color: #e9f5e4;
  font-weight: 600;
  font-size: 1.5em;
}

.landing-action:hover {
  background-color: #343934;
  color: #e9f5e4;
}

.menu-header {
  margin: 0.5em 0;
  color: #e9f5e4;
  font-size: 2em;
  text-align: center;
  text-transform: uppercase;
  background-color: #4f5750;
  text-decoration: none;
}

.menu-title {
  color: #e9f5e4;
  font-size: 1.2em;
  padding: 0.5em;
  margin: 0;
  border-bottom: 1px solid #a7b3a8;
  border-right: 1px solid #a7b3a8;
  background-color: #4f5750;
  font-weight: 550;
}

.menu-item, .menu-space {
  display: block;
  text-decoration: none;
  color: #313c31;
  font-size: 1.2em;
  padding: 0.5em;
  margin: 0;
  border-bottom: 1px solid #a7b3a8;
  border-right: 1px solid #a7b3a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-space {
  height: 1.2em;
}

button.menu-item {
  width: 100%;
  background-color: #e6e8e4;
  text-align: left;
  border-top: 1px;
  border-left: 0px;
}

form:has(> button.menu-item) {
  margin: 0;
}
.menu-item-selected {
  color: black;
  background-color: white;
  border-right: 1px solid white;
}

.menu-item:hover {
  color: #e9f5e4;
  background-color: #4f5750;
}

.list-header {
  font-weight: bold;
  background-color: #e6e8e4;
  border: 1px solid #d1d5cd;
  color: #313c31;
  /*border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;*/
}

.list-item {
  border-left: 1px solid #d1d5cd;
  border-right: 1px solid #d1d5cd;
  border-bottom: 1px solid #d1d5cd;
}

.list-item:last-of-type {
  margin-bottom: 1em;
}

.list-cell {
  padding: 0.75em;
  margin: 0;
}

.list-cell-right {
  text-align: right;
}

.list-cell-button form {
  margin: 0.6em 0;
}

.resizable-wrapper {
  resize: both; /* Allows both horizontal and vertical resizing */
  overflow: auto; /* Ensures content remains visible */
  min-width: 200px;
  min-height: 100px;
  max-width: 100%;
  max-height: 80vh;
}

.section {
  padding: 1em 3%;
  border-top: 1px solid #e8eae6;
  border-left: 1px solid #e8eae6;
  border-right: 1px solid #e8eae6;
}

.section:last-of-type {
  border-bottom: 1px solid #e8eae6;
}


.key-value-table {
  border-top: 1px solid #e8eae6;
  border-right: 1px solid #e8eae6;
  border-left: 1px solid #e8eae6;
  max-width: 700px;
}

.key-value-kcell {
  padding: 0.5em;
  font-weight: 400;
  border-bottom: 1px solid #e8eae6;
}

.key-value-vcell {
  padding: 0.5em;
  border-left: 1px solid #e8eae6;
  border-bottom: 1px solid #e8eae6;
}

.bulk-delete {
  margin: 0;
}

#content {
  margin: 0 auto 4em auto;
  min-height: 45em;
}

.padder {
  padding-left: 3%;
  padding-right: 3%;
}

#anonymous-content {
  margin: 0 auto 0 auto;
  min-height: 50em;
}

#documentation-content {
  min-height: 45em;
}

#menu {
  background-color: #e6e8e4;
}

footer {
  background-color: #e6e8e4;
  min-height: 4em;
}

.footer-links {
  width: 200px;
  margin: 0 auto;
  padding-top: 2em;
  font-size: 0.8em;
}

.inline-checkbox label {
  display: inline-block !important;
}

.inline-checkbox input[type=checkbox] {
  margin-right: 0.5em;
}

.inline-checkbox {
  margin: 1em 0;
}

/* spinner */

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 30, 26, 0.56);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Spinner (CSS animation) */
.spinner {
  width: 100px;
  height: 100px;
  border: 5px solid #4f5750;
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* end spinner */

/* Accordion start */
  .ac {
    --color-white: #fff;
    --color-light-grey: #eee;
    --color-grey: #8a8a8a;
    --color-black: #111;
  
    margin-bottom: 8px;
    border: 1px solid var(--color-light-grey);
    background-color: var(--color-white);
    box-sizing: border-box;
  }

  .ac-content {
    margin: 2em 3em;
  }
  
  .ac .ac-header {
    margin: 0;
    padding: 0;
  }
  
  .ac .ac-trigger {
    text-align: left;
    width: 100%;
    padding: 8px 32px 8px 8px;
    display: block;
    cursor: pointer;
    transition: color 0.25s ease;
    position: relative;
    text-decoration: none;
    margin: 0;
    border: 0;
  }
  
  .ac .ac-trigger::after {
    content: "+";
    text-align: center;
    width: 15px;
    transform: translate(0, -50%);
    position: absolute;
    right: 10px;
    top: 50%;
  }
  
  .ac .ac-panel {
    overflow: hidden;
    transition-property: height, visibility;
    transition-timing-function: ease;
  }
  
  .ac .ac-panel .ac-text {
    font:
      15px/24px "Arial",
      sans-serif;
    color: var(--color-black);
    padding: 8px;
    margin: 0;
  }
  
  .ac.js-enabled .ac-panel {
    visibility: hidden;
  }
  
  .ac.is-active .ac-panel {
    visibility: visible;
  }
  
  .ac.is-active > .ac-header .ac-trigger::after {
    content: "\2013";
  }
/* Accordion end */
