/* Alerts Layout */
.alerts-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .alerts-layout {
    padding: var(--space-3);
  }
}

/* Alerts Toolbar */
.alerts-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.alerts-filter-wrap {
  position: relative;
}

.alerts-filter-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.alerts-filter-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.alerts-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  z-index: 100;
}

.alerts-filter-menu.active {
  display: block;
}

.alerts-filter-item {
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.alerts-filter-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.alerts-filter-item.active {
  background: var(--brand-primary);
  color: white;
}

/* Notice List */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s;
}

.notice-item:hover {
  border-color: var(--brand-primary-light);
}

.notice-item-warning {
  border-color: #ef4444;
  background: #fef2f2;
}

[data-theme="dark"] .notice-item-warning {
  background: #1c1012;
  border-color: #7f1d1d;
}

/* Notice Icon */
.notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notice Info */
.notice-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* View more — opens the requirements PDF attached to a cohort acceptance */
.notice-viewmore {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Notice Amount */
.notice-amount {
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Status Badges */
.alert-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.alert-badge-pending {
  background: #fef3c7;
  color: #92400e;
}

[data-theme="dark"] .alert-badge-pending {
  background: #422006;
  color: #fbbf24;
}

.alert-badge-warning {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme="dark"] .alert-badge-warning {
  background: #450a0a;
  color: #fca5a5;
}

.alert-badge-failed {
  background: #fee2e2;
  color: #991b1b;
}

[data-theme="dark"] .alert-badge-failed {
  background: #450a0a;
  color: #fca5a5;
}

/* Empty State */
.notice-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.notice-empty h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.notice-empty p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
  .notice-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .notice-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .notice-icon svg {
    width: 16px;
    height: 16px;
  }

  .notice-amount {
    font-size: 14px;
  }
}
