/* ================================================
   GLOBAL NOTIFICATION SYSTEM
   Ersetzt Browser-Alerts mit schönen Notifications
   ================================================ */

/* Notification Container - unten links */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

/* Individual Notification */
.notification {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: start;
    gap: 12px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInLeft 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.notification:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

/* Notification Types */
.notification.success {
    border-left: 4px solid #00dc00;
}

.notification.success .notification-icon {
    color: #00dc00;
}

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

.notification.error .notification-icon {
    color: #dc0000;
}

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

.notification.warning .notification-icon {
    color: #ffa500;
}

.notification.info {
    border-left: 4px solid #00aaff;
}

.notification.info .notification-icon {
    color: #00aaff;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 100%;
    height: 100%;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Close Button */
.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #ffffff;
}

.notification-close svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: currentColor;
    transition: width linear;
    width: 100%;
}

.notification.success .notification-progress-bar {
    background: #00dc00;
}

.notification.error .notification-progress-bar {
    background: #dc0000;
}

.notification.warning .notification-progress-bar {
    background: #ffa500;
}

.notification.info .notification-progress-bar {
    background: #00aaff;
}

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

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

.notification.closing {
    animation: slideOutLeft 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
}
