/**
 * KiroTools Benachrichtigungen – Styles
 * Prefix: kt-notify--
 */

.kt-notify--container {
    position: fixed;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 24rem;
    width: 100%;
    padding: 1rem;
}

.kt-notify--top-right { top: 0; right: 0; }
.kt-notify--top-left { top: 0; left: 0; }
.kt-notify--bottom-right { bottom: 0; right: 0; }
.kt-notify--bottom-left { bottom: 0; left: 0; }

.kt-notify--toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1f2937;
}

.kt-notify--visible { opacity: 1; transform: translateX(0); }
.kt-notify--dismissing { opacity: 0; transform: translateX(100%); }

/* Type Colors */
.kt-notify--success { border-left: 4px solid #16a34a; }
.kt-notify--success .kt-notify--icon { color: #16a34a; background: #f0fdf4; }

.kt-notify--error { border-left: 4px solid #dc2626; }
.kt-notify--error .kt-notify--icon { color: #dc2626; background: #fef2f2; }

.kt-notify--warning { border-left: 4px solid #d97706; }
.kt-notify--warning .kt-notify--icon { color: #d97706; background: #fffbeb; }

.kt-notify--info { border-left: 4px solid #2563eb; }
.kt-notify--info .kt-notify--icon { color: #2563eb; background: #eff6ff; }

/* Icon */
.kt-notify--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
}

/* Content */
.kt-notify--content { flex: 1; min-width: 0; }
.kt-notify--title { display: block; font-weight: 600; font-size: 0.875rem; color: #111827; margin-bottom: 0.125rem; }
.kt-notify--message { margin: 0; font-size: 0.8125rem; color: #4b5563; word-wrap: break-word; }

/* Close Button */
.kt-notify--close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 0.25rem;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.kt-notify--close:hover { background: #f3f4f6; color: #1f2937; }
.kt-notify--close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* Progress Bar */
.kt-notify--progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.3;
    transform-origin: left;
    animation: kt-notify--progress-shrink linear forwards;
}

.kt-notify--success .kt-notify--progress { background: #16a34a; }
.kt-notify--error .kt-notify--progress { background: #dc2626; }
.kt-notify--warning .kt-notify--progress { background: #d97706; }
.kt-notify--info .kt-notify--progress { background: #2563eb; }

@keyframes kt-notify--progress-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .kt-notify--container { max-width: 100%; padding: 0.5rem; left: 0; right: 0; }
    .kt-notify--toast { transform: translateY(-1rem); }
    .kt-notify--visible { transform: translateY(0); }
    .kt-notify--dismissing { transform: translateY(-1rem); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .kt-notify--toast { transition: opacity 0.15s ease; transform: none; }
    .kt-notify--visible { transform: none; }
    .kt-notify--dismissing { transform: none; }
    .kt-notify--progress { animation: none; }
}

@media print {
    .kt-notify--container { display: none; }
}
