*,
::after,
::before {
    box-sizing: border-box;
}

:root {
    --ui-bg-0: #070f1c;
    --ui-bg-1: #0b1622;
    --ui-bg-2: #101b2c;
    --ui-panel: rgba(11, 22, 34, 0.9);
    --ui-panel-soft: rgba(11, 22, 34, 0.78);
    --ui-border: #444;
    --ui-text: #e6eef6;
    --ui-muted: #9aa6b2;
    --ui-accent: #ffb730;
}

/* Für WebKit-Browser wie Chrome, Vivaldi, Safari */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #111 25%,
        #111 50%,
        #222 50%,
        #222 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #333;
}

::-webkit-scrollbar-track:vertical {
  border-left: 1px solid #444;
}

::-webkit-scrollbar-track:horizontal {
  border-top: 1px solid #444;
}

::-webkit-scrollbar-thumb:vertical {
  border-left: 1px solid #444;
  border-bottom: 1px solid #444;
}

::-webkit-scrollbar-thumb:horizontal {
  border-top: 1px solid #444;
  border-right: 1px solid #444;
}

@keyframes pulse_shadow {
    0% {
        /*box-shadow: 0.25rem 0.25rem 0.5rem rgba(255, 183, 48, 0.5);*/
        /*box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.5);*/
        box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.9);
        transform: scale(1);
    }
    100% {
        box-shadow: .15rem .15rem .25rem rgba(255, 183, 48, 0.9);
        transform: scale(1);
    }
}

@keyframes pulsate {
    0% {
        background-color: darkred;
        transform: scale(1);
    }

    50% {
        background-color: transparent;
        transform: scale(1);
    }

    100% {
        background-color: darkred;
        transform: scale(1);
    }
}

@keyframes pulsate-orange {
    0% {
        background-color: #ffb730;
                color: black;
        transform: scale(1);
    }

    50% {
        background-color: transparent;
                color: white;
        transform: scale(1);
    }

    100% {
        background-color: #ffb730;
        color: black;
        transform: scale(1);
    }
}

#page-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.78);
}

#page-shell #header-root,
#page-shell #outer-container,
#page-shell #footer-root {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#outer-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  align-self: center;
  background: linear-gradient(180deg, rgba(11, 22, 34, 0.75), rgba(7, 13, 20, 0.9));
  backdrop-filter: blur(8px);
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 0;
  text-align: left;
  height: calc(100dvh - 70px);
  min-height: 800px;
  border-right: 1px solid var(--ui-border);
  border-left: 1px solid var(--ui-border);

}
#inner-container {
  display: grid;
  grid-template-columns: 200px 1fr;
}
#sidebar {
  border-right: 1px solid var(--ui-border);
  background: linear-gradient(180deg, rgba(16, 27, 44, 0.92), rgba(11, 18, 32, 0.96));
}
#content {
  display: flex;
  flex-direction: column;
  margin-left: .5rem;
  margin-right: .5rem;
  margin-top: .5rem;
  border: 1px solid var(--ui-border);
  overflow: hidden;
}

#footer-root {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
#planets {
  display: grid;
  border-bottom: 1px solid var(--ui-border);
  grid-template-columns: repeat(8, 1fr);
  background: linear-gradient(180deg, rgba(12, 23, 38, 0.95), rgba(7, 13, 20, 0.9));
}
#offcanvas-planets {
  width: 100%;
  display: flex;
  border-bottom: 1px solid var(--ui-border);
  background: linear-gradient(180deg, rgba(12, 23, 38, 0.95), rgba(7, 13, 20, 0.9));
  overflow-x: scroll;
}
#landscape {
  width: 100%;
  display: flex;
}

#module {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@keyframes moduleFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes moduleFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#module.module-fade-enter {
  animation: moduleFadeIn 180ms ease;
}

#module.module-fade-leave {
  animation: moduleFadeOut 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  #module.module-fade-enter {
    animation: none;
  }
  #module.module-fade-leave {
    animation: none;
  }
}


select option {
    border-radius: .25rem;
    font-family: "Play", sans-serif;
}

select option,
select optgroup,
option,
optgroup {
    font-family: "Play", sans-serif;
}

/* For hover effect */
select option:hover {
    background-color: #222;
}

.bg-pulsating {
    animation: pulsate-orange 2s infinite;
}

.no-wrap {
    white-space: nowrap;
}

.fw-bold {
  font-weight: bold;
}

select:disabled {
    background-image: linear-gradient(
        135deg,
        #f2f2f2 25%,
        #ffffff 25%,
        #ffffff 50%,
        #f2f2f2 50%,
        #f2f2f2 75%,
        #ffffff 75%,
        #ffffff 100%
    );
    background-size: 5px 5px;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100dvh;
    height: auto;
    background-image: linear-gradient(180deg, rgba(7, 14, 26, 0.42), rgba(7, 14, 26, 0.58)), url("../image/background.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    align-items: stretch;
    text-align: center;
    font-family: "Play", sans-serif;
    font-size: 11pt;
    color: var(--ui-text);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    isolation: isolate;
}


header {
    width: 100%;
    border-bottom: 1px solid var(--ui-border);
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #111 25%,
        #111 50%,
        #222 50%,
        #222 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;
}

#header-root {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    border-left: 1px solid var(--ui-border);
    border-right: 1px solid var(--ui-border);
}

.global-runtime-notice {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.45rem 0.65rem;
    border-left: 1px solid var(--ui-border);
    border-right: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    font-size: 12px;
    line-height: 1.35;
}

.global-runtime-notice b {
    color: inherit;
}

.global-runtime-notice-warning {
    color: #ffd17d;
    background: rgba(255, 183, 48, 0.10);
}

.global-runtime-notice-info {
    color: #b9d8ff;
    background: rgba(140, 188, 255, 0.10);
}

.global-runtime-notice-danger {
    color: #ffb6b6;
    background: rgba(236, 126, 126, 0.12);
}

.global-runtime-notice-success {
    color: #b5f0c3;
    background: rgba(107, 206, 137, 0.12);
}

form {
    margin: 0;
    padding: 0;
}

/* Overview polish */
.overview-landscape {
  height: 170px;
}

.overview-overlay-planet {
  border-right: 1px solid #4445;
}

.overview-name-row {
  flex: 1;
}

.overview-inline-form {
  display: flex;
  width: 100%;
}

.overview-name-input {
  flex: 1;
  min-width: 0;
}

.overview-ellipsis {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.overview-focus-row {
  width: 100%;
}

.overview-focus-row-note {
  margin-top: auto;
  padding: 0.5rem;
  min-width: 250px;
}

.overview-focus-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.overview-focus-label {
  min-width: 44px;
  font-size: 12px;
  color: #d5d8e4;
  cursor: help;
}

.overview-focus-select {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 0.4rem;
  font-size: 12px;
}

.overview-stats-labels {
  width: 105px;
}

.overview-stats-values {
  flex: 1;
  text-align: right;
}

.overview-help-cursor {
  cursor: help;
}

.overview-traits-panel {
  width: 50px;
  border-right: 1px solid #4445;
  background-color: #222a;
  backdrop-filter: blur(8px);
}

.overview-flex-1 {
  flex: 1;
}

.overview-note-shell {
  backdrop-filter: blur(8px);
  background-color: #111a;
}

.overview-note-panel {
  display: flex;
  flex-direction: column;
}

.overview-note-button {
  align-self: flex-end;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  width: 26px;
  height: 26px;
}

.overview-note-icon {
  width: 26px;
  height: 26px;
  padding-bottom: 30px;
}

.overview-countdown-body {
  line-height: 1;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.overview-link-reset {
  text-decoration: none;
  color: #fff;
}

.overview-events-list {
  overflow-y: scroll;
  height: calc(100dvh - var(--overview-height-offset, 476px));
}

.overview-event-dot {
  width: 18px;
  border-radius: 50%;
  padding-left: 4px;
}

.overview-event-content {
  flex: 1;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.overview-event-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Grundlegende Regel für alle Formularelemente */
button, input, select, textarea, optgroup {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  background-color: #333;
}
/* ⭐️ Lade-Spinner-Overlay */
#loading-spinner {
    position: fixed;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.9); /* <-- semitransparenter dunkler Hintergrund */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    top: 50%; /* 50% von oben */
    left: 50%; /* 50% von links */
    transform: translate(-50%, -50%); /* Zentrieren */
    border-radius: 50%;
}

/* ⭐️ Der eigentliche Spinner */
.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid #222;
    border-top: 3px solid #ffb730; /* nur oben farbig */
    border-radius: 50%;
    animation: spin 1.0s linear infinite;
}


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



select {
    font-family: "Play", sans-serif;
    color: #333;
}
input {
    font-family: "Play", sans-serif;
    background-color: #333;
}
input:focus, textarea:focus {
    outline: 1px dashed #ffb730; /* Beispiel für eine alternative Fokusmarkierung */
}

table {
    padding-top: 0.25rem;
}

hr {
    border-top: 1px dashed #444;
    border-bottom: 0;
}

a {
    color: #ffb73a;
    text-decoration: none;
}

/* Grundlegende Regel für alle Formularelemente */
button, input, select, textarea, optgroup {
  font-family: inherit;

  margin: 0;
}

/* Spezifische Regeln für einzelne Elementtypen */
/* Buttons */
button {
  cursor: pointer;
}
button:focus {
  outline: none;
}

.form-icon {
    width: 20px;
    padding-top: 0.15rem;
}

.hover {
    background-color: #333;
    transition: background-color 0.5s ease-in-out;
}

.hover:hover,
.hover:focus {
    background-color: #444; /* Change to the desired color for the hover/focus state */
}

.container {
    display: flex;
    align-self: flex-start !important;
    margin-top: 25px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
    min-width: 1000px;
}

.column-logo {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
}
.column {
    flex: 1 0 0%;
}
.offcanvas {
    position: fixed;
    z-index: 999;
    top: 0;
    left: -310px;
    width: 300px;
    height: 100%;
    background-color: #f8f9fa;
    transition: left 0.3s ease-in-out;
    border-right: 1px solid #dadee2;
    box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.5) !important;
}
.offcanvas a {
    height: 40px;
}
.offcanvas-header {
    display: flex;
    justify-content: space-between;
    background-color: #f2f2f2;
    border-bottom: 1px solid #dadee2;
    padding: 0.5rem;
}
.mobile-header {
    display: none;
}
.main-sidebar {
    flex: 0 0 350px;
    background-color: #f2f2f2;
    padding: 0px;
    border: 1px solid #dadee2;
}

.main-content {
    flex: 1;
    background-color: #ffffff;
    margin-left: 0.5rem;
    border: 1px solid #dadee2;
}
.side-list-container {
    display: flex;
    padding: 0.5rem;
}
.side-list {
    padding: 0.5rem;
    height: calc(100vh - 34px);
    overflow: auto;
    gap: 0.5rem;
    width: 450px;
    background-color: #ffffff;
    border: 1px solid #dadee2;
}
.side-list-content {
    display: block;
    margin-left: 0.5rem;
    height: calc(100vh - 34px);
    overflow: auto;
    width: 70%;
    padding: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #dadee2;
    box-shadow: 2px 0.25rem 0.35rem rgba(0, 0, 0, 0.2);
}
.sidebar-toggle {
    display: none;
}



.bg-stripes {
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #111 25%,
        #111 50%,
        #222 50%,
        #222 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;
}
.bg-stripes-dark {
    background-image: linear-gradient(
        135deg,
        #111 25%,
        #000 25%,
        #000 50%,
        #111 50%,
        #111 75%,
        #000 75%,
        #000 100%
    );
    background-size: 5px 5px;
}
.bg-stripes-light {
    background-image: linear-gradient(
        135deg,
        #333 25%,
        #222 25%,
        #222 50%,
        #333 50%,
        #333 75%,
        #222 75%,
        #222 100%
    );
    background-size: 5px 5px;
}

.bg-stripes-success {
    background-image: linear-gradient(
        135deg,
        #4e3a1b 25%,
        #222 25%,
        #222 50%,
        #4e3a1b 50%,
        #4e3a1b 75%,
        #222 75%,
        #222 100%
    );
    background-size: 5px 5px;
}

.bg-stripes-green {
    background-image: linear-gradient(
        135deg,
        rgba(87, 167, 0, 0.3) 25%,
        #222 25%,
        #222 50%,
        rgba(87, 167, 0, 0.3) 50%,
        rgba(87, 167, 0, 0.3) 75%,
        #222 75%,
        #222 100%
    );
    background-size: 5px 5px;
}


.bg-stripes-repair {
    background-image: linear-gradient(
        135deg,
        #4e3a1b 25%,
        #222 25%,
        #222 50%,
        #4e3a1b 50%,
        #4e3a1b 75%,
        #222 75%,
        #222 100%
    );
    background-size: 20px 20px;
}
.bg-stripes-warning {
    background-image: linear-gradient(
        135deg,
        #ffb73a 25%,
        #222 25%,
        #222 50%,
        #ffb73a 50%,
        #ffb73a 75%,
        #222 75%,
        #222 100%
    );
    background-size: 5px 5px;
}
.bg-stripes-danger {
    background-image: linear-gradient(
        135deg,
        rgba(135, 0, 0, 0.5) 25%,
        #111 25%,
        #111 50%,
        rgba(135, 0, 0, 0.5) 50%,
        rgba(135, 0, 0, 0.5) 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;
}
.bg-wip {
    background-image: linear-gradient(
        135deg,
        #f8f9fa 25%,
        #ffffff 25%,
        #ffffff 50%,
        #f8f9fa 50%,
        #f8f9fa 75%,
        #ffffff 75%,
        #ffffff 100%
    );
    background-size: 50px 50px;
}
.bg-success {
    background-color: rgba(87, 167, 0, 0.3) !important;
}
.bg-debug {
    background-color: rgba(102, 0, 64, 0.5) !important;
}
.bg-active {
    background-color: #4e3a1b !important;
}
.bg-danger {
    background-color: rgba(255, 0, 0, 0.3) !important;
}
.bg-white {
    background-color: #ffffff;
}
.bg-dark {
    /*background:linear-gradient(180deg,#0b1622, rgba(0,0,0,0.7));*/
    background-color: #111 !important;
}
.bg-lightdark {
    background-color: #222;
}
.bg-darkgray {
    background-color: #333;
}
.bg-secondary {
    background-color: rgba(37, 100, 142, 0.5);
}
.bg-warning {
  background-color: rgba(255, 183, 48, 0.7);
}
.bg-refitting {
  background-color: rgba(58, 72, 86, 0.7);
}
.bg-transparent {
    background-color: transparent !important;
}
.bg-blue {
  background-color: #3454aa;
}
.bg-yellow {
  background-color: #ffb730;
}
.bg-red {
  background-color: #dc3545;
}
.bg-green {
  background-color: #57a300;
}
.bg-automatic {
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #4e3a1b 25%,
        #4e3a1b 50%,
        #222 50%,
        #222 75%,
        #4e3a1b 75%,
        #4e3a1b 100%
    );
    background-size: 20px 20px;
}

.link {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: #ffb73a;
    border: 0;
    cursor: pointer;
    background-color: transparent !important;
}
.link:hover {
    text-decoration: none;
}
.link-dark {
    text-decoration: none;
    color: #333;
}
.btn {
    display: inline-flex; /* Flexbox verwenden */
    align-items: center; /* Vertikal zentrieren */
    justify-content: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    padding: 0.5rem;
    margin-left: 0;
    color: #333;
    background-color: #ffb730;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    border-radius: .25rem;
}
.btn:hover {
    background-color: #ffc24a;
    color: #222;
}
.btn:focus,
.btn:active {
    outline: none;
}

.btn-invert {
    background: #111;
    color: #ffb730 !important;
    border: 1px solid #444 !important;
    border-radius: .25rem;
    font-weight: 700;
    font-size: 12px;
}
.btn-invert:hover:not(:disabled) {
    background: #333;
    color: #ffb730 !important;
}
.btn-invert:active:not(:disabled) {
    background: #0b0b0b;
    color: #ffb730 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28);
    transform: translateY(1px);
}

.btn-active,
.btn.bg-stripes-success,
.btn.action-button.bg-stripes-success {
    background: #2a2a2a !important;
    background-image: none !important;
    color: #ffb730 !important;
    border: 1px solid #444 !important;
    border-radius: .25rem;
    font-weight: 700;
    font-size: 12px;
}
.btn-active:hover,
.btn-active:active,
.btn-active:focus,
.btn-active:focus-visible,
.btn.bg-stripes-success:hover,
.btn.bg-stripes-success:active,
.btn.bg-stripes-success:focus,
.btn.bg-stripes-success:focus-visible,
.btn.action-button.bg-stripes-success:hover,
.btn.action-button.bg-stripes-success:active,
.btn.action-button.bg-stripes-success:focus,
.btn.action-button.bg-stripes-success:focus-visible {
    background: #2a2a2a !important;
    color: #ffb730 !important;
    border: 1px solid #444 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn:disabled,
.btn[disabled] {
    background-color: #3a3a3a !important;
    color: #9aa6b2 !important;
    border-color: #4a4a4a !important;
    box-shadow: none !important;
    transform: none !important;
}
.btn:disabled:hover,
.btn[disabled]:hover,
.btn-invert:disabled:hover,
.btn-invert[disabled]:hover,
.btn-active:disabled:hover,
.btn-active[disabled]:hover {
    background-color: #3a3a3a !important;
    color: #9aa6b2 !important;
    border-color: #4a4a4a !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-transparent {
    background-color: #0000;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    color: #fff;
    background-color: #5c636a;
    border-color: #565e64;
}
.btn-secondary:active {
    color: #fff;
    background-color: #565e64;
    border-color: #51585e;
}
.btn-secondary:disabled {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.border-radius-top {
    border-top-right-radius: 0.25rem;
    border-top-left-radius: 0.25rem;
}
.border-radius-bottom {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}
.card {
    background-color: #222;
    padding: 0.5rem;
    word-wrap: break-word;
    position: relative;
    min-width: 0;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dadee2;
    padding: 5px;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.card-body {
    padding: 5px;
    height: 100%;
    text-align: left;
    overflow: auto;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dadee2;
    justify-content: space-between !important;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.dropdown {
    position: relative;

    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f8f9fa;
    min-width: 150px;
    z-index: 1;
    border: 1px solid #dadee2;
}

.dropdown:hover .dropdown-content {
    display: block;
}

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

.dropdown-content a:hover {
    background-color: #f2f2f2;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* -------------------------------------------------------------------------- *\
  FORMS
\* -------------------------------------------------------------------------- */
input[type="file"] {
    display: none;
}

/* Definiere ein benutzerdefiniertes Aussehen für den Button */
.custom-file-upload {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
}

/* Ändere den Hintergrund, wenn der Mauszeiger darüber schwebt */
.custom-file-upload:hover {
    background-color: #f2f2f2;
}

.form-control {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 1.5;
    color: #fff;
    background-clip: padding-box;
    border: 1px solid #444;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}
/* -------------------------------------------------------------------------- *\
   FONTS
\* -------------------------------------------------------------------------- */
.fw-normal {
    font-weight: 400 !important;
}
.text-muted {
    color: #9aa6b2 !important;
}
.text-danger {
    color: #dc3545 !important;
}
.text-white {
    color: #fff !important;
}
.text-dark {
    color: #111 !important;
}
.text-success {
    color: #57a300 !important;
}
.text-debug {
    color: #d8008c !important;
}
.text-warning {
    color: #ffb730 !important;
}
/* -------------------------------------------------------------------------- *\
   SHADOWS
\* -------------------------------------------------------------------------- */
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.9) !important;
}
.shadow-sm {
    box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.9) !important;
}
.shadow-inner {
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.3);
}
.shadow-sm-warning {
    box-shadow: 0rem 0rem 0.25rem rgba(255, 0, 0, 0.9) !important;
}
.shadow-hover:hover {
    box-shadow: 0 0 0.5rem #ffb730;
}

/* -------------------------------------------------------------------------- *\
   WIDTHS
\* -------------------------------------------------------------------------- */
.w-100 {
    width: 100% !important;
}
.w-75 {
    width: 75% !important;
}
.w-50 {
    width: 50% !important;
}
.w-25 {
    width: 25% !important;
}
.w-10 {
    width: 10% !important;
}

/* -------------------------------------------------------------------------- *\
   MARGINS
\* -------------------------------------------------------------------------- */
.m-0 {
    margin: 0 !important;
}
.mt-0 {
    margin-top: 0 !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.ms-0 {
    margin-left: 0 !important;
}
.me-0 {
    margin-right: 0 !important;
}
.m-1 {
    margin: 0.25rem !important;
}
.mt-1 {
    margin-top: 0.25rem !important;
}
.mb-1 {
    margin-bottom: 0.25rem !important;
}
.ms-1 {
    margin-left: 0.25rem !important;
}
.me-1 {
    margin-right: 0.25rem !important;
}
.m-2 {
    margin: 0.5rem !important;
}
.mt-2 {
    margin-top: 0.5rem !important;
}
.mb-2 {
    margin-bottom: 0.5rem !important;
}
.ms-2 {
    margin-left: 0.5rem !important;
}
.me-2 {
    margin-right: 0.5rem !important;
}
.m-3 {
    margin: 1rem !important;
}
.mt-3 {
    margin-top: 1rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.ms-3 {
    margin-left: 1rem !important;
}
.me-3 {
    margin-right: 1rem !important;
}
.mt-4 {
    margin-top: 1.5rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.ms-4 {
    margin-left: 1.5rem !important;
}
.me-4 {
    margin-right: 1.5rem !important;
}
/* -------------------------------------------------------------------------- *\
   PADDINGS
\* -------------------------------------------------------------------------- */
.p-0 {
    padding: 0 !important;
}
.pt-0 {
    padding-top: 0 !important;
}
.pb-0 {
    padding-bottom: 0 !important;
}
.ps-0 {
    padding-left: 0 !important;
}
.pe-0 {
    padding-right: 0 !important;
}
.p-1 {
    padding: 0.25rem !important;
}
.pt-1 {
    padding-top: 0.25rem !important;
}
.pb-1 {
    padding-bottom: 0.25rem !important;
}
.ps-1 {
    padding-left: 0.25rem !important;
}
.pe-1 {
    padding-right: 0.25rem !important;
}
.p-2 {
    padding: 0.5rem;
}
.pt-2 {
    padding-top: 0.5rem !important;
}
.pb-2 {
    padding-bottom: 0.5rem !important;
}
.ps-2 {
    padding-left: 0.5rem !important;
}
.pe-2 {
    padding-right: 0.5rem !important;
}
.p-3 {
    padding: 1rem !important;
}
.pt-3 {
    padding-top: 1rem !important;
}
.pb-3 {
    padding-bottom: 1rem !important;
}
.ps-3 {
    padding-left: 1rem !important;
}
.pe-3 {
    padding-right: 1rem !important;
}
.g-1 {
    gap: 0.25rem !important;
}
.g-2 {
    gap: 0.5rem !important;
}
.g-3 {
    gap: 0.75rem !important;
}
.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.flex-item {
    flex: 0 0 calc(33.33% - 16px); /* Berechne die Breite basierend auf 3 Elementen pro Zeile */
    margin: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dadee2;
}
.flex-column {
    flex-direction: column !important;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
}

#navbar_container {
    display: flex;
    align-items: center;
    box-shadow: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #111 25%,
        #111 50%,
        #222 50%,
        #222 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;
}

#navbar_container .header-status-row {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: .5rem;
    border-right: 1px dashed #444;
}

#navbar_container .header-status-icon {
    width: 30px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#navbar_container .header-status-icon:hover {
    box-shadow: 0 0 0 1px rgba(109, 132, 170, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

#navbar_container .header-status-icon img {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

#navbar_container .header-resource-row {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    padding: .5rem;
}

#navbar_container .header-resource-chip {
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: #222;
}

#navbar_container .header-resource-chip:hover {
    border-color: #ffb730;
}

#navbar_container .header-resource-icon {
    margin-right: 0;
    border-color: #54617b !important;
    object-fit: cover;
    width: 28px;
    height: 16px;
}

#navbar_container .header-resource-value {
    display: inline-block;
    min-width: 62px;
    max-width: 70px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9.6pt;
    letter-spacing: 0.01em;
}

#navbar_container .header-resource-filler {
    flex: 1;
    min-width: 8px;
}

#navbar_container .header-resource-disabled {
    opacity: 0.58;
    filter: saturate(0.8);
}
.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex: 1 0 0%;
}

.border-0 {
    border: 1px solid transparent !important;
}
.border {
    border: 1px solid #444 !important;
}
.border-hover {
    border: 1px solid #444 !important;
}
.border-hover:hover {
    box-shadow: 0 0 0.25rem #ffb730;
}
.border-top {
    border-top: 1px solid #444 !important;
}
.border-bottom {
    border-bottom: 1px solid #444 !important;
}
.border-bottom-dashed {
    border-bottom: 1px dashed #444 !important;
}
.border-left {
    border-left: 1px solid #444 !important;
}
.border-left-dashed {
    border-left: 1px dashed #444 !important;
}
.border-right {
    border-right: 1px solid #444 !important;
}
.border-right-dashed {
    border-right: 1px dashed #444 !important;
}
.border-transparent {
    border: 1px solid rgba(0, 0, 0, 0);
}
.border-warning {
    border: 1px solid #ffb730 !important;
}
.border-danger {
    border: 1px solid rgb(255, 0, 0) !important;
}
.border-success {
    border: 1px solid rgb(87, 167, 0) !important;
}
.border-debug {
    border: 1px solid rgb(216, 0, 140) !important;
}
.collapse-container {
	margin-bottom: 0;
}

.collapse-header {
	background-color: #333;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background-color 0.3s;
}

.collapse-header:hover {
	background-color: #444;
}

.collapse-content {
	display: block;
}
.collapse-content.open {
	display: none;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-warning {
    color: #ffb73a;
}
.btn-popover {
    width: 100%;
    display: inline-block;
    text-align: left;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    padding: 0.35rem;
    margin-left: 0;
    background-color: #fff;
    color: #333;
    transition: background-color 0.5s ease;
    font-family: "Noto Sans";
}

.btn-popover:hover {
    background-color: #f2f2f2;
}

.popover {
    display: none;
    position: absolute;
    background-color: #111e;
    border: 1px solid #444;
    padding: 0.5rem;
    width: 250px;
    z-index: 999;
    top: 45px;
    max-height: 150px;
}
.icon {
    display: inline-block;
    margin-right: 0.5rem;
    z-index: 1; /* Stellen Sie sicher, dass das Popover über anderen Elementen liegt */
    position: relative;
}
.arrow {
    background-color: #f8f9fa;
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #dadee2; /* Change to border-top to make the triangle point downwards */
    top: 100%; /* Position the arrow at the bottom of the popover */
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #ccc; /* Add a border to the triangle */
    z-index: -1; /* Place the triangle behind the popover */
}
.rounded-0 {
    border-radius: 0rem !important;
}
.rounded-1 {
    border-radius: 0.25rem;
}

.rounded-2 {
    border-radius: 0.5rem;
}
.rounded-50 {
    border-radius: 50%;
}
.overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Zu Beginn ausblenden */
    z-index: 1; /* Über der Off-Canvas-Navigation positionieren */
    transition: background-color 0.3s ease; /* Übergang für die Hintergrundfarbe mit einer Dauer von 0.3 Sekunden und einer leichten Beschleunigung */
}

.overlay-background.active {
    background-color: rgba(
        255,
        255,
        255,
        0.7
    ); /* Hintergrundfarbe für das Overlay, wenn es aktiv ist */
}

/* Style the tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.popup-content {
    visibility: hidden;
    position: absolute;
    width: 200px;
    background-color: #111;
    border: 1px solid #444;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 999;
    top: 5px;
    left: 5px;
}


.popup-content.visible {
    visibility: visible;
}

.rank-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rank-menu-trigger-label {
    font-size: 11px;
    color: #9fc8ff;
}

.rank-menu-popup {
    top: calc(100% + 4px);
    right: 0;
    width: 180px;
    padding: 4px;
}

.rank-menu-form {
    margin: 0;
}

.rank-menu-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #ddd;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.rank-menu-item:hover {
    background: rgba(159, 200, 255, 0.12);
    color: #fff;
}

.rank-menu-item.is-current {
    color: #9fc8ff;
    font-weight: 600;
}

/* Style the collapsible sections */
.collapsible {
    cursor: pointer;
    width: 100%;
    border-radius: 0.25rem;
}

.content {
    display: none;
}

/* Style the "active" state */
.active {
    background-color: #111;
}

/* Add a semi-transparent overlay to cover the screen */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    min-width: 250px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(20, 20, 20, 0.3);
    transition: background-color 1s ease; /* Übergang für das sanfte Ausblenden */
    backdrop-filter: blur(5px); /* Blur-Effekt auf den Hintergrund */
}

.modal.modal-fade-enter {
    animation: modalOverlayFadeIn 220ms ease;
}

.modal.modal-fade-leave {
    animation: modalOverlayFadeOut 200ms ease;
}

.modal.modal-fade-enter .modal-resource-content,
.modal.modal-fade-enter .modal-cash-content,
.modal.modal-fade-enter .modal-construction-content,
.modal.modal-fade-enter .modal-research-content,
.modal.modal-fade-enter .modal-content,
.modal.modal-fade-enter .modal-galaxy-content,
.modal.modal-fade-enter .modal-forum-content {
    animation: modalPanelFadeIn 220ms ease;
    will-change: opacity;
}

.modal.modal-fade-leave .modal-resource-content,
.modal.modal-fade-leave .modal-cash-content,
.modal.modal-fade-leave .modal-construction-content,
.modal.modal-fade-leave .modal-research-content,
.modal.modal-fade-leave .modal-content,
.modal.modal-fade-leave .modal-galaxy-content,
.modal.modal-fade-leave .modal-forum-content {
    animation: modalPanelFadeOut 180ms ease;
    will-change: opacity;
}

@keyframes modalOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalOverlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalPanelFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPanelFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-resource-content {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #222;
    border: 1px solid #444;
    top: 50%; /* 50% von oben */
    left: 50%; /* 50% von links */
    transform: translate(-50%, -50%); /* Zentrieren */
    width: 300px;
}

@media (prefers-reduced-motion: reduce) {
    .modal.modal-fade-enter,
    .modal.modal-fade-leave,
    .modal.modal-fade-enter .modal-resource-content,
    .modal.modal-fade-enter .modal-cash-content,
    .modal.modal-fade-enter .modal-construction-content,
    .modal.modal-fade-enter .modal-research-content,
    .modal.modal-fade-enter .modal-content,
    .modal.modal-fade-enter .modal-galaxy-content,
    .modal.modal-fade-enter .modal-forum-content,
    .modal.modal-fade-leave .modal-resource-content,
    .modal.modal-fade-leave .modal-cash-content,
    .modal.modal-fade-leave .modal-construction-content,
    .modal.modal-fade-leave .modal-research-content,
    .modal.modal-fade-leave .modal-content,
    .modal.modal-fade-leave .modal-galaxy-content,
    .modal.modal-fade-leave .modal-forum-content {
        animation: none !important;
    }
}

.modal-construction-content {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #222;
    border: 1px solid #444;
    top: 50%; /* 50% von oben */
    left: 50%; /* 50% von links */
    transform: translate(-50%, -50%); /* Zentrieren */
    width: 450px;
}

.modal-research-content {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #222;
    border: 1px solid #444;
    top: 50%; /* 50% von oben */
    left: 50%; /* 50% von links */
    transform: translate(-50%, -50%); /* Zentrieren */
    width: 450px;
}

.modal-content {
    z-index: 1000;
    display: none;
    position: fixed;
    background-color: #222;
    top: 50%; /* 50% von oben */
    left: 50%; /* 50% von links */
    transform: translate(-50%, -50%); /* Zentrieren */
    border: 1px solid #444;
}

.modal-galaxy-content {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #222;
    border: 1px solid #444;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, calc(100vw - 40px));
    max-width: min(1100px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
}

.modal-forum-content {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #222;
    border: 1px solid #444;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1000px, calc(100vw - 40px));
    max-width: min(1000px, calc(100vw - 40px));
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
}

/* Galaxy modal: große DOM-Menge -> leichterer Übergang ohne zusätzliche Panel-Animation */
#modal_galaxy {
    backdrop-filter: none;
    background-color: rgba(12, 16, 22, 0.42);
}

#modal_galaxy.modal-fade-enter .modal-galaxy-content,
#modal_galaxy.modal-fade-leave .modal-galaxy-content {
    animation: none !important;
}

/* Einheitliche Modal-Breite: alle 400px, außer Cash-Modal */
.modal .modal-resource-content,
.modal .modal-construction-content,
.modal .modal-research-content,
.modal .modal-content {
    width: 450px !important;
    max-width: calc(100vw - 24px);
}

#modal_resource_cash .modal-resource-content {
    width: 450px !important;
    max-width: calc(100vw - 24px);
}

#modal_resource_cash .modal-cash-content {
    width: min(900px, calc(100vw - 24px)) !important;
    max-width: min(900px, calc(100vw - 24px)) !important;
}

#modal_resource_cash .modal-cash-grid {
    display: grid;
    grid-template-columns: 450px minmax(0, 1fr);
    min-height: 360px;
}

#modal_resource_cash .modal-cash-grid-main {
    width: 450px;
    min-width: 0;
}

#modal_resource_cash .modal-cash-grid-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#modal_resource_cash .modal-cash-log-scroll {
    height: 320px;
    max-height: 320px;
    overflow-y: auto;
}

#modal_resource_cash .modal-cash-log-entry:last-child {
    border-bottom: 0 !important;
}

#modal_alliance_permissions .modal-alliance-permissions-content {
    width: 600px !important;
    max-width: calc(100vw - 24px) !important;
}

#modal_show_spyreport .modal-resource-content {
    width: min(1120px, calc(100vw - 40px)) !important;
    max-width: min(1120px, calc(100vw - 40px)) !important;
    height: min(82vh, 760px) !important;
}

#modal_forum .modal-forum-content {
    width: min(1000px, calc(100vw - 40px)) !important;
    max-width: min(1000px, calc(100vw - 40px)) !important;
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 120px) !important;
}

#modal_show_spyreport .modal-body {
    padding: 0.85rem;
}

.spyreport-popup-head {
    border: 1px solid #4a5c74;
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.85rem;
    background: linear-gradient(180deg, rgba(18, 33, 52, 0.78), rgba(12, 22, 35, 0.76));
}

.spyreport-popup-date {
    color: #9fb3c8;
    font-size: 12px;
}

.spyreport-popup-title {
    margin-top: 0.2rem;
    font-size: 17px;
    font-weight: 700;
    color: #eef5ff;
}

.spyreport-popup-title span {
    color: #c8d4e2;
    font-weight: 400;
    font-size: 14px;
}

.spyreport-popup-population {
    margin-top: 0.35rem;
    color: #dbe7f5;
}

.spyreport-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.spyreport-popup-card {
    border: 1px solid #3f5168;
    border-radius: 0.35rem;
    padding: 0.65rem;
    background: linear-gradient(180deg, rgba(13, 21, 33, 0.86), rgba(9, 15, 24, 0.84));
}

.spyreport-popup-card-title {
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #35485f;
    color: #ffcf6f;
    font-weight: 700;
}

.spyreport-popup-row {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.18rem 0;
    font-size: 12px;
}

.spyreport-popup-label {
    color: #b8c7d6;
    flex: 1;
    text-align: left;
}

.spyreport-popup-value {
    color: #ecf4ff;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 980px) {
    .spyreport-popup-grid {
        grid-template-columns: 1fr;
    }
}

.modal-title {
    text-align: center;
    display: inline;
    width: 100%;
    padding: 0.25rem;
    font-weight: bold;
}

.modal-header {
    display: flex;
    flex-direction: row;
    padding: 0.5rem;
    border-bottom: 1px solid #444;
}

.modal-body {
    padding: 0.5rem;
    transition: opacity 1s ease; /* Übergang für das sanfte Ausblenden */
}

.modal-footer {
    padding: 0.5rem;
    border-top: 1px solid #444;
}

.modal-input {
    margin-bottom: 0.5rem;
}
.modal-input:last-child {
    margin-bottom: 0;
}

.close {
    color: #333;
    float: right;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.grid-container {
    display: grid;
    grid-template-columns: 15% 1fr;
    grid-gap: 10px;
    background-color: #222;
}
.grid-container-sending-fleet {
    display: grid;
    grid-template-columns: 64% 1fr;
    flex: 1;
}
.grid-item {
    text-align: left;
}
.system:hover {
    background-color: #444;
}
.grid-container-system {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 0.5rem;
    background-color: #111;
    border: 1px solid #444;
    border-radius: .25rem;
    padding: .5rem;
    padding-left: 3rem;
}

.grid-item-system {
    padding: 0.25rem;
    text-align: center;
}

#overlay_construction {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    top: 0px;
    left: 0px;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 2px;
    z-index: 2;
    cursor: pointer;
}
#overlay_research {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    top: 20px;
    left: 0px;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 2px;
    z-index: 2;
    cursor: pointer;
}
#overlay_messages {
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 0.25rem;
    position: relative;
    top: -3px;
    color: #fff;
    z-index: 2;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}
#overlay_chat {
    display: flex;
    position: relative;
    padding-left: 7px;
    padding-right: 7px;
    border-radius: 0.25rem;
    color: #fff;
    z-index: 2;
    top: 0;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}
#overlay_shipbuilding {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    top: 40px;
    left: 0px;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 2px;
    z-index: 2;
    cursor: pointer;
}
#overlay_stationed_fleet {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    top: 0px;
    left: 120px;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 2px;
    z-index: 2;
    cursor: pointer;
}
#overlay_planet {
    padding: 0.25rem;
    position: relative;
    width: 260px;
    background-color: #111a;
    z-index: 2;
    backdrop-filter: blur(5px); /* Blur-Effekt auf den Hintergrund */
    height: 100px;
}
#overlay_planet_right {
    position: relative;
    width: 275px;
    background-color: #111a;
    z-index: 2;
    backdrop-filter: blur(5px); /* Blur-Effekt auf den Hintergrund */
    height: 100px;
}

.shipyard-officer-overlay {
    border: 1px solid #505050;
    background: linear-gradient(180deg, rgba(15, 19, 24, 0.92) 0%, rgba(12, 15, 19, 0.9) 100%);
    border-radius: 0.35rem;
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shipyard-officer-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.shipyard-officer-stat {
    border: 1px solid #3f4a56;
    background: rgba(24, 30, 37, 0.85);
    border-radius: 0.3rem;
    padding: 0.25rem 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.shipyard-officer-stat span {
    font-size: 10px;
    color: #9fb2c5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.shipyard-officer-stat strong {
    margin-top: 0.2rem;
    font-size: 12px;
    color: #e9f3ff;
    line-height: 1.2;
}

.shipyard-officer-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.shipyard-officer-controls label {
    color: #adbdcc;
    margin-right: auto;
}

.shipyard-officer-controls select {
    width: 78px;
    min-width: 78px;
    height: 30px;
}

.shipyard-officer-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.shipyard-officer-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shipyard-officer-select {
    width: 70px;
    min-width: 70px;
    height: 28px;
    border: none;
}

.shipyard-officer-line .btn {
    border: none;
}

.repairdock-summary {
    padding: 0.55rem;
    border-radius: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.repairdock-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.repairdock-stat {
    border: 1px solid #3f4a56;
    background: rgba(23, 29, 35, 0.85);
    border-radius: 0.3rem;
    min-height: 48px;
    padding: 0.3rem 0.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.repairdock-stat span {
    font-size: 10px;
    color: #9fb2c5;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}

.repairdock-stat strong {
    margin-top: 0.25rem;
    font-size: 12px;
    color: #e9f3ff;
    line-height: 1.2;
}

.repairdock-summary-costs {
    font-size: 12px;
}

.repairdock-fleet-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.repairdock-severity {
    width: 100%;
    height: 0.45rem;
    border: 1px solid #42505c;
    border-radius: 999px;
    background: rgba(10, 12, 14, 0.85);
    overflow: hidden;
}

.repairdock-severity-fill {
    height: 100%;
    background: linear-gradient(90deg, #3aa35a 0%, #d1ae3b 55%, #bd4e4e 100%);
}

@media (max-width: 1200px) {
    .repairdock-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
#overlay_planet_note {
    position: relative;
    width: 150px;
    z-index: 2;
    background-color: rgba(17,17,17, .7);
    /*box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.5);*/
    backdrop-filter: blur(5px); /* Blur-Effekt auf den Hintergrund */
}
#overlay_traits {
    display: flex;
    position: relative;
    top: .25rem;
    left: 0.5rem;
    bottom: 0;
    z-index: 2;
    border-radius: 0.25rem;
}
.overlay_countdown {
    display: flex;
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-evenly;
    background-color: #111;
    border-top: 1px solid #444;
}

.overlay_countdown_item {
    width: 25%;
    display: flex;
    height: 54px;
}
#overlay_ship_count {
    padding: 0.125rem;
    display: flex;
    position: relative;
    width: 134px;
    height: 24px;
    top: 56px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
    border-bottom-left-radius: 0.25rem;
}

#overlay_spaceport_military {
    padding: 0.125rem;
    display: flex;
    position: relative;
    width: 130px;
    height: 24px;
    top: 74px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

#overlay_fleet_ship {
    padding: 0.25rem;
    display: flex;
    position: relative;
    width: 100%;
    height: 26px;
    top: 54px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;

    border-top: 1px solid #444;
}

#overlay_remove_fleet_ship {
    padding: 0.125rem;
    width: 100%;

    width: 24px;
    height: 24px;
    top: 54px;
    left: 67px;
    bottom: 0;

    z-index: 111;
}

#overlay_building_rank {
  display: flex;
  justify-content: center;
  align-items: center;
    position: relative;
    width: 65px;
    height: 35px;
    padding: 0.25rem;

    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2;
    border-bottom-right-radius: 0.5rem;
}

#overlay_star_name {
    display: flex;
    position: relative;
    top: 0;
    left: 0;
    height: 82px;
    width: 300px;
    z-index: 2;
}

#overlay_cities_lights {
    display: flex;
    position: absolute; 
    width: 100%; 
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

#overlay_chat_hide {
    display: flex;
    position: relative;
    top: -65px;
    left: 210px;
    width: 14px;
    z-index: 2;
}

#progress-container {
    width: 100%;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

#progress-bar {
    width: 0;
    height: 28px;
    background-color: rgba(255, 155, 0, 0.2);
}

#progress-label {
    display: block;
    position: absolute;
    width: 100%;
    height: 28px;
    padding: 0.35rem;
}

.matrix-cell {
    box-sizing: border-box;
    width: 1%;
    height: 1%;
}

.universe-galaxy-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.universe-galaxy-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.universe-galaxy-sidepanel {
    width: 272px;
    min-width: 272px;
    overflow-y: auto;
    height: clamp(420px, calc(100vh - 257px), 780px);
}

.universe-galaxy-map-panel {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: clamp(420px, calc(100vh - 257px), 780px);
}

.universe-galaxy-map-viewport {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 0.25rem;
}

.universe-galaxy-map-layer {
    width: 700px;
    height: 700px;
    position: relative;
    transform-origin: top left;
}

.galaxy-map-grid {
    display: grid;
    grid-template-columns: repeat(100, minmax(0, 1fr));
    grid-template-rows: repeat(100, minmax(0, 1fr));
}

#galaxy_map.galaxy-map-grid .matrix-cell {
    width: 100%;
    height: 100%;
    border-right: dotted 1px #333;
    border-bottom: dotted 1px #333;
}

#galaxy_map.galaxy-map-grid .matrix-cell.matrix-cell-wormhole {
    position: relative;
}

#galaxy_map.galaxy-map-grid .matrix-cell.matrix-cell-wormhole::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9ed6ff;
    box-shadow: 0 0 5px rgba(158, 214, 255, 0.95);
}

.galaxy-flight-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.galaxy-flight-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.75);
    opacity: 1;
    transition: left 0.9s linear, top 0.9s linear, opacity 0.4s ease;
    pointer-events: auto;
    cursor: pointer;
}

.galaxy-flight-marker-fleet {
    background: #7dd5ff;
    border: 1px solid #d8f4ff;
}

.galaxy-flight-marker-attack {
    background: #ff7b7b;
    border: 1px solid #ffdede;
}

.galaxy-flight-marker-alliance {
    background: #61d47f;
    border: 1px solid #d5f8de;
}

.galaxy-flight-marker-colony {
    background: #ffb15f;
    border: 1px solid #ffe0b8;
}

.galaxy-flight-marker-construction {
    background: #ffd85e;
    border: 1px solid #fff1be;
}

.galaxy-flight-marker-research {
    background: #b48dff;
    border: 1px solid #eadcff;
}

.universe-galaxy-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-left: 0.55rem;
    padding-left: 0.55rem;
    border-left: 1px solid #4449;
}

.universe-galaxy-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 11px;
    color: #cfd5e0;
    white-space: nowrap;
}

.universe-galaxy-legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.universe-galaxy-legend-dot.galaxy-flight-marker-fleet,
.universe-galaxy-legend-dot.galaxy-flight-marker-attack,
.universe-galaxy-legend-dot.galaxy-flight-marker-alliance,
.universe-galaxy-legend-dot.galaxy-flight-marker-colony,
.universe-galaxy-legend-dot.galaxy-flight-marker-construction,
.universe-galaxy-legend-dot.galaxy-flight-marker-research {
    position: static;
    transform: none;
    opacity: 1;
    transition: none;
    pointer-events: none;
    cursor: default;
}

.system-background {
    /* Fallback-Farbe, falls der Browser keine Gradienten unterstützt */
    background-color: #222;

    /* Verlauf zwischen #222 und einem Hintergrundbild */
    /* Hintergrundbild wird unten rechts ausgerichtet und wiederholt sich nicht */
    background-position: bottom right;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.tab {
    display: none;
}

.tab.active {
    display: flex;
}
.tab-container {
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.tab-header ul {
    list-style-type: none;
    margin: 0;
    padding: 0.25rem;
    text-align: left;
    display: flex;
    padding-bottom: 0;
    background-color: #222;
}

.tab-header ul li {
    flex: 1;
    margin: 0.5rem;
    margin-bottom: 0;
}

.tab-header ul li a {
    display: block;
    text-decoration: none;
    background-color: #333;
    text-align: center;
    border: 1px solid #444;
    border-radius: 0.25rem;
    opacity: 1; /* Startwert für Inaktivität */
    transition: background-color 0.5s ease;
    padding: 1rem;
    color: #ffb73a;
}

.tab-header ul li a.active {
    border: 1px solid #ff9b00 !important;
    border-radius: 0.25rem;
    background-color: rgba(255, 155, 0, 0.2);
    opacity: 1; /* Aktiver Tab vollständig sichtbar */
    transition: background-color 0.5s ease;
}

.tab-header ul li a:hover {
    background-color: #444;
    opacity: 1; /* Inaktiver Tab bei Hover teilweise sichtbar */
}
.tab-header ul li a:hover.active {
    background-color: rgba(255, 155, 0, 0.2);
    opacity: 1; /* Inaktiver Tab bei Hover teilweise sichtbar */
}
.tab-content .tab {
    display: none;
    padding-top: 0;
    width: 100%;
    animation: fadeTab 0.5s ease; /* Übergangseffekt */
    overflow: auto; /* Füge Overflow hinzu */
    flex: 1;
}

.tab-content .tab:first-child {
    display: block;
    border-left: 0px;
}

.image-container {
    position: relative;
    display: inline-block;
}

.overlay-button {
    position: absolute;
    left: 25%;
    top: 75%;
    width: 125px;

    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.pulsate {
    box-shadow: 0 0 0 rgba(255, 115, 176, .5);
    animation: pulse_shadow 1.5s infinite alternate;
}

.resource-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

input[type="radio"][name="speed"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.custom-radio {
	background-color: #333;
	color: #666;
	display: inline-block;
	border: 1px solid #444;
	padding: 0.5rem;
	width: 50px;
	text-align: center;
	cursor: pointer;
	user-select: none;
	transition: background 0.2s, border 0.2s;
}

/* Benutzerdefinierte Radiobutton-Stile */
.custom-radio-bounty {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 0.25rem;
    border: 1px solid #444;
    position: relative;
    cursor: pointer;
    margin: 0.125rem;
    background-color: #333;
    font-weight: bold;
    color: #777;
}

.custom-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 0.25rem;
    border: 1px solid #444;
    position: relative;
    cursor: pointer;
    background-color: #555;
    font-weight: bold;
    color: #444;
    transition: background-color 0.5s ease-in-out;
}

/* Benutzerdefinierte Checkbox-Stile */
.custom-checkbox::after {
    content: "\2713"; /* Haken-Symbol */
    font-size: 15px;
    color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Verstecke standardmäßig das Haken-Symbol */
}



.radio-label {
    vertical-align: middle;
}

.checkbox-label {
    display: inline-flex; /* Um die Breite des Labels zu berücksichtigen */
    vertical-align: top; /* Oben ausrichten */
}

.custom-radio:hover,
.custom-checkbox:hover {
    background-color: #444;
    transition: background-color 0.5s ease-in-out;
}

/* Benutzerdefinierte Radiobutton-Stile für ausgewählten Zustand */
.custom-radio.checked {
    background-color: #4e3a1b;
    border: 1px solid #ff9b00;
    color: #ffb730;
}

.custom-radio.disabled {
    background-color: #fff;
    border: 1px solid #ff9b00;
    color: #ffb730;
}

/* Benutzerdefinierte Radiobutton-Stile für ausgewählten Zustand */
.custom-radio-bounty.checked {
    background-color: #4e3a1b;
    border: 1px solid #ff9b00;
    color: #ffb730;
}

.custom-checkbox.checked::after {
    color: #ffb730; /* Farbe des Haken-Symbols */
    display: block; /* Zeige das Haken-Symbol */
}

.consumption-gradient {
    background: linear-gradient(
        to right,
        hsla(120, 100%, 50%, 0.5),
        hsla(60, 100%, 50%, 0.5),
        hsla(0, 100%, 50%, 0.5)
    );
}

/* Benutzerdefinierte Checkbox-Stile */
.trade-radio::after {
    content: "\2713"; /* Haken-Symbol */
    font-size: 14px;
    padding: 0 !important;
    margin: 0;
}

#popover {
    position: absolute;
    background: linear-gradient(180deg, rgba(16, 25, 38, 0.96), rgba(10, 16, 26, 0.92));
    border: 1px solid var(--ui-border);
    padding: .5rem;
    box-shadow: .25rem .25rem 1rem rgba(0, 0, 0, 0.9);
    z-index: 9999;
    max-width: 350px;
    backdrop-filter: blur(6px);
    text-align: left;
    border-radius: 0.25rem;
}

.poll-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 equal-width columns */
    gap: .5rem;
}
.contacts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 equal-width columns */
    gap: .5rem;
}

.poll {
    border: 1px solid #444;
    border-radius: .25rem;
    padding: .5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensures the card takes up the full column width */
}

.parent-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Standardmäßig linksausrichtung */
}

.align-right {
    align-self: flex-end;
    background-color: #333; /* Hintergrundfarbe für gesendete Nachrichten */
}

.align-left {
    align-self: flex-start;
    background-color: #333; /* Hintergrundfarbe für empfangene Nachrichten */
}
.chat-container {
  position: relative; /* Macht den Container relativ, damit das Overlay-Element relativ dazu positioniert werden kann */
  width: 100%; /* Stellt sicher, dass das Element die volle Breite einnimmt */
}

.delete-button {
  position: absolute; /* Absolut positioniert relativ zum nächstgelegenen relativen Element (.chat-item) */
}

.construction-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

#construction-queue {
  border-left: 1px solid #444;
}
.shipconstruction-container {
    display: grid;
    grid-template-columns: 50% 1fr;
}

.mining-outpost-container {
    display: grid;
    grid-template-columns: 55% 1fr;
}

.research-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    padding: .5rem;
    border: 1px solid #444;
    border-radius: .25rem;
    margin-top: .5rem;
    background-color: #111;
    overflow-y: scroll;
    box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.9);
}

.modules-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: .5rem;
  width: 100%;
  flex: 1;
  padding: .5rem;
}

.modules-item {
    display: flex;
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100px;
}

.construction-title {
    grid-column: span 2;
    padding: .25rem;
    text-align: center;
}

#notification {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75px;
    position: fixed;
    top: 10px;
    right: 10px;
    /*background-color: rgba(78, 58, 27, 0.9);*/
    color: white;
    padding: 1rem;
    border: 1px solid var(--ui-border);
    border-radius: .25rem;
    box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.9);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
    width: 250px;
    background: linear-gradient(180deg, rgba(60, 45, 22, 0.96), rgba(43, 30, 13, 0.93));
}

#notification-progress {
    height: .25rem;
    background-color: #ffb730;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.mission-progress {
  height: 100%;
  transition: width 0.3s ease;
}

/* Stil für den Fortschrittsbalken */
.progress-bar {
    height: 100%;
    background-color: #4caf50;
    width: 0%; /* Initialwert, wird durch JavaScript aktualisiert */
}

/* Stil für die Prozentanzeige */
.progress-percent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
}

#galaxy_map {
    position: relative;
    top: 0;
    left: 0;
    color: white;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease; /* Übergang für das sanfte Ausblenden */
    z-index: 10;
}

.subtitle {
  display: block;
  padding: .15rem .25rem .15rem .25rem;
  border: 1px solid #444;
  border-radius: .25rem;
  background-color: #111;
  text-align: center;
  font-weight: bold;
  width: 100%;
  box-shadow: .15rem .15rem .25rem rgba(0, 0, 0, 0.9);
  margin-bottom: .5rem;
}

#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: linear-gradient(180deg, rgba(16, 25, 38, 0.96), rgba(10, 16, 26, 0.94));
  color: white;
  padding: 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  border-radius: .25rem;
  border: 1px solid var(--ui-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.margin-container {
  max-width: 520px;
  margin-left: .5rem;
  margin-right: .5rem;
}

.bottom-right-radius {
  border-bottom-right-radius: .25rem;
}

.bottom-left-radius {
  border-bottom-left-radius: .25rem;
}

.top-right-radius {
  border-top-right-radius: .25rem;
}

.top-right-radius {
  border-top-left-radius: .25rem;
}

.dnone {
  display: none;
}

.fleet-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: .5rem;
}
.wiki-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 1rem;
  gap: 1rem;
}

.wiki-card {
  height: 125px;
  margin-bottom: 1rem;
  border: 1px solid #444;
  padding-top: 0;
}

/* Mobile Sidebar (ausgeblendet standardmäßig) */
#mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #111;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    border-right: 1px solid #444;
}

/* Sichtbarer Zustand */
#mobile-sidebar.active {
    transform: translateX(0);
}

/* Der Menü-Button */
.mobile-menu-button {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 4px;
    z-index: 2100;
}

#mobile-module-nav-root {
    display: none;
}

.mobile-module-nav {
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background-image: linear-gradient(
        135deg,
        #222 25%,
        #111 25%,
        #111 50%,
        #222 50%,
        #222 75%,
        #111 75%,
        #111 100%
    );
    background-size: 5px 5px;
    border-bottom: 1px solid #444;
}

.mobile-module-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.35rem 0.6rem;
    font-size: 10pt;
    white-space: nowrap;
}

/* Nur auf kleinen Bildschirmen sichtbar */
@media (min-width: 992px) {
    #mobile-menu-toggle,
    #mobile-sidebar {
        display: none;
    }

}

@media screen and (max-width: 768px) {
    #page-shell {
        max-width: 100%;
        box-shadow: none;
    }
    #mobile-module-nav-root {
        display: block;
    }
    #sidebar {
        display: none;
    }
    #outer-container {
        max-width: 100%;
        height: auto;
        min-height: 0;
        border-left: 0;
        border-right: 0;
    }
    #header-root {
        max-width: 100%;
        border-left: 0;
        border-right: 0;
    }
    #inner-container {
        grid-template-columns: 1fr;
    }
    #content {
        margin: 0.25rem;
        min-width: 0;
    }
    #module {
        min-width: 0;
        overflow-x: auto;
    }
    #module table {
        min-width: 640px;
    }
    #planets {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-bottom: 1px solid #444;
    }
    #planets .action-container {
        flex: 0 0 auto;
    }
    #planets .action-button {
        width: 120px !important;
    }
    #navbar_container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.35rem;
    }
    #navbar_container .header-status-row {
        width: 100%;
        margin-right: 0 !important;
        justify-content: space-between !important;
    }
    #navbar_container .header-resource-row {
        width: 100% !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    #navbar_container .header-resource-filler {
        display: none;
    }
    #navbar_container .header-resource-chip {
        flex: 0 0 auto;
    }
    .modal .modal-resource-content,
    .modal .modal-cash-content,
    .modal .modal-construction-content,
    .modal .modal-research-content,
    .modal .modal-content,
    .modal .modal-galaxy-content,
    .modal .modal-forum-content {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
    }
    #modal_resource_cash .modal-cash-grid {
        grid-template-columns: 1fr;
    }
    #modal_resource_cash .modal-cash-grid-main {
        width: auto;
    }
    #modal_resource_cash .modal-cash-grid-side {
        border-left: 0 !important;
        border-top: 1px solid #444;
    }
    #modal_resource_cash .modal-cash-log-scroll {
        height: 220px;
        max-height: 220px;
    }
    .modal .modal-body {
        overflow-y: auto;
    }
    #footer-root {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    .container {
        flex-direction: column;
        height: calc(100vh - 200px);
    }

    .main-sidebar {
        display: none;
    }

    .sidebar-toggle {
        display: block;
        margin: 10px;
    }

    .main-content {
        margin: 0;
    }

    .mobile-header {
        display: flex;
        background-color: #f2f2f2;
        border-bottom: 1px solid #dadee2;
        justify-content: space-between;
        padding: 0.5rem;
    }
    .side-list-container {
        display: block;
        padding: 0;
    }
    .side-list {
        width: 100% !important;
        height: calc(100vh - 130px);
        overflow: auto;
        border: none;
    }
    .side-list-content {
        display: none;
    }
    .card-body {
        text-align: left;
        overflow: visible !important;
        padding: 0px;
    }
}
