/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

/* Toast Base Styles */
.toast {
    min-width: 320px;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid;
    overflow: hidden;
}

/* Tablet and larger screens - wider toast */
@media (min-width: 769px) {
    .toast {
        min-width: 400px;
        max-width: 600px;
    }
}

/* Large screens - even wider */
@media (min-width: 1024px) {
    .toast {
        min-width: 450px;
        max-width: 700px;
    }
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Toast Types */
.toast-success {
    border-left-color: #7EAD35;
}

.toast-warning {
    border-left-color: #EDBA00;
}

.toast-error {
    border-left-color: #B71E21;
}

/* Flex Container */
.toast-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 16px;
}

/* Logo Section */
.toast-logo-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.toast-logo {
    width: 40px;
    height: auto;
    object-fit: contain;
}

/* Message Section */
.toast-message-section {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.toast-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
    white-space: pre-line;
}

/* Close Section */
.toast-close-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.toast-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
    width: 28px;
    height: 28px;
}

.toast-close-btn:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.toast-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .toast-flex-container {
        padding: 12px 16px;
        gap: 12px;
    }

    .toast-logo {
        width: 32px;
    }

    .toast-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }

    .toast-flex-container {
        padding: 10px 12px;
        gap: 10px;
    }

    .toast-logo {
        width: 28px;
    }

    .toast-message {
        font-size: 12px;
    }
}

