/* System Banner Styles */
.system-banner-outer-wrapper {
  position: static;
  padding: 0.2rem 0;
  min-height: 0;
  overflow: visible;
  margin: auto 0;
  max-width: 1400px;
}

.system-banner-outer-wrapper:not(.has-banners) {
  padding: 0;
  display: none;
}

.system-banner-outer-wrapper.collapsed .system-banner-wrapper {
  display: none;
}

.system-banner-outer-wrapper.collapsed .system-banner-count-badge {
  opacity: 0.7;
}

.system-banner-wrapper {
  position: static;
  width: 100%;
  padding: 0 1.5rem;
  overflow: visible;
}

/* Count Badge for Multiple Banners */
.system-banner-count-badge {
  position: fixed;
  top: 4rem;
  right: 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
  color: white;
  padding: 0.4rem 0.5rem;
  border-radius: 1.2rem;
  font-size: 0.715rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 500;
  animation: slideInRight 0.4s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.system-banner-count-badge .badge-count {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.125rem 0.3rem;
  border-radius: 0.75rem;
  min-width: 1.5rem;
  text-align: center;
}

.system-banner-count-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5), 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Stacking effect for multiple banners */
.system-banner-wrapper.has-multiple-banners .system-banner {
  margin-bottom: 0;
  border-radius: 0.3rem;
}

.system-banner-wrapper.has-multiple-banners .system-banner:first-child {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 4;
  position: relative;
}

.system-banner-wrapper.has-multiple-banners .system-banner:nth-child(2) {
  margin-top: -2.5rem;
  z-index: 3;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.system-banner-wrapper.has-multiple-banners .system-banner:nth-child(3) {
  margin-top: -2.5rem;
  z-index: 2;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.system-banner-wrapper.has-multiple-banners .system-banner:nth-child(n+4) {
  margin-top: -2.5rem;
  z-index: 1;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Hover effect for stacked banners */
.system-banner-wrapper.has-multiple-banners .system-banner:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  z-index: 100 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-banner {
  position: relative;
  z-index: 1;
  padding: 0.6rem 0.875rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Three-section layout */
.system-banner-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.system-banner-middle {
  flex: 1 1 86%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.875rem;
}

.system-banner-right {
  flex: 0 0 12%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.5rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.system-banner.dismissing {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
/* Banner Type Colors - Matching backend types */
.system-banner.banner-info {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
}

.system-banner.banner-success {
  background-color: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #14532d;
}

.system-banner.banner-warning {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}

.system-banner.banner-error {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #7f1d1d;
}

.system-banner.banner-announcement {
  background-color: #faf5ff;
  border-left: 4px solid #a855f7;
  color: #581c87;
}

.system-banner.banner-maintenance {
  background-color: #fef3c7;
  border-left: 4px solid #eab308;
  color: #713f12;
}

.system-banner.banner-promotional {
  background-color: #f0fdfa;
  border-left: 4px solid #14b8a6;
  color: #134e4a;
}

.system-banner.banner-alert {
  background-color: #fce7f3;
  border-left: 4px solid #ec4899;
  color: #831843;
}

/* Banner Icon */
.system-banner-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.system-banner-icon i {
  font-size: 1.5rem;
}

/* Icon Colors per Banner Type */
.banner-info .system-banner-icon {
  color: #3b82f6;
}

.banner-success .system-banner-icon {
  color: #22c55e;
}

.banner-warning .system-banner-icon {
  color: #f59e0b;
}

.banner-error .system-banner-icon {
  color: #ef4444;
}

.banner-announcement .system-banner-icon {
  color: #a855f7;
}

.banner-maintenance .system-banner-icon {
  color: #eab308;
}

.banner-promotional .system-banner-icon {
  color: #14b8a6;
}

.banner-alert .system-banner-icon {
  color: #ec4899;
}

/* Banner Content */
.system-banner-content {
  flex: 1 1 auto;
  min-width: 0;
}

.system-banner-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.system-banner-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.system-banner-text p:last-child {
  margin-bottom: 0;
}

/* Banner Actions */
.system-banner-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0;
  margin-left: auto;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .system-banner-actions {
    margin-left: auto;
    margin-top: 0;
  }
}
.system-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  gap: 0.25rem;
}

/* CTA Colors per Banner Type */
.banner-info .system-banner-cta {
  background-color: #3b82f6;
  color: white;
}

.banner-info .system-banner-cta:hover {
  background-color: #2563eb;
  color: white;
}

.banner-success .system-banner-cta {
  background-color: #22c55e;
  color: white;
}

.banner-success .system-banner-cta:hover {
  background-color: #16a34a;
  color: white;
}

.banner-warning .system-banner-cta {
  background-color: #f59e0b;
  color: white;
}

.banner-warning .system-banner-cta:hover {
  background-color: #d97706;
  color: white;
}

.banner-error .system-banner-cta {
  background-color: #ef4444;
  color: white;
}

.banner-error .system-banner-cta:hover {
  background-color: #dc2626;
  color: white;
}

.banner-announcement .system-banner-cta {
  background-color: #a855f7;
  color: white;
}

.banner-announcement .system-banner-cta:hover {
  background-color: #9333ea;
  color: white;
}

.banner-maintenance .system-banner-cta {
  background-color: #eab308;
  color: white;
}

.banner-maintenance .system-banner-cta:hover {
  background-color: #ca8a04;
  color: white;
}

.banner-promotional .system-banner-cta {
  background-color: #14b8a6;
  color: white;
}

.banner-promotional .system-banner-cta:hover {
  background-color: #0d9488;
  color: white;
}

.banner-alert .system-banner-cta {
  background-color: #ec4899;
  color: white;
}

.banner-alert .system-banner-cta:hover {
  background-color: #db2777;
  color: white;
}

/* Dismiss Button */
.system-banner-dismiss {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border-radius: 0.25rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 0;
  color: inherit;
}

.system-banner-dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.system-banner-dismiss i {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .system-banner-outer-wrapper {
    margin: auto 0;
    padding: 0.2rem 0;
  }
  .system-banner {
    padding: 0.35rem 0.5rem;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
  }
  .system-banner-title {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .system-banner-text {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .system-banner-cta {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  .system-banner-actions {
    margin-top: 0.35rem;
    gap: 0.3rem;
  }
  .system-banner-icon {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
  }
  .system-banner-icon i {
    font-size: 0.85rem;
  }
  .system-banner-dismiss {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
  }
  .system-banner-dismiss i {
    font-size: 0.75rem;
  }
}

/*# sourceMappingURL=system-banner.css.map*/