/* ------------------ MODAL ------------------ */
.alert-modal-container .alert-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay-1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.alert-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  padding: 30px;
  width: 520px;
  max-width: 95%;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0,0,0,0.9);
  animation: pop 0.25s ease;
}

@keyframes pop { from {opacity:0; transform:scale(0.92);} to {opacity:1; transform:scale(1);} }

.alert-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 600;
}
.alert-title i { font-size: 28px; }

.alert-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.alert-comment-wrapper { position: relative; }
.alert-comment {
  width: 100%;
  height: 120px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text-1);
  padding: 8px;
  resize: vertical;
  margin-bottom: 5px;
  font-size: 14px;
}
.alert-counter {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.alert-comment::-webkit-scrollbar { width: 8px; }
.alert-comment::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.alert-screenshot { margin-bottom: 15px; color: var(--text-2); }
.alert-screenshot input { display: block; margin-top: 5px; color: var(--text-1); }

.alert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-1);
}
.alert-timestamp { font-size: 11px; color: var(--text-3); }
.alert-actions { display: flex; gap: 8px; }

/* BUTTONY MODALNE */
.alert-actions .button.ok-btn {
  background: #4dff88;
  color: var(--bg-1);
}
.alert-actions .button.ok-btn:hover { background: #3ed872; }

.alert-actions .button.cancel-btn {
  background: var(--bg-3);
  color: var(--text-1);
}
.alert-actions .button.cancel-btn:hover { background: var(--border-1); }

.alert-actions .button.report-btn {
  background: #ff4d4d;
  color: var(--text-1);
}
.alert-actions .button.report-btn:hover { background: #ff3333; }

.alert-redirect { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* ------------------ TOAST ------------------ */
.toast-container {
  position: fixed;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-top-right { top: 100px; right: 20px; align-items: flex-end; }
.toast-bottom-right { bottom: 20px; right: 20px; align-items: flex-end; }
.toast-top-left { top: 100px; left: 20px; align-items: flex-start; }
.toast-bottom-left { bottom: 20px; left: 20px; align-items: flex-start; }

.toast {
  background: var(--bg-2);
  color: var(--text-1);
  min-width: 280px;
  max-width: 280px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.toast-message { font-size: 14px; line-height: 1.4; }

.toast-report {
  align-self: flex-end;
  padding: 4px 8px;
  font-size: 12px;
  background: #ff4d4d;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}
.toast-report:hover { background: #ff3333; }

/* ------------------ KOLORY STATUSÓW ------------------ */
.alert-error .alert-title, .alert-error .alert-message, .toast-error { color: #ff4d4d; }
.alert-warning .alert-title, .alert-warning .alert-message, .toast-warning { color: #ffb84d; }
.alert-success .alert-title, .alert-success .alert-message, .toast-success { color: #4dff88; }
.alert-info .alert-title, .alert-info .alert-message, .toast-info { color: #4dcfff; }
.alert-confirm .alert-title, .alert-confirm .alert-message, .toast-confirm { color: #ffc94d; }

/* ------------------ BUTTONY OGÓLNE ------------------ */
.button-alert { background: var(--bg-3); color: var(--text-1); border: 1px solid var(--border-1); padding: 10px 20px; border-radius: 8px; cursor: pointer; margin: 5px; }
.button-alert:hover { background: var(--bg-4); }

/* toast timer */
.toast-timer {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 4px;
    background: var(--accent-1);
    width: 100%;
}

/* Animacje wejścia i wyjścia tosta */
@keyframes slideInRight { 
    from { opacity: 0; transform: translateX(100%); } 
    to { opacity: 1; transform: translateX(0); } 
}

@keyframes slideOutRight { 
    from { opacity: 1; transform: translateX(0); } 
    to { opacity: 0; transform: translateX(100%); } 
}

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

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

.toast.slide-in.toast-top-right,
.toast.slide-in.toast-bottom-right { 
    animation: slideInRight 0.3s forwards; 
}

.toast.slide-in.toast-top-left,
.toast.slide-in.toast-bottom-left { 
    animation: slideInLeft 0.3s forwards; 
}

.toast.slide-out.toast-top-right,
.toast.slide-out.toast-bottom-right { 
    animation: slideOutRight 0.3s forwards; 
}

.toast.slide-out.toast-top-left,
.toast.slide-out.toast-bottom-left { 
    animation: slideOutLeft 0.3s forwards;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.toast-header i {
  font-size: 18px;
  margin-right: 10px;
}

.toast-title {
    margin: 0;
    font-size: 16px;
    display: inline-block;
}

.toast-time {
    font-size: 12px;
    color: var(--text-3);
    margin-left: auto;
}