/* Flash Messages - Popup Notifications */
.flash-messages-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: 'Funnel Sans', 'DM Sans', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 300px;
}

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

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

.flash-message-text {
    flex: 1;
    margin-right: 1rem;
}

.flash-close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.flash-close-btn:hover {
    opacity: 1;
}

.flash-success {
    background-color: rgba(40, 167, 69, 0.95);
    color: #fff;
    border-left: 4px solid #28a745;
}

.flash-error {
    background-color: rgba(220, 53, 69, 0.95);
    color: #fff;
    border-left: 4px solid #dc3545;
}

.flash-info {
    background-color: rgba(0, 123, 255, 0.95);
    color: #fff;
    border-left: 4px solid #007bff;
}

.flash-warning {
    background-color: rgba(255, 193, 7, 0.95);
    color: #1a1d23;
    border-left: 4px solid #ffc107;
}

@media (max-width: 768px) {
    .flash-messages-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .flash-message {
        min-width: auto;
        width: 100%;
    }
}
