/* Vanhat ilmoitustyylit */
.container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-content {
  text-align: center;
  padding: 2rem;
}

/* Vanhat notification-tyylit (keskellä ruutua) */
.notification-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f3f3f3;
  padding: 2.5rem 3.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
  max-width: 90%;
  animation: fadeIn 0.3s ease-out;
}

/* Uudet ilmoitustyylit (oikeassa yläkulmassa) */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  z-index: 9999;
}

.notification {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.notification--visible {
  transform: translateX(0);
}

.notification--hiding {
  transform: translateX(120%);
}

.notification__content {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification__message {
  flex-grow: 1;
  margin-right: 10px;
}

.notification__close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #777;
}

/* Ilmoitustyypit */
.notification--success {
  border-left: 4px solid #4caf50;
}

.notification--error {
  border-left: 4px solid #f44336;
}

.notification--info {
  border-left: 4px solid #2196f3;
}

.notification--warning {
  border-left: 4px solid #ff9800;
}

/* Vanhat ilmoitustyypit keskitetylle ilmoitukselle */
.notification-centered.notification--success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.notification-centered.notification--error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.notification__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.notification__message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.notification__button {
  background-color: #5ec576;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.notification__button:hover {
  background-color: #4bbb7d;
}

.notification__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
}

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