.top-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease-in-out;
}

/* Typy zpráv */
.top-alert.success { background-color: #28a745; }   /* zelená */
.top-alert.error   { background-color: #dc3545; }   /* červená */
.top-alert.warning { background-color: #ffc107; color: #000; } /* žlutá */
.top-alert.info    { background-color: #17a2b8; }   /* modrá */

/* Progress bar */
.progress-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  width: 100%;
  animation: progressBar 3s linear forwards;
  margin-top: 10px;
  border-radius: 4px;
}


@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes fadeIn {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0%);
  }
}
