.modern-topbar {
  position: static !important; /* Fixed yerine static */
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 10 !important; /* Çok düşük z-index */
  background: var(--topbar-bg, #1e40af) !important;
  color: var(--topbar-color, #ffffff) !important;
  height: var(--topbar-height, 40px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  /* Animasyonları kaldır */
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modern-topbar-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1200px !important;
  padding: 0 20px !important;
  position: relative !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.modern-topbar-messages {
  flex: 1 !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--topbar-height, 40px) !important;
}

.topbar-message {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.topbar-message.active {
  opacity: 1 !important;
  transform: translate(-50%, -50%) translateY(0) !important;
}

.topbar-message.fade-out {
  opacity: 0 !important;
  transform: translate(-50%, -50%) translateY(-20px) !important;
}

.topbar-close {
  background: none !important;
  border: none !important;
  color: inherit !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 0 10px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  border-radius: 4px !important;
  margin-left: 20px !important;
  min-width: 30px !important;
}

.topbar-close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.1) !important;
}

.topbar-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.3) !important;
  outline-offset: 2px !important;
}

/* Mobil responsive */
@media (max-width: 768px) {
  .modern-topbar {
    font-size: 12px !important;
    height: 35px !important;
  }

  .modern-topbar-content {
    padding: 0 15px !important;
  }

  .topbar-message {
    font-size: 12px !important;
    max-width: calc(100vw - 80px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .topbar-close {
    font-size: 18px !important;
    margin-left: 10px !important;
  }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
  .modern-topbar {
    background: var(--topbar-bg, #1f2937);
    color: var(--topbar-color, #f9fafb);
  }
}

/* Animasyon efektleri */
.modern-topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Kapatma animasyonu */
.modern-topbar.closing {
  animation: slideUp 0.5s ease-in forwards !important;
}

@keyframes slideUp {
  from {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  to {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
  }
}

/* Body margin adjustment - KALDIR */
body {
  margin-top: 0 !important; /* Margin'i sıfırla */
}

/* Admin bar ayarlarını da kaldır */
body.admin-bar .modern-topbar {
  /* Bu kuralları kaldır */
}

body.admin-bar {
  /* Bu kuralları kaldır */
}

/* Tema uyumluluğu */
.modern-topbar * {
  box-sizing: border-box !important;
}

/* Z-index sorunlarını önle */
.modern-topbar {
  z-index: 10 !important; /* Çok düşük değer */
}
