/* Status Update Banner and Email Alert Styles */

.status-update-banner {
  margin: 0 -36px 20px -36px;
  padding: 16px 36px;
  background: linear-gradient(145deg, rgba(13, 109, 159, 0.6), rgba(22, 160, 203, 0.4));
  border-bottom: 2px solid var(--accent);
  border-radius: 8px 8px 0 0;
  animation: slideDown 0.4s ease-out;
}

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

.status-update-banner.hidden {
  display: none;
}

.banner-content h3 {
  color: var(--accent-soft);
  font-size: 1rem;
  margin-bottom: 8px;
}

.banner-content p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.banner-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.banner-actions .ghost-btn {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.banner-actions .ghost-btn.primary {
  background: rgba(35, 200, 255, 0.2);
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  z-index: 1000;
  background: linear-gradient(165deg, rgba(10, 39, 84, 0.98), rgba(8, 31, 69, 0.99));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--field);
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(35, 200, 255, 0.15);
  border-color: var(--accent);
}

.modal-content h3 {
  color: var(--accent-soft);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.45;
}

#emailAlertForm {
  display: grid;
  gap: 12px;
}

#emailAlertForm input {
  width: 100%;
  padding: 10px 12px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

#emailAlertForm input:focus {
  outline: none;
  border-color: var(--accent);
}

#emailAlertForm button {
  width: 100%;
  margin-top: 0;
}

.library-last-updated {
  margin-top: 4px;
  margin-bottom: 8px;
}

.status-history-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 24, 36, 0.45);
}

.status-history-panel h3 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.status-history-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.status-history-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.status-history-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.status-history-text {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.4;
}
