/* Template Banner Styles */
.scc-template-banner {
  position: relative;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  border-left: 4px solid #2563eb;
  background-color: #fff;
  overflow: visible;
}

/* Banner variants */
.scc-template-banner.scc-banner-success {
  background-color: #f0f9f4;
  border-left-color: #10b981;
}

.scc-template-banner.scc-banner-success .banner-icon .scc-icn-wrapper {
  background-color: #10b981;
}

.scc-template-banner.scc-banner-success .banner-title {
  color: rgba(16, 185, 129, 0.8);
}

.scc-template-banner.scc-banner-warning {
  background-color: #fffbeb;
  border-left-color: #f59e0b;
}

.scc-template-banner.scc-banner-warning .banner-icon .scc-icn-wrapper {
  background-color: #f59e0b;
}

.scc-template-banner.scc-banner-warning .banner-title {
  color: rgba(245, 158, 11, 0.8);
}

.scc-template-banner.scc-banner-error {
  background-color: #fef2f2;
  border-left-color: #ef4444;
}

.scc-template-banner.scc-banner-error .banner-icon .scc-icn-wrapper {
  background-color: #ef4444;
}

.scc-template-banner.scc-banner-error .banner-title {
  color: rgba(239, 68, 68, 0.8);
}

/* Hover effect */
.scc-template-banner:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Banner with open dropdown should have higher z-index than other banners */
.scc-template-banner.scc-banner-menu-open {
  z-index: 100 !important;
}

.scc-template-banner.scc-banner-menu-open:hover {
  z-index: 100 !important;
}

.scc-template-banner .banner-content {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  gap: 1rem;
  position: relative;
}

.scc-template-banner .banner-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.scc-template-banner .banner-icon .scc-icn-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #2563eb;
  transition: all 0.3s ease-in-out;
}

.scc-template-banner .banner-icon .scc-icn-wrapper i {
  color: white;
  font-size: 18px;
}

.scc-template-banner .banner-message {
  flex: 1;
  min-width: 0;
}

.scc-template-banner .banner-message .banner-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1.4;
}

.scc-template-banner .banner-message .banner-message-text {
  margin: 0;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

.scc-template-banner .banner-message .banner-message-text ul {
  list-style: disc;
}

.scc-template-banner .banner-message .scc-banner-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.scc-template-banner .banner-message .scc-banner-line .banner-message-text {
  margin: 0;
}

.scc-template-banner .banner-message .scc-banner-line .banner-actions {
  display: inline-flex;
  gap: 0.5rem;
  margin: 0;
  align-items: center;
}

.scc-template-banner .banner-actions {
  display: flex;
  width: 100%;
}

.scc-template-banner .banner-actions .df-btn {
  flex: none;
}

.scc-template-banner .banner-dismiss-btn {
  position: absolute;
  top: 0.5rem;
  right: 2.5rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  z-index: 0;
}

.scc-template-banner .banner-dismiss-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #374151;
}

.scc-template-banner .banner-dismiss-btn:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.scc-template-banner .banner-dismiss-btn i {
  font-size: 18px;
}

.scc-template-banner .banner-dismiss-menu {
  position: absolute;
  top: 2.75rem;
  right: 2.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  z-index: 101;
  min-width: 160px;
}

.scc-template-banner .banner-dismiss-menu .banner-dismiss-header {
  padding: 0.625rem 0.875rem;
  font-size: 0.813rem;
  font-weight: 600;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 6px 6px 0 0;
}

.scc-template-banner .banner-dismiss-menu .banner-dismiss-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.2s ease;
}

.scc-template-banner .banner-dismiss-menu .banner-dismiss-option:first-of-type {
  margin-top: 0.25rem;
}

.scc-template-banner .banner-dismiss-menu .banner-dismiss-option:last-of-type {
  margin-bottom: 0.25rem;
  border-radius: 0 0 6px 6px;
}

.scc-template-banner .banner-dismiss-menu .banner-dismiss-option:hover {
  background-color: #f3f4f6;
}

.scc-template-banner .banner-dismiss-menu .banner-dismiss-option:active {
  background-color: #e5e7eb;
}

.scc-template-banner .banner-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  z-index: 0;
}

.scc-template-banner .banner-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #374151;
}

.scc-template-banner .banner-close:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.scc-template-banner .banner-close i {
  font-size: 16px;
}

/* Animations for banner entrance */
@keyframes scc-banner-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scc-template-banner.scc-banner-animate {
  animation: scc-banner-slide-in 0.4s ease-out;
}

/* Responsive design */
@media (max-width: 640px) {
  .scc-template-banner {
    margin: 0.5rem;
    border-radius: 6px;
  }

  .scc-template-banner .banner-content {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .scc-template-banner .banner-icon .scc-icn-wrapper {
    width: 28px;
    height: 28px;
  }

  .scc-template-banner .banner-icon .scc-icn-wrapper i {
    font-size: 16px;
  }

  .scc-template-banner .banner-message .banner-title {
    font-size: 0.875rem;
  }

  .scc-template-banner .banner-message .banner-message-text {
    font-size: 0.813rem;
  }

  .scc-template-banner .scc-banner-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .scc-template-banner .scc-banner-line .banner-actions {
    gap: 0.375rem;
  }

  .scc-template-banner .banner-dismiss-btn {
    width: 24px;
    height: 24px;
    right: 2rem;
  }

  .scc-template-banner .banner-dismiss-btn i {
    font-size: 16px;
  }

  .scc-template-banner .banner-dismiss-menu {
    right: 2rem;
    top: 2.5rem;
    min-width: 140px;
  }

  .scc-template-banner .banner-dismiss-menu .banner-dismiss-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .scc-template-banner .banner-dismiss-menu .banner-dismiss-option {
    padding: 0.375rem 0.75rem;
    font-size: 0.813rem;
  }

  .scc-template-banner .banner-close {
    width: 24px;
    height: 24px;
  }

  .scc-template-banner .banner-close i {
    font-size: 14px;
  }
}

/* Print styles */
@media print {
  .scc-template-banner {
    box-shadow: none;
    border: 1px solid #d1d5db;
  }

  .scc-template-banner .banner-close,
  .scc-template-banner .banner-dismiss-btn,
  .scc-template-banner .banner-dismiss-menu,
  .scc-template-banner .banner-actions {
    display: none;
  }
}
