/*
 * DJ-Backend Custom CSS
 * Diese Datei enthält alle benutzerdefinierten Stile für das DJ-Backend
 */

/* Allgemeine Formatierung und Layout */
body {
  padding-top: 70px; /* Erhöht für mehr Platz unter der Navbar */
  background-color: #f8f9fa; /* bg-light Klasse */
  min-height: 100vh; /* Stellt sicher, dass der Body die gesamte Höhe einnimmt */
  padding-bottom: 100px; /* Erhöht von 70px für mehr Abstand zum Footer */
  margin-bottom: 0; /* Entferne das margin-bottom, wenn es Konflikte verursacht */
}

/* Container für Login-Seite */
.login-container {
  padding-top: 50px;
  text-align: center;
}

.login-logo {
  max-width: 250px;
  margin-bottom: 1.5rem;
}

.login-card {
  max-width: 400px;
  margin: auto;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.login-footer {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Einheitliches Button-Design */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Primäre Buttons */
.btn-primary {
  background-color: #B33BED;
  border-color: #B33BED;
  color: white;
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: #A030D0;
  border-color: #A030D0;
  color: white;
}

/* Sekundäre Buttons */
.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn-secondary:hover, 
.btn-secondary:focus {
  background-color: #5a6268;
  border-color: #5a6268;
  color: white;
}

/* Info-Buttons */
.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
  color: white;
}

.btn-info:hover, 
.btn-info:focus {
  background-color: #138496;
  border-color: #138496;
  color: white;
}

/* Erfolg-Buttons */
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.btn-success:hover, 
.btn-success:focus {
  background-color: #218838;
  border-color: #218838;
  color: white;
}

/* Warn-Buttons */
.btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.btn-warning:hover, 
.btn-warning:focus {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #212529;
}

/* Gefahr-Buttons */
.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-danger:hover, 
.btn-danger:focus {
  background-color: #c82333;
  border-color: #c82333;
  color: white;
}

/* Outline-Buttons */
.btn-outline-primary {
  color: #B33BED;
  border-color: #B33BED;
  background-color: transparent;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
  color: white;
  background-color: #B33BED;
  border-color: #B33BED;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
}

.btn-outline-secondary:hover, 
.btn-outline-secondary:focus {
  color: white;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
  background-color: transparent;
}

.btn-outline-danger:hover, 
.btn-outline-danger:focus {
  color: white;
  background-color: #dc3545;
  border-color: #dc3545;
}

/* Button-Größen */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 3px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 5px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Button mit Icon */
.btn i, 
.btn svg,
.btn img, 
.btn .icon {
  margin-right: 0.5rem;
  vertical-align: middle;
  font-style: normal;
}

/* Kleinere Anpassungen für kleine Buttons */
.btn-sm i,
.btn-sm .icon {
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

/* Größere Icons für größere Buttons */
.btn-lg i,
.btn-lg .icon {
  font-size: 1.2rem;
  margin-right: 0.7rem;
}

/* Custom button (Modal) */
.btn-custom {
  background-color: #B33BED;
  border-color: #B33BED;
  color: white;
}

.btn-custom:hover,
.btn-custom:focus {
  background-color: #A030D0;
  border-color: #A030D0;
  color: white;
}

/* Formulare und Validierung */
.form-error {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  display: none;
}

/* Badges und Indikatoren */
.badge-refresh {
  margin-left: 0.5rem;
}

/* Karten und Container */
.content-card {
  margin-bottom: 1.5rem;
}

.card-header h3 {
  margin-bottom: 0;
}

/* Box-Shadow Utilities */
.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

/* Textformatierung */
.lh-125 { line-height: 1.25; }
.border-gray { border-color: #e5e5e5; }
.text-gray-dark { color: #343a40; }

/* Song-Liste / Medien-Elemente */
.media-item {
  padding-top: 1rem;
}

.media-body {
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.25;
  border-bottom: 1px solid #e5e5e5;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .login-card {
    margin: 0 1rem;
  }
  
  .content-card {
    margin: 0 0 1rem 0;
  }
  
  .content-wrapper {
    padding-bottom: 5rem;
  }
  
  .my-3.p-3.bg-white.rounded.box-shadow {
    margin-bottom: 4rem;
  }
  
  body {
    padding-bottom: 120px;
  }
}

/* Footer */
.footer {
  padding: 1rem 0;
  margin-top: 0;
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  position: relative;
  width: 100%;
  clear: both;
  height: 60px;
}

/* Minimaler Inhalt sollte den Footer trotzdem am unteren Seitenrand platzieren */
html {
  position: relative;
  min-height: 100%;
}

/* AJAX-Refresh Indikator */
#refresh-indicator {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  background-color: #5cb85c;
  color: white;
  transition: background-color 0.3s ease;
}

#refresh-indicator.loading {
  background-color: #f0ad4e;
}

/* Modal Styling */
.modal-footer .btn-custom {
  background-color: #B33BED;
  color: white;
  border: none;
}

/* Karte Seite */
#map {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 60vh !important; /* Wichtig um sicherzustellen, dass die Höhe überschrieben wird */
  max-height: 400px;
  width: 100% !important;
  margin-top: 1rem;
  z-index: 1; /* Um Konflikte mit der Navbar zu vermeiden */
  position: relative !important; /* Stellt sicher, dass z-index wirkt */
  display: block !important; /* Stellt sicher, dass die Karte sichtbar ist */
}

/* Verbesserte Darstellung für Leaflet-Elemente */
.leaflet-container {
  font-family: inherit !important;
  z-index: 1 !important;
}

.leaflet-control-container {
  position: absolute;
  z-index: 10 !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Erhöht die Spezifität für dynamicContent um Konflikte zu vermeiden */
#dynamicContent #map {
  min-height: 350px !important;
}

/* Container für die Karte - stellt sicher, dass sie genug Platz hat */
.container #map {
  margin-bottom: 20px;
}

/* Karte Nachricht Styling */
#msg {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
}

/* Charts Seite */
.list-group-item {
  border-left: none;
  border-right: none;
  transition: background-color 0.2s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.badge-primary {
  background-color: #B33BED;
}

.badge-primary.badge-pill {
  padding: 8px 12px;
  font-weight: 500;
}

/* Success / Error Messages */
.success-message {
  color: #28a745;
  font-weight: bold;
}

.error-message {
  color: #dc3545;
  font-weight: bold;
}

/* Navbar Enhancements */
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-link {
  position: relative;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #B33BED;
  transform: scaleX(1);
}

.dropdown-item:active, 
.dropdown-item:focus {
  background-color: #B33BED;
}

/* Buttons für verschiedene Aktionen */
.btn-location {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  margin: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ======= ERWEITERTE NAVBAR STYLES ======= */
/* Hauptnavigation */
.dj-navbar {
  background: linear-gradient(90deg, #8E2DE2 0%, #4A00E0 100%);
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Logo-Bereich */
.dj-navbar .navbar-brand {
  font-size: 1.25rem;
  padding: 0.25rem 1rem;
  background-color: rgba(0,0,0,0.2);
  border-radius: 50px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.dj-navbar .navbar-brand:hover {
  background-color: rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.dj-navbar .navbar-brand img {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* Navigation Items */
.dj-navbar .nav-item {
  margin: 0 2px;
}

.dj-navbar .nav-link {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.dj-navbar .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.dj-navbar .nav-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

.dj-navbar .nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.dj-navbar .nav-item.active .nav-link {
  color: #fff;
  background-color: rgba(255,255,255,0.2);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dj-navbar .nav-item.active .nav-link::before {
  transform: scaleX(1);
  background-color: #fff;
  height: 3px;
}

/* Dropdown Menüs */
.dj-navbar .dropdown-menu {
  margin-top: 0.5rem;
  border: none;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 0.75rem 0;
  min-width: 15rem;
  background-color: #fff;
  animation: dropdown-animation 0.3s ease;
}

@keyframes dropdown-animation {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dj-navbar .dropdown-header {
  color: #8E2DE2;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dj-navbar .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(0,0,0,0.05);
}

.dj-navbar .dropdown-item {
  padding: 0.75rem 1.5rem;
  color: #444;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dj-navbar .dropdown-item i, 
.dj-navbar .dropdown-item .emoji {
  margin-right: 8px;
  width: 20px;
  text-align: center;
  color: #8E2DE2;
}

.dj-navbar .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #444;
}

.dj-navbar .dropdown-item:active,
.dj-navbar .dropdown-item:focus {
  background-color: #8E2DE2;
  color: white;
}

/* Event Badge */
.dj-navbar .badge-event {
  background: linear-gradient(45deg, #FF5E62, #FF9966);
  color: white;
  font-weight: 500;
  border-radius: 30px;
  padding: 0.4em 0.8em;
  margin-left: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 94, 98, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 94, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 94, 98, 0); }
}

/* Action Buttons */
.dj-navbar .navbar-action-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.dj-navbar .navbar-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.dj-navbar .navbar-action-btn i {
  margin-right: 6px;
  font-size: 1.1rem;
}

.dj-navbar .btn-danger {
  background: linear-gradient(45deg, #FF416C, #FF4B2B);
  border: none;
}

.dj-navbar .btn-light {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border: none;
  color: #333;
}

/* Mobile Anpassungen */
@media (max-width: 991px) {
  .dj-navbar .navbar-collapse {
    background-color: rgba(0,0,0,0.95);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .dj-navbar .nav-item {
    margin: 0.25rem 0;
  }
  
  .dj-navbar .dropdown-menu {
    background-color: rgba(255,255,255,0.05);
    border-radius: 5px;
    box-shadow: none;
    padding: 0.5rem 0;
    margin-top: 0;
  }
  
  .dj-navbar .dropdown-item {
    color: rgba(255,255,255,0.7);
  }
  
  .dj-navbar .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
  }
  
  .dj-navbar .dropdown-header {
    color: white;
  }
  
  .dj-navbar .navbar-action-btn {
    margin: 0.25rem 0;
    width: 100%;
  }
  
  .dj-navbar .badge-event {
    display: inline-block;
    margin-top: 0.5rem;
  }
}

/* Material Design Ripple-Effekt für Clicks */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10,10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0,0);
  opacity: .3;
  transition: 0s;
}

/* Verbesserte Scroll-Steuerung */
html, body {
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

#dynamicContent {
  width: 100%;
  margin-bottom: 2rem;
  overflow: visible;
}

/* Optimierte Abstände für dynamicContent */
#dynamicContent {
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

#dynamicContent:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Verbesserte Abstände für Content-Container */
.bg-white.rounded.box-shadow {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Im Falle dass dynamicContent ausgeblendet ist, zusätzlichen Abstand für ersten Content hinzufügen */
#dynamicContent[style*="display: none"] + .bg-white.rounded.box-shadow {
  margin-top: 2rem;
}

/* Sicherstellen, dass der Aktualisieren-Button genug Abstand zum Footer hat */
#manualRefresh {
  margin-bottom: 2rem; /* Erhöht von 1.5rem */
}

/* Container für die Songwünsche mit genug Abstand zum Footer */
.my-3.p-3.bg-white.rounded.box-shadow {
  margin-bottom: 3.5rem; /* Erhöht von 2rem */
}

/* Wrapper für den Hauptinhalt */
.content-wrapper {
  min-height: calc(100vh - 160px); /* Erhöht von 140px */
  padding-bottom: 3.5rem; /* Erhöht von 2rem */
  position: relative;
}

/* Button mit Icon */
.btn i, 
.btn svg,
.btn img, 
.btn .icon {
  margin-right: 0.5rem;
  vertical-align: middle;
  font-style: normal;
}

/* Kleinere Anpassungen für kleine Buttons */
.btn-sm i,
.btn-sm .icon {
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

/* Größere Icons für größere Buttons */
.btn-lg i,
.btn-lg .icon {
  font-size: 1.2rem;
  margin-right: 0.7rem;
} 