@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");
@import "variables-hVje3My.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  font-family: var(--font-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

.btn,
.btn-sub {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.43);
}

.btn-sub {
  background: var(--color-primary);
  color: #000000;
}
.btn-sub:hover,
.btn:hover {
  opacity: 0.8;
  color: #ffffff;
}

.btn-sub {
  padding: 0.3125rem 0.375rem;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.icon-close {
  height: 1.5rem;
  width: 1.5rem;
  transition: transform 0.2s;
}

.icon-close:hover {
  transform: scale(1.1);
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.delete {
  color: #000;
  background: var(--color-danger);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
}


#global-flashes {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  pointer-events: none;
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.43);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  line-height: 1.4;
  pointer-events: auto;
  animation: alert-in 0.25s ease-out;
}

.alert-icon {
  flex-shrink: 0;
  font-weight: 700;
}

.alert-message {
  flex: 1;
  overflow-wrap: break-word;
}

.alert-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

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

.alert-success {
  background: var(--color-success);
}

.alert-danger,
.alert-error {
  background: var(--color-danger);
  color: #ffffff;
}

.alert-warning {
  background: var(--color-warning);
}

.alert-info {
  background: var(--color-info);
}

.alert-hide {
  animation: alert-out 0.25s ease-in forwards;
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes alert-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert {
    animation: none;
  }
  .alert-hide {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 748px) {
  #global-flashes {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}