* {
  box-sizing: border-box;
}
:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #00bcd4;
  --muted: #9aa4b2;
  --white: #e6eef6;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, Arial;
  background: #071a2d;
  color: var(--white);
}

 #qr-video {
      width: 100%;
      max-width: 400px;
      border-radius: 12px;
      margin:20px auto;
      background: #000;
      display:none;
    }

.wrap {
  max-width: 1000px;
  margin: 40px auto;
  padding: 24px;
}

.card {
  background: rgba(37, 5, 5, 0.03);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
}

h1 {
  margin: 0 0 24px;
  font-size: 24px;
}

.drop {
  border: 2px dashed rgba(255, 255, 255, 0.06);
  padding: 36px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wraptext {
  overflow-wrap: anywhere;     
  word-break: break-word;     
  hyphens: none;              
  white-space: normal;     
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.small {
  font-size: 13px;
}

.files {
  margin: 16px;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:25px;
}

#header #logocontainer {
  display: flex;
  justify-content: center;
  align-items:center;
  gap:20px;
}

#logout {
  cursor: pointer;
  font-size: 0.8em;
}

.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  margin: 20px 0;
}

.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6ff);
  transition: width 0.2s ease-out;
}

.file-meta {
  max-width:400px;padding:20px; background-color:rgb(255,255,255,0.1); margin:32px auto; text-align:left;
    border-radius: 12px;
  h3 {
    margin-top:0;
  }
}


button {
  background: var(--accent);
  color: black;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  filter: brightness(1.1);
}

.row {
  display: flex;
  gap: 30px;
  align-items: center;
}

.row.tab-bar {
  gap:5px;
}


.login {
  max-width: 360px;
  margin: 37px auto;
}

.input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.link {
  color: var(--accent);
}

.result {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.qr {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.btn--danger {
  background: #d33;
  color: white;
}

.btn--danger:hover {
  background: #ff4444;
}

.loader--dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 178px;
}

.loader--dots span {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0ea5e9;
  opacity: 0.75;
  animation: ld-bounce 0.9s ease-in-out infinite;
}

.loader--dots.loadersmall {
    height:28px;
    
}

.loader--dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.loader--dots span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes ld-bounce {
  0%, 80%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-30%) scale(1.05);
    opacity: 1;
  }
}

.code-input {
  width: 140px;
  text-align: center;
  letter-spacing: 6px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  padding: 10px 0;
  transition: all 0.2s ease;
  caret-color: var(--accent);
}

.code-input::placeholder {
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: normal;
}

.code-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Burger --- */
.burger-btn {
  display: none;
  font-size: 24px;
  background: none;
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 8px 12px;
}

.small-btn {
  padding: 5px 10px;
  background: transparent;
}

.tab-btn-style {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--white);
  transition: background 0.2s;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);

}


.tab-btn-style:hover {
  background: rgba(255, 255, 255, 0.15);
}

.tab-btn-style.active {
  background: var(--accent);
  color: #000;
}

.tab-bar {
  justify-content: center;
  display: flex;
}

#generateGastTokenBtn {
  margin-left:30px;
}

/* --- Mobil: Tabs ausblenden, Burger zeigen --- */
@media (max-width: 890px) {
  .burger-btn.visible {
    display: block;
    z-index: 10;
  }

  #generateGastTokenBtn {
    margin-left:0px;
    margin-top:30px;
  }


  #tabs {
    display: none;
    flex-direction: column;
    background: var(--card);
    position: absolute;
    top: 72px;
    right: 38px;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }

  #tabs.show {
    display: flex;
  }

  #tabs button {
    text-align: left;
    width: 100%;
    font-size: 16px;
    padding: 10px 12px;
  }

  .row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .wrap {
    margin: 5px;
    padding:10px;
  }
  .row.noColumn {
    flex-direction: row;
  }
  .hideMobil {
    display:none;
  }

}

.spacer-8 {
  height: 8px;
}

.m-10 {
  margin: 10px 0;
  display:block;

}

.margin-top-8 {
  margin-top: 8px;
}

.margin-top-12 {
  margin-top: 12px;
}

.margin-top-50 {
  margin-top: 50px;
}

.margin-bottom-8 {
  margin-bottom: 8px;
}

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


/* === Zusätzliche Klassen für dynamische app.js-Elemente === */

/* Kartenbereiche nach Upload/Secret-Erstellung */
.card-result {
  margin-top: 50px;
  padding: 5%;
  background: rgba(255, 255, 255, 0.02);
}


/* Copy/Delete Buttons mit Abstand */
.copy-msg {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* QR-Code Container */
.qr-wrapper {
  margin-top: 12px;
  text-align: center;
}

.qr-container {
  display: inline-block;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

/* Kurzcode-Info-Bereich */
.shortcode-box {
  margin: 16px 0;
  text-align: center;
}

.shortcode-code {
  font-size: 18px;
  font-weight: bold;
  margin-top: 4px;
  color: var(--accent);
}

/* Löschbereich für Upload-Card */
.delete-area {
  margin-top: 8px;
}

#about {
  color: rgba(255,255,255,0.3);
  font-size: 0.7em;
  margin: 40px auto;
  width:80%;
  text-align: center;
  max-width:600px;

}