/* Flash Message Popup Styles */
.flash-popup-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

.flash-popup {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out forwards;
    transform: translateX(120%);
    position: relative;
    border-left: 4px solid #ccc;
}

.flash-popup.success {
    border-left-color: #4CAF50;
}

.flash-popup.error {
    border-left-color: #F44336;
}

.flash-popup.warning {
    border-left-color: #FF9800;
}

.flash-popup.info {
    border-left-color: #2196F3;
}

.flash-popup-content {
    display: flex;
    padding: 15px;
    align-items: center;
}

.flash-popup-icon {
    margin-right: 15px;
    font-size: 20px;
    color: #666;
}

.flash-popup.success .flash-popup-icon {
    color: #4CAF50;
}

.flash-popup.error .flash-popup-icon {
    color: #F44336;
}

.flash-popup.warning .flash-popup-icon {
    color: #FF9800;
}

.flash-popup.info .flash-popup-icon {
    color: #2196F3;
}

.flash-popup-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.flash-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.flash-popup-close:hover {
    color: #333;
}

.flash-popup-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
}

.flash-popup-progress-bar {
    height: 100%;
    width: 100%;
    background-color: currentColor;
    transition: width linear;
}

.flash-popup.success .flash-popup-progress-bar {
    background-color: #4CAF50;
}

.flash-popup.error .flash-popup-progress-bar {
    background-color: #F44336;
}

.flash-popup.warning .flash-popup-progress-bar {
    background-color: #FF9800;
}

.flash-popup.info .flash-popup-progress-bar {
    background-color: #2196F3;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(120%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(120%);
    }
}

.flash-popup.removing {
    animation: slideOut 0.3s ease-in forwards;
}