/* ==============================================
   LEGACY HEADER STYLES
   These classes are deprecated - use premium-layout.css
   Variables now inherit from premium-theme.css
   ============================================== */

:root {
  /* Legacy variables - mapped to premium theme */
  --anarenk: var(--theme-primary);
  --kirmizi: var(--danger);
  --gri: var(--neutral-500);
  --siyah: var(--neutral-900);
  --krem: var(--neutral-50);

  /* Legacy Modern UI Colors */
  --primary-color: var(--theme-primary);
  --primary-light: var(--theme-primary-light);
  --primary-gradient: linear-gradient(
    135deg,
    var(--theme-primary) 0%,
    var(--theme-primary-hover) 100%
  );
  --secondary-color: var(--neutral-500);
  --success-color: var(--success);
  --danger-color: var(--danger);
  --warning-color: var(--warning);
  --info-color: var(--info);

  /* Legacy Light Theme Colors */
  --bg-light: var(--surface-app);
  --bg-white: var(--surface-base);
  --text-dark: var(--text-primary);
  --text-muted: var(--text-secondary);
  --border-light: var(--border-subtle);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
}

/* Advanced Top Header - 50px Height */
.advanced-top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--primary-gradient);
  box-shadow: 0 2px 20px var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
}

.advanced-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.advanced-sidebar-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  font-weight: 600;
}

/* Shimmer animasyonu kaldırıldı - performans için */

.advanced-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.advanced-header-logo-container {
  display: flex;
  align-items: center;
}

.advanced-header-logo {
  height: 32px;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.advanced-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.advanced-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.advanced-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Updated Staff Selection Styles */
.advanced-staff-section {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.advanced-staff-select-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  min-width: 110px;
  position: relative;
  overflow: hidden;
}

.advanced-staff-select-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.advanced-staff-select-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.advanced-staff-select-btn:hover::before {
  width: 120%;
  height: 120%;
}

.advanced-staff-select-btn:active {
  transform: translateY(0);
}

.advanced-staff-select-btn.loading {
  background: rgba(255, 255, 255, 0.3);
  cursor: wait;
}

.advanced-staff-select-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.advanced-selected-staff {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  gap: 8px;
  animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.advanced-selected-staff-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
}

.advanced-selected-staff-info i {
  font-size: 12px;
  color: #90ee90;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.advanced-selected-staff-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.advanced-clear-staff-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 0.8;
}

.advanced-clear-staff-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(220, 53, 69, 0.8);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.advanced-clear-staff-btn:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b6b;
  transform: scale(1.1);
  opacity: 1;
}

.advanced-clear-staff-btn:hover::before {
  width: 100%;
  height: 100%;
}

.advanced-action-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}

/* Pseudo-element kaldırıldı - performans için */

.advanced-action-button:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.advanced-action-button.active {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.advanced-action-button.refresh-active {
  animation: refreshSpin 0.6s ease-in-out;
}

@keyframes refreshSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Google Translate Styling */
#google_translate_element {
  display: flex;
  align-items: center;
}

#google_translate_element .goog-te-gadget {
  font-family: inherit;
  font-size: 0;
}

#google_translate_element .goog-te-gadget-simple {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(10px);
}

#google_translate_element .goog-te-gadget-simple:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.advanced-user-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.advanced-user-profile:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.advanced-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease;
}

.advanced-user-profile:hover .advanced-user-avatar {
  border-color: rgba(255, 255, 255, 0.7);
}

.advanced-user-name {
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.advanced-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
  border: 1px solid var(--border-light);
  margin-top: 8px;
}

.advanced-user-profile:hover .advanced-user-dropdown {
  opacity: 1;
  visibility: visible;
}

.advanced-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  font-size: 13px;
}

.advanced-user-dropdown a:hover {
  background: var(--primary-gradient);
  color: white;
}

.advanced-user-dropdown a i {
  width: 14px;
  text-align: center;
}

/* Advanced Sidebar - Adjusted for 50px Header */
.advanced-restaurant-sidebar {
  position: fixed;
  left: 0;
  top: 50px;
  width: 280px;
  height: calc(100vh - 50px);
  background: var(--bg-white);
  box-shadow: 4px 0 20px var(--shadow-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--border-light);
}

.advanced-restaurant-sidebar::-webkit-scrollbar {
  width: 6px;
}

.advanced-restaurant-sidebar::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.advanced-restaurant-sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.advanced-restaurant-sidebar.collapsed {
  width: 70px;
}

.advanced-sidebar-content {
  padding: 16px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.advanced-logo-section {
  padding: 0 16px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.advanced-sidebar-logo {
  height: 32px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px var(--shadow-light));
}

.advanced-sidebar-favicon {
  height: 28px;
  width: 28px;
  object-fit: contain;
  display: block;
}

.advanced-restaurant-sidebar.collapsed .advanced-sidebar-logo {
  display: none;
}

.advanced-restaurant-sidebar.collapsed .advanced-sidebar-favicon {
  display: block;
}

.advanced-restaurant-sidebar.collapsed .advanced-logo-section {
  padding: 0 16px 16px;
}

.advanced-user-section {
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.advanced-restaurant-sidebar.collapsed .advanced-user-section {
  padding: 0 8px 16px;
}

.advanced-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(254, 99, 71, 0.2);
}

.advanced-restaurant-sidebar.collapsed .advanced-user-card {
  padding: 10px;
  justify-content: center;
}

.advanced-user-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.advanced-user-details {
  flex: 1;
  overflow: hidden;
  transition: all 0.3s ease;
}

.advanced-restaurant-sidebar.collapsed .advanced-user-details {
  display: none;
}

.advanced-user-name {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advanced-sidebar-nav {
  flex: 1;
  padding: 0 8px;
}

.advanced-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  font-weight: 500;
  font-size: 13px;
}

.advanced-restaurant-sidebar.collapsed .advanced-nav-item {
  padding: 12px;
  justify-content: center;
}

.advanced-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.2s ease;
  z-index: -1;
}

.advanced-nav-item:hover {
  color: white;
  box-shadow: 0 2px 8px rgba(254, 99, 71, 0.25);
}

.advanced-nav-item:hover::before {
  width: 100%;
}

.advanced-nav-item.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 3px 12px rgba(254, 99, 71, 0.3);
}

.advanced-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 18px;
}

.advanced-nav-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.advanced-nav-text {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.advanced-restaurant-sidebar.collapsed .advanced-nav-text {
  display: none;
}

.advanced-nav-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-dark);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-left: 12px;
  z-index: 1002;
  font-weight: 500;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.advanced-restaurant-sidebar.collapsed
  .advanced-nav-item:hover
  .advanced-nav-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Advanced Main Content - Adjusted for 50px Header */
.advanced-main-content {
  margin-left: 280px;
  margin-top: 50px;
  padding: 20px;
  min-height: calc(100vh - 50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-light);
  width: calc(100% - 280px);
}

.advanced-main-content.sidebar-collapsed {
  margin-left: 70px;
  width: calc(100% - 70px);
}

/* Fullscreen Notification */
.advanced-fullscreen-notification {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.advanced-fullscreen-notification.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile Overlay */
.advanced-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.advanced-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .advanced-header-controls {
    gap: 6px;
    padding: 5px 10px;
  }

  .advanced-staff-select-btn {
    min-width: 100px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .advanced-selected-staff-name {
    max-width: 100px;
    font-size: 10px;
  }

  .advanced-action-button {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .advanced-header-controls {
    gap: 5px;
    padding: 4px 8px;
  }

  .advanced-staff-select-btn {
    min-width: 90px;
    font-size: 11px;
    padding: 5px 8px;
  }

  .advanced-selected-staff-name {
    max-width: 80px;
    font-size: 10px;
  }

  .advanced-action-button {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .advanced-user-name {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .advanced-top-header {
    padding: 0 12px;
  }

  /* Header Controls - Mobilde Optimize */
  .advanced-header-controls {
    display: flex;
    gap: 6px;
  }

  /* Diğer butonları gizle */
  .advanced-action-button,
  #google_translate_element {
    display: none !important;
  }

  /* Personel Seçimi - Mobil Optimizasyonu */
  .advanced-control-group {
    gap: 6px;
  }

  .advanced-staff-section {
    gap: 6px;
    flex-wrap: wrap;
  }

  /* "Personel Seç" butonunu mobilde gizle */
  .advanced-staff-select-btn {
    display: none !important;
  }

  /* Sadece seçili personel bilgisi göster */
  .advanced-selected-staff {
    padding: 6px 8px;
    font-size: 12px;
    max-width: 100%;
  }

  .advanced-selected-staff-name {
    font-size: 11px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .advanced-clear-staff-btn {
    padding: 4px;
    font-size: 12px;
  }

  /* User profile - Ayarlar için göster */
  .advanced-user-profile {
    display: flex;
  }

  /* License badge header'ı mobilde gizle */
  .license-badge-header {
    display: none !important;
  }

  .advanced-restaurant-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    width: 280px;
  }

  .advanced-restaurant-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3);
  }

  .advanced-main-content {
    margin-left: 0;
    padding: 16px 12px;
    width: 100%;
  }

  .advanced-main-content.sidebar-collapsed {
    margin-left: 0;
    width: 100%;
  }

  .advanced-user-name {
    display: flex;
  }

  .advanced-header-logo {
    height: 28px;
    max-width: 120px;
  }

  .advanced-sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: 600;
  }

  .advanced-user-avatar {
    width: 28px;
    height: 28px;
  }

  .advanced-user-profile {
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .advanced-top-header {
    height: 45px;
    padding: 0 10px;
  }

  /* Personel Seçimi - Küçük Ekranlar (480px) */
  .advanced-staff-section {
    gap: 4px;
  }

  /* "Personel Seç" butonu zaten gizli (768px'den devam ediyor) */

  /* Sadece seçili personel bilgisi - daha kompakt */
  .advanced-selected-staff {
    padding: 5px 6px;
    font-size: 11px;
  }

  .advanced-selected-staff-name {
    font-size: 10px;
    max-width: 100px;
  }

  .advanced-selected-staff-info i {
    font-size: 12px;
  }

  .advanced-clear-staff-btn {
    padding: 3px;
    font-size: 11px;
  }

  .advanced-restaurant-sidebar {
    top: 45px;
    height: calc(100vh - 45px);
    width: 100%;
  }

  .advanced-main-content {
    margin-top: 45px;
    padding: 12px 8px;
  }

  .advanced-header-logo {
    height: 24px;
    max-width: 100px;
  }

  .advanced-sidebar-toggle {
    width: 34px;
    height: 34px;
    font-size: 17px;
    font-weight: 600;
  }

  .advanced-user-avatar {
    width: 26px;
    height: 26px;
  }

  .advanced-user-profile {
    padding: 4px 8px;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading-pulse {
  animation: pulse 1.5s infinite;
}

/* Alt Menü Stilleri */
.advanced-nav-group {
  margin-bottom: 4px;
}

.advanced-nav-parent {
  position: relative;
}

.advanced-nav-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.advanced-nav-parent.active .advanced-nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.advanced-nav-submenu {
  padding-left: 20px;
  margin-top: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.advanced-nav-subitem {
  padding: 10px 16px 10px 40px;
  margin-bottom: 2px;
  font-size: 12px;
  position: relative;
}

.advanced-nav-subitem::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.advanced-nav-subitem:hover::before,
.advanced-nav-subitem.active::before {
  background: white;
  width: 6px;
  height: 6px;
}

.advanced-nav-subitem .advanced-nav-icon {
  width: 16px;
  height: 16px;
  font-size: 14px;
}

.advanced-restaurant-sidebar.collapsed .advanced-nav-submenu {
  display: none !important;
}

.advanced-restaurant-sidebar.collapsed .advanced-nav-arrow {
  display: none;
}

/* ==================== Bildirim Sistemi ==================== */
.advanced-notification-wrapper {
  position: relative;
}

.advanced-notification-btn {
  position: relative;
  transition: all 0.3s ease;
}

/* Bildirim varken buton yanıp söner */
.advanced-notification-btn.has-notifications {
  animation: notification-glow 1.5s ease-in-out infinite;
}

@keyframes notification-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.8), 0 0 40px rgba(220, 53, 69, 0.4),
      0 0 60px rgba(220, 53, 69, 0.2);
  }
}

/* Yeni bildirim geldiğinde ring efekti */
.advanced-notification-btn.has-notifications::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #dc3545;
  border-radius: 12px;
  animation: notification-ring 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes notification-ring {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.6);
  animation: notification-pulse 1s ease-in-out infinite;
}

@keyframes notification-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.6);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 2px 15px rgba(220, 53, 69, 0.9);
  }
}

.notification-badge.shake {
  animation: notification-shake 0.5s ease-in-out;
}

@keyframes notification-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 450px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.notification-dropdown.show {
  display: block;
  animation: dropdown-slide 0.2s ease-out;
}

@keyframes dropdown-slide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fe6347 0%, #ff7a5c 100%);
  color: white;
}

.notification-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-clear-all {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-clear-all:hover {
  background: rgba(255, 255, 255, 0.3);
}

.notification-list {
  max-height: 350px;
  overflow-y: auto;
}

.notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #6c757d;
}

.notification-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #fff8f6;
  border-left: 3px solid #fe6347;
}

.notification-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 16px;
}

.notification-item-icon.getir {
  background: #5d3ebc;
}
.notification-item-icon.trendyol {
  background: #f27a1a;
}
.notification-item-icon.yemeksepeti {
  background: #fa0050;
}
.notification-item-icon.migros {
  background: #f26f21;
}
.notification-item-icon.masa {
  background: #28a745;
}
.notification-item-icon.qr {
  background: #17a2b8;
}
.notification-item-icon.default {
  background: #6c757d;
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-item-title .platform-name {
  font-weight: 700;
}

.notification-item-desc {
  font-size: 12px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-item-time {
  font-size: 11px;
  color: #adb5bd;
  margin-top: 4px;
}

/* Bildirim Ses */
#notification-sound {
  display: none;
}
