:root {
  --text: #333;
  --text-h: #333;
  --bg: #fff;
  --border: black;
  --code-bg: #f4f3ec;
  --accent: #91a357;
  --accent-bg: #f5e6c6;
  --accent-border: #7c8b4a;
  --social-bg: rgba(244, 243, 236, 0.5);
  --shadow:
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;

  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: Goudament, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Consolas, monospace;

  font: 18px/145% var(--sans);
  letter-spacing: 0.18px;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

@font-face {
    font-family: Goudament;
    src: url(assets/Goudament.ttf);
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --code-bg: #1f2028;
    --accent: #c084fc;
    --accent-bg: rgba(192, 132, 252, 0.15);
    --accent-border: rgba(192, 132, 252, 0.5);
    --social-bg: rgba(47, 48, 58, 0.5);
    --shadow:
      rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  }

  #social .button-icon {
    filter: invert(1) brightness(2);
  }
} */

#root {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  position: relative;
  overflow: hidden;
}
#root::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background-image: url(assets/background.jpg);
  background-size: cover;
  background-position: center;

  filter: blur(4px);
  z-index: -1;
  transform: scale(1.05);
}

body {
  margin: 0;
}

h1,
h2 {
  font-weight: 500;
  color: #91a357;
  text-shadow: 3px 3px 5px #2c0105 ;
}
h3 {
  color: var(--text);
}

h1 {
  font-size: 4.5em;
  letter-spacing: -1.68px;
  margin: 32px 0;
  @media (max-width: 1024px) {
    font-size: 36px;
    margin: 20px 0;
  }
  font-family: var(--heading);
}
h2 {
  font-size: 3.5em;
  line-height: 118%;
  letter-spacing: -0.24px;
  margin: 0 0 8px;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}

p {
  margin: 0;
}

code,
.counter {
  font-family: var(--mono);
  display: inline-flex;
  border-radius: 4px;
  color: var(--text-h);
}

code {
  font-size: 15px;
  line-height: 135%;
  padding: 4px 8px;
  background: var(--code-bg);
}

.contentBox {
  background-color: var(--accent-bg);
  /* opacity: 0.8; */
  width: 1000;
  max-width: 85%;
  min-height: 200px;
  margin: auto;
  padding: 20px 0;
}

header {
  max-width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  color: #333;
  height: auto;
  padding: 5px 20px;
  margin-bottom: 25px;
}
header h1 {
  font-size: 4em;
}

/* Layout stuff */
.flexboxHorizontal {
  display: flex;
  gap: 10px;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modalCard {
  background: var(--accent-bg);
  padding: 50px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
}

/* Normal components styling */
button {
  transition: transform 0.15s ease-in-out 0s;
  padding: 5px 15px;
  border-radius: 6px;
  color: #f4f3ec;
  background-color: var(--accent);
  border: transparent 0px solid;
  min-height: 3px;
  font-size: medium;
} button:hover {
  transform: scale(1.05);
}

input {
  transition: transform 0.15s ease-in-out 0s;
  padding: 5px 15px;
  border-radius: 6px;
  color: #f4f3ec;
  background-color: #333;
  border: transparent 0px solid;
  min-height: 25px;
} input:focus {
  transform: scale(1.05);
}

input[type="checkbox"] {
  min-height: unset;
  padding: 0;
  width: 16px;
  background: none;
}

.normalButton {
  padding: 5px 15px;
  border-radius: 6px;
  color: #f4f3ec;
  background-color: #455487;
  border: transparent 0px solid;
} 

/* -- INSTANCE TABLE */

.instancesBlock {
  background-color: transparent;
  max-width: 80%;
  margin: auto;
  padding: 15px;
}

.instancesBlock #startStopButton {
  padding: 5px 15px;
  border-radius: 6px;
  color: var(--text);
} 
.instancesBlock #startStopButton.start{
  background-color: var(--accent);
  border: var(--accent-border) 0px solid;
}
.instancesBlock #startStopButton.stop{
  background-color: rgb(206, 62, 62);
  border: transparent 0px solid;
}

.instancesBlock table {
  width: 95%;
  margin: 20px auto;
  border-collapse: collapse; 
  text-align: left; 
}
.instancesBlock th {
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 2px solid var(--border); 
  color: var(--text-h);
}
.instancesBlock td {
  padding: 10px 12px; 
  border-bottom: 1px solid var(--border);
}

#statusIndicator {
  padding: 5px 15px;
  border-radius: 10px;
}
#statusIndicator.running {
  color: var(--accent-border);
}
#statusIndicator.stopped {
  color: #a40000;
}



/* -- INSTANCE DETAIL */

.instanceDetail {
  max-width: 80%;
  margin: auto;
  padding: 15px;
  text-align: left;
}

.instanceDetail .backButton {
  background: none;
  color: var(--text);
  padding: 0;
  font-size: medium;
  opacity: 0.7;
}
.instanceDetail .backButton:hover {
  transform: none;
  opacity: 1;
}

.tabBar {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tabBar button {
  background: none;
  color: var(--text);
  border-radius: 6px 6px 0 0;
  padding: 8px 20px;
  opacity: 0.6;
}
.tabBar button:hover {
  transform: none;
  opacity: 0.85;
}
.tabBar button.activeTab {
  background-color: var(--accent-bg);
  color: var(--text-h);
  opacity: 1;
  border-bottom: 2px solid var(--accent);
  margin-bottom: -2px;
}

.tabContent {
  background-color: var(--accent-bg);
  padding: 24px;
  border-radius: 0 8px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.tabContent label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9em;
  max-width: 400px;
}

.warningText {
  color: #a06000;
  font-size: 0.9em;
}

/* Danger zone */

.dangerZone {
  border: 2px solid #a40000;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dangerZone h3 {
  color: #a40000;
  margin: 0;
}

.dangerConfirm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #a40000;
}

.dangerConfirm label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.95em;
  font-weight: normal;
}

.deleteButton {
  background-color: #a40000;
  max-width: fit-content;
}

.deleteButton:hover {
  background-color: #cc0000;
}

/* CONSOLE */
.consoleWrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consoleOutput {
  background-color: #1a1a1a;
  border-radius: 6px;
  padding: 12px;
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.consoleLine {
  font-family: var(--mono);
  font-size: 0.85em;
  color: #d4d4d4;
  text-align: left;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.consoleInput input {
  flex: 1;
}

.autoScrollLabel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: var(--text);
}

.consoleLine code {
  background-color: #2d2d2d;
  color: #91a357;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.95em;
}

.consoleLine i {
  color: #a0a0c0;
  font-style: italic;
}