/* ============================================ */
/* DARK MODE ERZWINGEN - gesamte App */
/* ============================================ */

body,
.v-application {
  background: url("/komga-custom/background.png") no-repeat center center fixed !important;
  background-size: cover !important;
  color: #e2e8f0 !important;
}

.v-application.theme--light {
  background: url("/komga-custom/background.png") no-repeat center center fixed !important;
  background-size: cover !important;
}

/* Dark Mode Farben für die gesamte App erzwingen */
.v-application.theme--light .v-card {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

.v-application.theme--light .v-list {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
}

.v-application.theme--light .v-navigation-drawer {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

.v-application.theme--light .v-app-bar,
.v-application.theme--light .v-toolbar {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

.v-application.theme--light {
  color: #e2e8f0 !important;
}

/* ============================================ */
/* PURE CSS FÜR LOGIN SEITE - BASIEREND AUF DEINEM HTML */
/* ============================================ */

/* Hintergrund mit Verlauf */
[data-v-bf609cfc].ma-3 {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 16px !important;
}

/* Hintergrund-Overlay */
[data-v-bf609cfc].ma-3::before {
  content: '' !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: url("/komga-custom/background.png") no-repeat center center fixed !important; 
  background-size: cover !important;
  z-index: -1 !important;
}

/* Hauptcontainer - die Login-Karte */
[data-v-bf609cfc] .container {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 32px !important;
  padding: 40px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: 100% !important;
  animation: fadeInUp 0.5s ease-out !important;
}

/* ============================================ */
/* LOGO - KOMPLETT AUSBLENDEN */
/* ============================================ */

[data-v-bf609cfc] .v-image,
[data-v-bf609cfc] .row.ma-3.align-center.justify-center {
  display: none !important;
}

/* ============================================ */
/* FORMULAR STYLING */
/* ============================================ */

[data-v-bf609cfc] form {
  width: 100% !important;
}

[data-v-bf609cfc] form .row {
  margin-bottom: 24px !important;
  width: 100% !important;
}

[data-v-bf609cfc] form .col {
  padding: 0 !important;
  width: 100% !important;
}

/* ============================================ */
/* INPUT FELDER */
/* ============================================ */

[data-v-bf609cfc] .v-input.v-text-field {
  width: 100% !important;
}

/* Vuetify Underline-Pseudo-Elemente deaktivieren */
[data-v-bf609cfc] .v-input__slot::before,
[data-v-bf609cfc] .v-input__slot::after {
  display: none !important;
}

/* Input Slot */
[data-v-bf609cfc] .v-input__slot {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  min-height: 64px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  box-shadow: none !important;
}

[data-v-bf609cfc] .v-input__slot:hover {
  border-color: #3b82f6 !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

/* Label Styling */
[data-v-bf609cfc] .v-label {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 16px !important;
  margin-top: 8px !important;
  transition: all 0.2s ease !important;
  order: 1 !important;
}

/* Input Feld */
[data-v-bf609cfc] input {
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-size: 16px !important;
  padding: 0 16px 12px 16px !important;
  width: 100% !important;
  order: 2 !important;
}

[data-v-bf609cfc] input::placeholder {
  color: rgba(148, 163, 184, 0.5) !important;
  font-size: 14px !important;
}

/* Autofill Fix */
[data-v-bf609cfc] input:-webkit-autofill,
[data-v-bf609cfc] input:-webkit-autofill:hover,
[data-v-bf609cfc] input:-webkit-autofill:focus {
  -webkit-text-fill-color: white !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(15, 23, 42, 0.9) inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ============================================ */
/* CHECKBOX */
/* ============================================ */

[data-v-bf609cfc] .v-input--checkbox {
  display: flex !important;
  align-items: center !important;
  margin: 8px 0 !important;
}

[data-v-bf609cfc] .v-input--checkbox .v-label {
  color: #e2e8f0 !important;
  font-size: 15px !important;
  padding-left: 8px !important;
  cursor: pointer !important;
}

/* ============================================ */
/* ANMELDEN BUTTON */
/* ============================================ */

[data-v-bf609cfc] .col.col-auto {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

[data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary {
  background: linear-gradient(145deg, #2563eb, #1d4ed8) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 0 32px !important;
  min-width: 200px !important;
  height: 56px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

[data-v-bf609cfc] .v-btn__content {
  color: white !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  z-index: 1 !important;
  position: relative !important;
}

[data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
  background: linear-gradient(145deg, #1d4ed8, #1e40af) !important;
}

[data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary:active {
  transform: translateY(0) !important;
}

[data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translate(-50%, -50%) !important;
  transition: width 0.3s ease, height 0.3s ease !important;
}

[data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary:active::after {
  width: 200px !important;
  height: 200px !important;
}

/* ============================================ */
/* TRENNLINIE */
/* ============================================ */

[data-v-bf609cfc] .v-divider {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin: 32px 0 !important;
  border-width: 1px 0 0 0 !important;
}

/* ============================================ */
/* SPRACHE & DESIGN - AUSGEBLENDET */
/* ============================================ */

[data-v-bf609cfc] .row.justify-center {
  display: none !important;
}

/* ============================================ */
/* FEHLERMELDUNGEN */
/* ============================================ */

[data-v-bf609cfc] .v-input.error--text .v-input__slot {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

[data-v-bf609cfc] .v-messages__message {
  color: #ef4444 !important;
  padding: 4px 16px 0 !important;
  font-size: 13px !important;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 600px) {
  [data-v-bf609cfc] .container {
    padding: 24px !important;
    margin: 16px !important;
  }

  [data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary {
    min-width: 160px !important;
    height: 48px !important;
  }

  [data-v-bf609cfc] .v-input__slot {
    min-height: 56px !important;
  }
}

@media (max-width: 400px) {
  [data-v-bf609cfc] .container {
    padding: 16px !important;
  }

  [data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary {
    min-width: 140px !important;
    width: 100% !important;
  }
}

/* ============================================ */
/* ACCESSIBILITY */
/* ============================================ */

[data-v-bf609cfc] input:focus-visible {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

[data-v-bf609cfc] .v-btn:focus-visible {
  outline: 2px solid white !important;
  outline-offset: 2px !important;
}

/* ============================================ */
/* ANIMATIONEN */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================ */
/* INPUT FELDER - FIXES */
/* ============================================ */

/* v-text-field__slot ist der eigentliche Wrapper */
[data-v-bf609cfc] .v-text-field__slot {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 8px 16px !important;
  min-height: 64px !important;
}

/* Label: inline style position:absolute überschreiben */
[data-v-bf609cfc] .v-text-field .v-label {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  padding: 0 !important;
  margin: 0 0 4px 0 !important;
  font-size: 13px !important;
  transform: none !important;
}

/* Input direkt darunter */
[data-v-bf609cfc] .v-text-field input {
  padding: 0 !important;
  height: auto !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  max-height: none !important;
}

/* Konsistente Breite für alle Input-Container */
[data-v-bf609cfc] .v-input.v-text-field,
[data-v-bf609cfc] .v-input__control,
[data-v-bf609cfc] .v-input__slot {
  width: 100% !important;
}

/* Details-Bereich (Fehlermeldungen) */
[data-v-bf609cfc] .v-text-field__details {
  padding: 4px 16px 0 !important;
}

/* ============================================ */
/* CHECKBOX - Nur Icon, kein Hintergrund */
/* ============================================ */

[data-v-bf609cfc] .v-input--checkbox .v-input__slot {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  padding: 0 !important;
}

[data-v-bf609cfc] .v-input--checkbox .v-input__slot:hover {
  background: transparent !important;
  border: none !important;
}

/* ============================================ */
/* CHECKBOX - Zentriert */
/* ============================================ */

[data-v-bf609cfc] .v-input--checkbox .v-input__control {
  display: flex !important;
  justify-content: center !important;
}

[data-v-bf609cfc] .v-input--checkbox .v-input__slot {
  justify-content: center !important;
}

/* ============================================ */
/* HAUPT-APP - Glasmorphism nach Login */
/* ============================================ */

/* App-Bar oben */
header.v-app-bar {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* Seitenleiste */
nav.v-navigation-drawer {
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Trennlinien in der Sidebar */
nav.v-navigation-drawer .v-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Hauptinhalt transparent damit Hintergrundbild durchscheint */
.v-main,
.v-main__wrap,
.container--fluid {
  background: transparent !important;
}

/* "Komga" Text in Sidebar ersetzen */
nav .v-list-item__title.title {
  font-size: 0 !important;
}
nav .v-list-item__title.title::after {
  content: "Bibliothek";
  font-size: 20px !important;
  color: #e2e8f0;
}

/* Komga Logo in Sidebar ausblenden */
nav .v-avatar .v-image {
  display: none !important;
}

/* Versions-Nummer ausblenden */
nav .v-navigation-drawer__append {
  display: none !important;
}

/* Menü-Einträge Hover-Effekt */
nav .v-list-item:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  border-radius: 8px !important;
}

nav .v-list-item--active {
  background: rgba(59, 130, 246, 0.2) !important;
  border-radius: 8px !important;
}

/* Buchkarten leicht transparent */
.item-card.v-card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.item-card.v-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* ============================================ */
/* STÄRKER ABGERUNDETE ECKEN - ALLE ELEMENTE */
/* ============================================ */

/* Login-Karte */
[data-v-bf609cfc] .container {
  border-radius: 48px !important;
}

/* Buchkarten */
.item-card.v-card {
  border-radius: 20px !important;
}

/* Seitenleiste */
nav.v-navigation-drawer {
  border-radius: 0 24px 24px 0 !important;
}

/* App-Bar */
header.v-app-bar {
  border-radius: 0 0 24px 24px !important;
}

/* Menü-Einträge */
nav .v-list-item {
  border-radius: 12px !important;
}

/* Anmelden Button */
[data-v-bf609cfc] .v-btn.v-btn--is-elevated.primary {
  border-radius: 24px !important;
}

/* Input-Felder */
[data-v-bf609cfc] .v-input__slot {
  border-radius: 20px !important;
}

/* ============================================ */
/* STICKY-BAR (Fixierte Bibliotheken Toolbar) */
/* ============================================ */

header.sticky-bar {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

/* ============================================ */
/* LIGHT MODE – Heller Glassmorphism */
/* ============================================ */

.v-application.theme--light header.v-app-bar {
  background: rgba(255, 255, 255, 0.55) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.v-application.theme--light nav.v-navigation-drawer {
  background: rgba(255, 255, 255, 0.6) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.v-application.theme--light nav.v-navigation-drawer .v-divider {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.v-application.theme--light nav.v-navigation-drawer .v-list,
.v-application.theme--light nav.v-navigation-drawer .v-sheet {
  background: transparent !important;
  background-color: transparent !important;
}

.v-application.theme--light header.sticky-bar {
  background: rgba(255, 255, 255, 0.55) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.v-application.theme--light .item-card.v-card {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.v-application.theme--light .item-card.v-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.v-application.theme--light .container--fluid > .text-center {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.v-application.theme--light nav .v-list-item__title.title::after {
  color: #1e293b;
}

.v-application.theme--light nav .v-list-item:hover {
  background: rgba(37, 99, 235, 0.1) !important;
}

.v-application.theme--light nav .v-list-item--active {
  background: rgba(37, 99, 235, 0.15) !important;
}

/* ============================================ */
/* ALPHABET-LEISTE – Hintergrundkachel */
/* ============================================ */

.container--fluid > .text-center {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  padding: 8px 4px !important;
  margin: 0 auto 12px auto !important;
  display: table !important;
  width: auto !important;
}
