/* ============================================ */
/* TOAST NOTIFICATIONS - Spodní část stránky */
/* ============================================ */

#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    max-width: 90%;
    width: 100%;
    max-width: 600px;
}

.toast-notification {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInUp 0.3s ease-out;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast-notification.success {
    border-left-color: #28a745;
    background-color: #f8fff9;
}

.toast-notification.error {
    border-left-color: #dc3545;
    background-color: #fff8f8;
}

.toast-notification.warning {
    border-left-color: #ffc107;
    background-color: #fffef5;
}

.toast-notification.info {
    border-left-color: #17a2b8;
    background-color: #f5fcff;
}

.toast-notification-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-notification.success .toast-notification-icon {
    color: #28a745;
}

.toast-notification.error .toast-notification-icon {
    color: #dc3545;
}

.toast-notification.warning .toast-notification-icon {
    color: #ffc107;
}

.toast-notification.info .toast-notification-icon {
    color: #17a2b8;
}

.toast-notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.toast-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-notification-close:hover {
    color: #333;
}

.toast-notification .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    animation: progressBar 3s linear forwards;
}

.toast-notification.success .progress-bar {
    background-color: rgba(40, 167, 69, 0.3);
}

.toast-notification.error .progress-bar {
    background-color: rgba(220, 53, 69, 0.3);
}

.toast-notification.warning .progress-bar {
    background-color: rgba(255, 193, 7, 0.3);
}

.toast-notification.info .progress-bar {
    background-color: rgba(23, 162, 184, 0.3);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast-notification.hiding {
    animation: slideOutDown 0.3s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    #toast-container {
        bottom: 10px;
        max-width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: 100%;
    }
}

