* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(circle at 20% 20%, #0f0f1a, #050509);
  color: #e0e0ff;
  min-height: 100vh;
  padding: 2rem;
  min-height: 100vh;
  overflow-x: hidden;
}


body,
.side-bar,
.top-bar,
.top-left-bar,
.main-container,
.main-wrapper,
.admin-list,
.menu-list li,
.admin-list li,
.else-list li,
.top-bar h1,
.menu-list h3,
a {
  transition: all 0.2s ease-in-out;
}

.container {
  background: none;
  border: none;
  box-shadow: none;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  margin: auto;
}

p {
  color: #e0e0ff;
  text-align: center;
  font-size: 14pt;
  margin-bottom: 1rem;
}

h1 {
  text-align: center;
  color: #00ffe7;
  text-shadow: 0 0 5px #00ffe7, 0 0 10px #00ffe7;
  margin-bottom: 1.5rem;
}

h2 {
  text-align: center;
  color: #00ffe7;
  text-shadow: 0 0 3px #00ffe7, 0 0 9px #00ffe7;
  margin-bottom: 1.5rem;
}

input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #00ffe7;
  background: rgba(0, 0, 0, 0.4);
  color: #00ffe7;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.6s ease-in-out;
  align-items: center;
  display: flex;
}

input:focus {
  outline: none;
  box-shadow: 0 0 8px #00ffe7;
}

input[type="submit"] {
  background: linear-gradient(90deg, #00ffe7, #6600ff);
  border: none;
  color: #000;
  font-weight: bold;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 15px #00ffe7;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

input:hover {
  box-shadow: 0 0 15px #00ffe7, 0 0 30px #6600ff;
  transform: scale(1.02);
}

button:hover(:not(:danger-button)) {
  box-shadow: 0 0 25px #00ffe7, 0 0 40px #6600ff;
  transform: scale(1.02);
}

a {
  color: #00ffe7;
  text-decoration: none;
  transition: 0.2s;
  transition: all 0.3s ease-out;
}

a:hover {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  transition: all 0.3s ease;
}


input:focus {
  outline: none;
  border: 1px solid #00ffe7;
  box-shadow: 0 0 8px #00ffe7, 0 0 12px #00ffe7;
  background-color: rgba(0, 0, 0, 0.5);
  color: #00ffe7;
}




.welcome-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.menu-list {
  position: static;
  margin-top: 3.5rem;
  width: 100%;
  left: 0;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  color: #e0e0ff;
  z-index: 10;
}

.menu-list h3 {
  margin: 100px 0 0;
  text-align: center;
  font-size: 1.8rem;
  color: #00ffe7;
  text-shadow: 0 0 2px #00ffe7, 0 0 5px #00ffe7;
}

.menu-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  list-style: none;
  padding: 15px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  margin: 5px 0;
  border-radius: 5px;
  font-size: 15pt;
  text-align: right;
  transition: all 0.2s ease;
}

.menu-list li:hover {
  background: rgba(0, 255, 255, 0.1);
}

.side-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 17em;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  border-right: 2px solid;
  border-color: #171717;
  overflow: hidden;
  transition: all 0.8s ease;
}

/* Sidebar collapsed state */
.side-bar.collapsed li {
  white-space: nowrap;
  overflow: hidden;
}

.side-bar.collapsed {
  white-space: nowrap;
  width: 4rem;
  transition: width 0.6s ease;
}


.side-bar.collapsed .menu-list li,
.side-bar.collapsed .admin-list li,
.side-bar.collapsed .else-list li {
  transition: all 0.6s ease;
}

.label {
  display: block;
  opacity: 1;
  transition: all 0.6s ease;
  white-space: nowrap;
}

.side-bar.collapsed .label {
  display: none;
  transition: opacity 0.6s ease;
}
.side-bar:not(.collapsed) .label {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.side-bar.collapsed .menu-list li i,
.side-bar.collapsed .admin-list li i,
.side-bar.collapsed .else-list li i {
  float: none;
  transition: all 0.6s ease;
}

.side-bar.collapsed .main-container {
  margin-left: 0;
  transition: all 0.6s ease;
}

.side-bar.collapsed .main-wrapper {
  margin-left: 0;
  transition: all 0.6s ease;
}

.side-bar li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.sidebar-animate .label {
  transition: opacity 0.3s ease 0.2s;
}

#icon {
  margin-right: 10px;
  float: left;
  font-size: 1.2em;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 17em;
  right: 0;
  height: 4em;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-bottom: 2px solid;
  border-color: #171717;
  z-index: 2;
}

.top-bar h1 {
  color: #00ffe7;
  text-shadow: 0 0 3px #00ffe7, 0 0 7px #00ffe7;
  margin-top: 0.7em;
  align-items: center;
  text-align: center;
}

.top-left-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 17em;
  height: 4em;
  background: rgb(5, 5, 5);
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-color: #171717;
  z-index: 3;
}

.top-right-bar {
  position: fixed;
  top: 0;
  right: 0.5%;
  width: 2em;
  height: 4em;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}


#lightbulb-icon {
  margin-right: 10px;
  float: left;
  font-size: 20pt;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.8s ease-out;
}

#lightbulb-icon:hover {
  transition: all 0.8s ease;
  color: #e5ff00;
  text-shadow: 0 0 10px #e5ff00, 0 0 20px #e5ff00;
}

#control-icon {
  margin-right: 1.5em;
  margin-left: 1.5em;
  font-size: 20pt;
  display: inline-block;
  width: fit-content;
  transition: all 0.8s ease;
}

.gear {
  transition: all 2s ease;
}

.gear:hover {
  transform: rotate(360deg);
}

.side-bar-control-icon {
  margin-right: 1em;
  margin-left: 0.3em;
  font-size: 20pt;
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  color: #00ffe7;
  transition: all 0.8s ease-out;
}

.side-bar-control-icon:hover {
  transition: all 0.8s ease;
  color: #00ffe7;
  text-shadow: 0 0 10px #00ffe7, 0 0 20px #00ffe7;
}



/* Ausgangsposition */
.toggle-btn {
  position: fixed;
  top: 50%;
  left: 17rem;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  transition: left 0.7s ease;
  width: fit-content;
  height: fit-content;
}

/* Wenn Sidebar eingeklappt ist */
.side-bar.collapsed + .toggle-btn {
  left: 3.8rem;
}

.toggle-btn.collapsed i {
  transform: rotate(-180deg);
}

#inbox-icon {
  margin-right: 1em;
  float: right;
  text-align: right;
  font-size: 20pt;
  align-items: right;
  cursor: pointer;
  color: #00ffe7;
  transition: all 0.8s ease-out;
}

#inbox-icon:hover {
  transition: all 0.8s ease;
  color: #ffffff;
}

#inbox-icon:active {
  color: #ffffff;
}

.main-container {
  margin-left: 17em;
  margin-top: 4em;
  padding: 2rem;
  flex-grow: 1;
  color: #e0e0ff;
  justify-content: center;
  text-align: center;
  max-height: 50%;
  overflow-y: auto;
}

.main-container h1 {
  color: #00ffe7;
  text-shadow: 0 0 3px #00ffe7, 0 0 7px #00ffe7;
  margin-bottom: 1.5rem;
}

.admin-list {
  position: static;
  flex-grow: 1;
  margin-left: 0;
  width: 100%;
  background: transparent;
  padding: 10px;
  color: #e0e0ff;
  z-index: 10;
  border-top: 2px solid #3f3f3f;
}

.admin-list h3 {
  margin: 100px 0 0;
  text-align: center;
  font-size: 1.8rem;
  color: #00ffe7;
  text-shadow: 0 0 2px #00ffe7, 0 0 5px #00ffe7;
}

.admin-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  list-style: none;
  padding: 15px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  margin: 5px 0;
  border-radius: 5px;
  font-size: 15pt;
  text-align: right;
}

.admin-list li:hover {
  background: rgba(0, 255, 255, 0.1);
}


.main-wrapper {
  position: relative;
  margin-left: 17rem;
  margin-top: 4em;
  padding: 1rem;
  justify-content: center;
  text-align: center;
  align-items: center;
}


.else-list {
  position: static;
  bottom: 0;
  margin-bottom: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  color: #e0e0ff;
  z-index: 10;
}

.else-list h3 {
  margin: 100px 0 0;
  text-align: center;
  font-size: 1.8rem;
  color: #00ffe7;
  text-shadow: 0 0 2px #00ffe7, 0 0 5px #00ffe7;
}

.else-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.else-list li {
  list-style: none;
  padding: 15px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  margin: 5px 0;
  border-radius: 5px;
  font-size: 15pt;
  text-align: right;
}

.else-list li:hover {
  background: rgba(0, 255, 255, 0.1);
}


.current-page {
  color: #ff00ff;
}

.popup {
  position: fixed;
  top: 4em;
  right: 1em;
  display: flex;
  flex-direction: column;
  user-select: none;
  z-index: 20;
}

.popup .popuptext {
  visibility: hidden;
  width: 350px;
  background-color: rgba(28, 35, 38, 0.973);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  border: 2px solid rgba(0, 255, 255, 0.2);
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 1em;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 21;
  margin-top: 0.5em;
  -webkit-animation: fadeOut 1s;
  animation: fadeOut 1s;
}

.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
  z-index: 22;
}

.popup-h2 {
  color: #00ffe7;
  text-shadow: 0 0 2px #00ffe7, 0 0 7px #00ffe7;
  margin-bottom: 0.1rem;
}

.popup-text-container small {
  font-size: 0.8rem;
  color: #ccc;
  align-items: right;
  text-align: right;
  float: right;
  margin-top: 0.3rem;
  margin-right: 0.5rem;
}


@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}



.popup-text-container {
  border: 3px solid #1b1b1b;
  background-color: #2b2b2b;
  border-radius: 10px;
  margin: 10px 0;
  cursor: pointer;
  padding: 10px;
  z-index: 22;
  transition: all 0.3s ease-out;
}


#inbox-icon-wrapper {
  position: relative;
  display: inline-block;
}

.inbox-badge {
  background-color: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 3px;
  line-height: 1;
  position: absolute;
  top: -7px;
  right: 40%;
  display: none;
  box-shadow: 0 0 5px red;
  text-align: center;

  border-radius: 999px;
  min-width: 15px;
  height: 15px;

  justify-content: center;
  align-items: center;
}



/*.inbox-badge {
  background-color: red;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  padding: 2px 2px;
  position: absolute;
  top: -7px;
  right: 40%;
  display: none;
  box-shadow: 0 0 5px #ff0000;
}
*/


.inbox-badge.show {
  display: flex;
}

.light-mode {
  background: radial-gradient(circle at 20% 20%, #f8f8f8, #e7e7e7);
  color: #000000;
  transition: all 0.5s ease-in-out;
}

.light-mode .side-bar {
  background: rgba(235, 235, 235, 0.8);
  border-color: #ccc;
}

.light-mode .top-bar,
.light-mode .top-left-bar {
  background: rgba(232, 232, 232, 0.8);
  border-color: #ccc;
}

.light-mode .main-container {
  color: #000000;
}

.light-mode .admin-list li,
.light-mode .menu-list li,
.light-mode .else-list li {
  background: rgba(255, 255, 255, 0.6);
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode a {
  color: #2f00ff;
}

.light-mode a:hover {
  color: #00ff84;
}

.light-mode .top-bar h1,
.light-mode .side-bar h1 {
  color: #2f00ff;
}

.light-mode h1,
.light-mode h2 {
  color: #2f00ff;
}

.light-mode .popuptext {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.light-mode .popuptext.show {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.light-mode .popuptext .popup-text-container {
  background-color: #f0f0f0;
  border: 3px solid #ccc;
  color: #000;
  transition: all 0.3s ease-out;
}

.light-mode .popuptext .popup-text-container:hover {
  background-color: #e0e0e0;
  border: 3px solid #bbb;
  color: #000;
  transition: all 0.3s ease;
  cursor: pointer;
}

.light-mode .else-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #000;
  transition: all 0.3s ease;
}

.arrow {
  color: #00ffff;
  transition: all 0.3s ease-out;
}

.arrow:hover {
  transition: all 0.3s ease-in;
  color: #ff00ff !important;
}

.popup-text-container {
  display: block;
  padding: 10px;
  margin: 5px 0;
  background-color: #3c3c3c;
  border-radius: 10px;
  color: cyan;
  text-decoration: none;
  transition: background 0.3s;
}

.popup-text-container:hover {
  background-color: #333;
  cursor: pointer;
}

.message-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-box-link {
  display: block;
  background-color: #222;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: cyan;
  margin: 10px 0;
  transition: background-color 0.3s;
}

.message-box-link:hover {
  background-color: #333;
  cursor: pointer;
}

.message-box-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-box-inner .username {
  font-size: 1.1em;
  font-weight: bold;
}

.message-box-inner .time {
  font-size: 0.9em;
  color: #ccc;
}

@keyframes flyInBottom {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



@keyframes flyInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flyInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flyInTop {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fly-in-bottom {
  animation: flyInBottom 1s ease-out;
}

.fly-in-left {
  animation: flyInLeft 0.5s ease-out;
}

.fly-in-right {
  animation: flyInRight 0.5s ease-out;
}

.fly-in-top {
  animation: flyInTop 0.5s ease-out;
}

.scroll-area {
  overflow-y: scroll;
  /* Scrollen ist aktiv */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE & Edge */

  /* Optional: für Layout */
  max-height: 80vh;
}

.scroll-area::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

a.logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
  height: auto;
  line-height: 1;
}

.user-pic {
  width: 15em;
  height: 15em;
  border-radius: 50%;
  margin-right: 0.5em;
  border: 2px solid #00ffe7;
  box-shadow: 0 0 10px #00ffe7, 0 0 20px #00ffe7;
  object-fit: cover;
}

.profile-pic-wrapper {
  position: relative;
  display: inline-block;
}

.edit-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  color: #00ffe7;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px;
  border-radius: 50%;
  transition: 0.3s;
}

.edit-icon:hover {
  color: #00ffe7;
  text-shadow: 0 0 10px #00ffe7;
  box-shadow: 0 0 10px #00ffe7;
}

#upload-menu {
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.delete-icon {
  position: absolute;
  bottom: 5px;
  right: -25px;
  color: #ff3c3c;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px;
  border-radius: 50%;
  transition: 0.3s;
}

.delete-icon:hover {
  color: #ff0000;
  text-shadow: 0 0 10px #ff0000;
  box-shadow: 0 0 10px #ff3c3c;
}

.typewriter {
  display: inline-block;
  border-right: 2px solid #00ffcc;
  white-space: nowrap;
  overflow: hidden;
  animation: blink-caret 0.7s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #00ffcc }
}

.dev-badge {
  background-color: #ff2323;
  color: white;
  font-size: 0.6em;
  padding: 2px 5px;
  margin-left: 5px;
  border-radius: 3px;
  font-weight: bold;
}

/* === FOOTER === */

.footer-container a {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Optional Neon Glow Border === */
.glow-border {
  border: 2px solid #00ffe7;
  box-shadow: 0 0 15px #00ffe7;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #00ffe7;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8); /* optional: improves readability */
  padding: 0.7rem 0;
  z-index: 999;
  box-shadow: 0 -2px 10px #00ffe7;
}


.footer-container a {
  margin: 0 10px;
  margin: 0 15px;
  color: #00ffe7;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.footer-container a:hover {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
}