/* Global Toast & PWA Installation Banner Styles */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.toast-notification {
  pointer-events: auto;
  background: rgba(11, 37, 69, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  color: #FFF;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 168, 232, 0.2);
  animation: slideInToast 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast-notification.hiding {
  opacity: 0;
  transform: translateX(40px);
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast-notification.success {
  border-left: 5px solid #10B981;
}

.toast-notification.error,
.toast-notification.danger {
  border-left: 5px solid #EF4444;
}

.toast-notification.warning {
  border-left: 5px solid #F59E0B;
}

.toast-notification.info {
  border-left: 5px solid var(--c-blue);
}

.toast-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.toast-title-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--c-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
}

.toast-close-btn:hover {
  color: #FFF;
}

.toast-details-text {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
  word-break: break-word;
}

.toast-actions {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.btn-toast-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-border);
  color: #FFF;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-toast-copy:hover {
  background: rgba(0, 168, 232, 0.2);
  border-color: var(--c-blue);
}

.btn-toast-copy.copied {
  background: #10B981;
  border-color: #10B981;
}

/* PWA Installation & Push Notification Bottom Banner */
.pwa-banner-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 440px;
  z-index: 9999;
  animation: slideUpPwa 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-banner-container.hiding {
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: all 0.3s ease;
}

@keyframes slideUpPwa {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.pwa-banner-card {
  background: rgba(11, 37, 69, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--c-blue);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 168, 232, 0.3);
  position: relative;
  color: #FFF;
}

body.theme-light .pwa-banner-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 168, 232, 0.35);
  color: #071322;
  box-shadow: 0 20px 45px rgba(11, 37, 69, 0.2);
}

.pwa-close-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--c-text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
}

.pwa-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pwa-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.pwa-app-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pwa-app-title {
  font-weight: 700;
  font-size: 1rem;
}

.pwa-app-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}

.pwa-guide-steps {
  background: rgba(0, 168, 232, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-pwa-push {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--c-blue), #0077B6);
  color: #FFF;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 168, 232, 0.3);
}

.btn-pwa-dismiss {
  width: 100%;
  padding: 0.5rem;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
}
