/**
 * @file
 * Notification banner and admin styling.
 */

/* Notification Banners - Fixed at top below header */
.nsia-notification-banners {
  width: 100%;
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

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

.notification-banner:last-child {
  border-bottom: none;
}

.notification-info {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
}

.notification-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: #fff;
}

.notification-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #333;
}

.notification-error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
}

.notification-content {
  flex: 1;
}

.notification-title {
  margin-right: 10px;
}

.notification-message {
  font-size: 0.95rem;
}

.notification-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.7;
  color: inherit;
}

.notification-close:hover {
  opacity: 1;
}

/* Admin Page Styles */
.nsia-notifications-admin {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.notifications-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.notifications-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  min-width: 120px;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

.stat-active .stat-value {
  color: #28a745;
}

.stat-draft .stat-value {
  color: #6c757d;
}

/* Table Styles */
.notifications-table-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.notifications-table {
  width: 100%;
  border-collapse: collapse;
}

.notifications-table th,
.notifications-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.notifications-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.notifications-table tbody tr:hover {
  background: #fafafa;
}

.notification-title-cell strong {
  display: block;
  margin-bottom: 5px;
}

.notification-preview {
  font-size: 0.85rem;
  color: #666;
}

/* Type Badges */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.type-info {
  background: #e3f2fd;
  color: #1565c0;
}

.type-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.type-warning {
  background: #fff3e0;
  color: #ef6c00;
}

.type-error {
  background: #ffebee;
  color: #c62828;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-0 {
  background: #f5f5f5;
  color: #666;
}

.status-1 {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-2 {
  background: #eceff1;
  color: #546e7a;
}

/* Other Badges */
.public-yes {
  color: #28a745;
}

.public-no {
  color: #999;
}

.email-sent {
  color: #0066cc;
  font-weight: 500;
}

.email-not-sent {
  color: #999;
}

/* Actions */
.actions-cell {
  white-space: nowrap;
}

.action-link {
  margin-right: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

.action-link.edit {
  color: #0066cc;
}

.action-link.delete {
  color: #dc3545;
}

.action-link:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state p {
  margin-bottom: 20px;
  color: #666;
  font-size: 1.1rem;
}

/* Button Styles */
.button--primary {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.button--primary:hover {
  background: #0052a3;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .notifications-stats {
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 100px;
  }

  .notifications-table-wrapper {
    overflow-x: auto;
  }

  .notification-preview {
    display: none;
  }
}
