/* Toast Notifikační Systém - Recyclo.cz */

/* Container pro toasty */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Toast element */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: all;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

/* Toast typy */
.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

/* Toast icon */
.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

/* Toast zpráva */
.toast-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Zavírací tlačítko */
.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* Confirm dialog overlay */
.toast-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toast-confirm-show {
    opacity: 1;
}

/* Confirm dialog modal */
.toast-confirm-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.toast-confirm-show .toast-confirm-modal {
    transform: scale(1);
}

/* Confirm zpráva */
.toast-confirm-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* Confirm tlačítka */
.toast-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.toast-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.toast-btn-cancel {
    background: #e9ecef;
    color: #333;
}

.toast-btn-cancel:hover {
    background: #dee2e6;
}

.toast-btn-confirm {
    background: #28a745;
    color: white;
}

.toast-btn-confirm:hover {
    background: #218838;
}

/* Mobile responsivní */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }

    .toast-confirm-modal {
        padding: 20px;
        width: 95%;
    }

    .toast-confirm-buttons {
        flex-direction: column;
    }

    .toast-btn {
        width: 100%;
    }
}
