/* =========================================
   PXL Disign – Base Styles (global)
   ========================================= */

/* Farben & Grundwerte */
:root{
  /* Dark Theme */
  --bg: #050713;
  --bg-soft: #0b0f1e;

  /* Glas-Panels */
  --card: rgba(15, 18, 32, 0.82);
  --card-strong: rgba(12, 16, 30, 0.94);
  --card-border: rgba(255,255,255,0.06);
  --card-blur: 18px;

  --muted: #8a8f98;
  --txt:   #e9ecf1;
  --txt-soft: #cfd3dd;

  --acc-primary: #2CCFB4;   /* deine Firmenfarbe */
  --acc-secondary: #FF4FD8; /* Electric Purple – kann später auch 7C5CFF FF4FD8 werden */
  --danger: #E24B4B;

  --bd: #282c36;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px rgba(44,207,180,0.2),
                 0 14px 30px rgba(0,0,0,0.7);

  --topbar-height: 60px;
}

/* ===== Grund-Reset ===== */

*,
*::before,
*::after{
  box-sizing:border-box;
}
/* ===== Globale Form-Styles: Inputs & Select ===== */

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="time"],
input[type="search"],
select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(6,8,20,0.96);
  color: var(--txt);
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
  box-shadow: 0 0 0 0 transparent;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background-color .15s ease;
}

/* Fokus-Zustand */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px rgba(44,207,180,0.45);
  background: rgba(10,14,28,0.98);
}

/* Placeholder etwas softer */
input::placeholder {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
}

/* Disabled-Zustand */
input:disabled,
select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

html,body{
  margin:0;
  padding:0;
  height:100%;
  background:radial-gradient(circle at top, #151a33 0, #050713 52%, #02030a 100%);
  color:var(--txt);
  font:14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* Links */

a{
  color:var(--acc-primary);
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

/* ===== Globale Layout-Helfer ===== */

.wrap{
  max-width:1400px;
  width:100%;
  margin:28px auto 60px auto;
  padding:0 24px;
}
@media (max-width:900px){
  .wrap{
    margin:16px auto 60px auto;
    padding:0 16px;
  }
}

/* Zentriert in der Seite (Login / Install etc.) */
.page-center{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}

/* ===== Glaspanel / Card ===== */

.card{
  background:var(--card);
  border-radius:var(--radius-lg);
  border:1px solid var(--card-border);
  box-shadow:var(--shadow-soft);
  padding:18px 20px;
  backdrop-filter:blur(var(--card-blur));
  -webkit-backdrop-filter:blur(var(--card-blur));
}

.card--tight{
  padding:12px 14px;
}

.card-header{
  margin-bottom:10px;
}
.card-title{
  font-size:18px;
  font-weight:600;
}
.card-sub{
  font-size:13px;
  color:var(--muted);
}

/* ===== Formular-Felder ===== */

.field{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
}

.field label{
  font-size:13px;
  color:var(--muted);
}

.field input,
.field select,
.field textarea{
  background:rgba(2,4,12,0.9);
  border-radius:var(--radius-md);
  border:1px solid var(--bd);
  padding:7px 10px;
  font-size:13px;
  color:var(--txt);
  outline:none;
  transition:border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--acc-primary);
  box-shadow:0 0 0 1px rgba(44,207,180,0.4);
  background:rgba(5,10,22,0.96);
}

/* kleine Info-Texte */
.small{
  font-size:12px;
  color:var(--muted);
}

/* ===== Buttons ===== */

button{
  font-family:inherit;
}

.btn{
  border-radius:var(--radius-pill);
  padding:0 18px;
  height:38px;
  line-height:38px;
  font-size:13px;
  font-weight:500;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:linear-gradient(135deg, var(--acc-primary), #3ff0cc);
  color:#001;
  box-shadow:var(--shadow-glow);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
  margin-bottom: 12px!important;
  margin-top: 12px!important;
  margin-right: 12px;
}

.btn:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}

.btn:active{
  transform:translateY(0);
  box-shadow:0 6px 20px rgba(0,0,0,0.7);
}

/* sekundäre Buttons */
.btn-secondary{
  background:rgba(18,22,40,0.95);
  color:var(--txt);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow:0 10px 26px rgba(0,0,0,0.65);
}

/* "Icon-only" Buttons, z. B. Topbar-Icons */
.btn-ghost{
  background:transparent;
  border-radius:999px;
  border:0px solid rgba(255,255,255,0.08);
  color:var(--txt-soft);
  padding:0;
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.btn-ghost:hover{
  background:rgba(255,255,255,0.06);
  filter:brightness(1.05);
  transform:translateY(-1px);
}

/* Danger */
.btn-danger{
  background:linear-gradient(135deg, #ff5f6c, #ff3d4c);
  color:#fff;
}

/* ===== Badges & Pills ===== */

.pill,
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(4,8,18,0.9);
  font-size:12px;
  color:var(--txt-soft);
  gap:4px;
}

.badge-sched{ /* kompatibel zu bestehendem JS */
  background:rgba(4,8,18,0.9);
}

.badge-now{
  background:var(--acc-primary);
  color:#001;
  border-color:transparent;
}

.badge-next{
  border-color:var(--acc-secondary);
}

.badge-none{
  background:#14161b;
  color:#9aa3af;
  border-color:#2a2d33;
}
/* --- Playlist-Badges in der linken Spalte --- */

.mini-pl-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mini-pl-pill{
  width:100%;
  border-radius:999px;
  padding:6px 12px;
  border:none;
  background:rgba(5,8,16,0.65);
  color:var(--txt);
  font-size:13px;
  text-align:left;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition:background .15s ease, box-shadow .15s ease, transform .08s ease;
}

.mini-pl-pill span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mini-pl-pill.is-active{
  background:linear-gradient(135deg, var(--acc), #3ce7d4);
  color:#001;
  box-shadow:0 10px 24px rgba(0,0,0,.55);
  transform:translateY(-1px);
}

.mini-pl-pill.is-active::after{
  content:'●';
  font-size:10px;
}

/* Default-Playlist im Mittelbereich hervorheben */

.card.default-card{
  background:rgba(12,16,28,0.95);
  box-shadow:0 14px 40px rgba(0,0,0,.65),
             0 0 0 1px rgba(44,207,180,0.25);
}

.badge-default{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  background:rgba(44,207,180,0.16);
  color:var(--acc);
  border:1px solid rgba(44,207,180,0.7);
  margin-bottom:10px;
}

.badge-default::before{
  content:'★';
  font-size:11px;
}
/* Linke Playlist-Karte */
.playlist-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.playlist-list {
  display: flex;
}

.playlist-list-card {
  flex: 1;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(81,69,189,0.95), rgba(44,207,180,0.9));
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
}

.playlist-list-header {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}

.playlist-list-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Playlist-Pills */
.playlist-pill {
  width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(5,8,20,0.35);
  color: #e9ecf1;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease, color .15s ease;
}

.playlist-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.playlist-pill.active {
  background: rgba(44,207,180,0.95);
  color: #021012;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

/* Default-Playlist-Card im Detailbereich hervorheben */
.card.default-card {
  border: 1px solid rgba(44,207,180,0.8);
  box-shadow: 0 0 0 1px rgba(44,207,180,0.35);
  background: radial-gradient(circle at top left,
      rgba(44,207,180,0.18),
      rgba(8,10,20,0.95));
}

.badge-default {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44,207,180,0.18);
  color: #2CCFB4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

/* ===== Footer ===== */

.site-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:20px;
  text-align:center;
  color:#888;
  font-size:13px;
  padding:0 16px;
}
.site-footer a{
  color:#888;
}
.site-footer a:hover{
  color:#fff;
}
/* =========================================
   Auth / Utility Layout (Login, Reset, Install, Index)
   ========================================= */

/* Vollflächiger, ruhiger Hintergrund nur für diese Seiten */
.auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, #171a28 0, #05060b 55%);
  color: #e9ecf1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Für Seiten, die oben etwas mehr Platz brauchen (z. B. Index) */
.auth-body--top {
  align-items: flex-start;
}

/* Zentrierter Wrapper: kleine Seiten wie Login / Reset */
.auth-wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  display: flex;
  justify-content: center;
}

/* Für breitere Seiten wie index → gleiche Optik, aber mehr Breite */
.auth-wrap--wide {
  max-width: 1200px;
}

/* Glassy Card – DIE eine Card-Optik für alle diese Seiten */
.auth-card {
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(86, 220, 255, 0.15), transparent 55%),
    radial-gradient(circle at bottom right, rgba(146, 97, 255, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(16, 19, 30, 0.95), rgba(6, 8, 18, 0.96));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  padding: 26px 24px 20px;
  backdrop-filter: blur(22px) saturate(1.35);
}

/* Für index: Card darf „Dashboard-Header“-Charakter haben */
.auth-card--wide {
  padding: 28px 28px 22px;
}

/* Logo oben zentriert, wie beim Login */
.auth-card .brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-card .brand img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* Headline + Unterzeile */
.auth-card h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  text-align: center;
}

.auth-card .small,
.auth-card .hero-sub {
  margin: 0 0 18px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8a8f98;
  text-align: center;
}

/* Standard-Formular in Cards */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card label {
  display: block;
  font-size: 12px;
  color: #8a8f98;
  margin-bottom: 4px;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card input[type="number"] {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #2a2d33;
  background: #0f1013;
  color: #e9ecf1;
  padding: 0 12px;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-card input:focus {
  outline: none;
  border-color: #2CCFB4;
  box-shadow: 0 0 0 3px rgba(44, 207, 180, 0.18);
}

/* Button mittig, gleiche Optik wie im Dashboard */
.auth-card .btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 0;
  margin-top: 14px;
  background: linear-gradient(135deg, #2CCFB4, #4ee0ff);
  color: #00101a;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(18, 209, 177, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-card .btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(18, 209, 177, 0.55);
}

.auth-card .btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Links am Fuß der Card */
.auth-card .foot {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
}

.auth-card .foot a {
  color: #a8c9ff;
  text-decoration: none;
}

.auth-card .foot a:hover {
  text-decoration: underline;
}

/* Info / Fehler-Messages */
.auth-msg,
.auth-error {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}

.auth-msg {
  color: #8ad4ff;
}

.auth-error {
  color: #E24B4B;
}

/* Index-spezifische Überschrift im Card-Header */
.auth-card .hero-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
}

.auth-card .hero-header h1 {
  text-align: center;
}

.auth-card .hero-header .hero-sub {
  max-width: 720px;
}
/* === MASTER-GLASS-CARD – GANZ ANS ENDE ===================== */

.card,
.glass-card,
.glassy-card,
.app-main .card,
.side-mini-form .card,
.app-right .settings-group,
.playlist-detail-card,
.schedule-card,
.monitor-card,
.media-card,
.profile-reset-card,
.bg-settings-card,
.mini-playlist-card {
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background:
    radial-gradient(circle at top left, rgba(86, 220, 255, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(146, 97, 255, 0.20), transparent 60%),
    linear-gradient(135deg, rgba(16, 19, 30, 0.94), rgba(6, 8, 18, 0.2));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(180, 220, 255, 0.04);
  padding: 26px 24px 20px;
  backdrop-filter: blur(22px) saturate(1.35);
}
/* --- iOS Safari: Fokus-Zoom auf Formularfeldern verhindern ---------
   - greift nur auf iOS (via @supports)
   - wirkt auf alle gängigen Eingabefelder
   - setzt Font-Size & Line-Height auf min. 16px
------------------------------------------------------------------- */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
      font-size: 16px !important;
      line-height: 1.4 !important;
    }
  }
}
/* Basis: keine automatische Textvergrößerung durch Browser */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Mobile: Formularfelder so groß, dass kein Auto-Zoom mehr nötig ist */
@media (max-width: 900px) {
  input,
  select,
  textarea {
    font-size: 16px;      /* Mindestgröße gegen Auto-Zoom */
    line-height: 1.4;
  }
}


/* =========================================
   Guide Theme Overrides – dreamy light UI
   based on uploaded guide styles.css
   ========================================= */
:root{
  --bg: #f2ecff;
  --bg-soft: #fbf9ff;
  --card: #ffffff;
  --card-strong: #ffffff;
  --card-border: rgba(134,84,255,0.10);
  --card-blur: 16px;
  --muted: #7d7b95;
  --txt: #242438;
  --txt-soft: #5f5a76;
  --acc-primary: #8654ff;
  --acc-secondary: #42cbd5;
  --acc: #42cbd5;
  --acc-warm: #ff926c;
  --acc-sun: #ffdf91;
  --danger: #ff926c;
  --bd: #ece7fa;
  --line: #ece7fa;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 35px rgba(85,54,173,0.08);
  --shadow-glow: 0 14px 30px rgba(66,203,213,0.18);
  --topbar-height: 68px;
}

html,body{
  background:
    radial-gradient(circle at 0% 0%, rgba(255,223,145,0.32), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(66,203,213,0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255,146,108,0.12), transparent 28%),
    linear-gradient(180deg, #efe7ff 0%, #f7f3ff 40%, #f8f7fc 100%);
  color:var(--txt);
}

a{
  color:var(--acc-primary);
}

a:hover{
  color:#6b39f2;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="time"],
input[type="search"],
input[type="file"],
select,
textarea,
.field input,
.field select,
.field textarea{
  border:1px solid var(--line) !important;
  background:#fff !important;
  color:var(--txt) !important;
  border-radius:14px !important;
  box-shadow:none !important;
}

input::placeholder,
textarea::placeholder{
  color:#a7a2ba;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(134,84,255,0.34) !important;
  box-shadow: 0 0 0 4px rgba(134,84,255,0.08) !important;
  background:#fff !important;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,248,255,0.98));
  border:1px solid rgba(134,84,255,0.10);
  box-shadow:var(--shadow-soft);
}

.field label,
label,
.small,
.card-sub{
  color:var(--muted);
}

.btn{
  background:linear-gradient(135deg, #42cbd5, #64d9e2) !important;
  color:#0c2124 !important;
  box-shadow:0 14px 28px rgba(66,203,213,0.20) !important;
  border:0 !important;
  margin-bottom:0 !important;
  margin-top:0 !important;
}

.btn:hover{
  filter:brightness(1.02);
  box-shadow:0 18px 30px rgba(66,203,213,0.24) !important;
}

.btn-secondary{
  background:linear-gradient(135deg, #8654ff, #9f77ff) !important;
  color:#ffffff !important;
  border:0 !important;
  box-shadow:0 14px 28px rgba(134,84,255,0.22) !important;
}

.btn-ghost{
  background:#f7f2ff !important;
  color:#8654ff !important;
  border:1px solid rgba(134,84,255,0.10) !important;
  box-shadow:0 10px 22px rgba(134,84,255,0.08) !important;
}

.btn-ghost:hover{
  background:#fff !important;
}
