/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.flash-message {
    pointer-events: auto;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out forwards;
}

.flash-notice {
    border-left: 4px solid var(--color-positive);
}

.flash-alert {
    border-left: 4px solid var(--color-negative);
}

.flash-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.flash-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.flash-message.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Mobile responsive design */
@media (max-width: 640px) {
    .flash-container {
        top: 60px;
        right: var(--space-sm);
        left: var(--space-sm);
        width: auto;
    }

    .flash-message {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        padding: var(--space-md);
        font-size: var(--font-size-sm);
        box-sizing: border-box;
    }
}