/* ============================================================================
   Arwah Flash Message Styles
   ============================================================================ */

.flash-message-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 480px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
}

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

.flash-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.flash-text {
    flex: 1;
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #3E2723;
    text-align: right;
    direction: rtl;
}

.flash-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #757575;
    transition: all 0.2s ease;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #424242;
}

.flash-close:active {
    transform: scale(0.95);
}

/* Success variant */
.flash-success {
    border-right: 4px solid #66BB6A;
}

.flash-success .flash-icon {
    color: #66BB6A;
}

/* Error variant */
.flash-error {
    border-right: 4px solid #EF5350;
}

.flash-error .flash-icon {
    color: #EF5350;
}

/* Info variant */
.flash-info {
    border-right: 4px solid #42A5F5;
}

.flash-info .flash-icon {
    color: #42A5F5;
}

/* Warning variant */
.flash-warning {
    border-right: 4px solid #FFA726;
}

.flash-warning .flash-icon {
    color: #FFA726;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .flash-message-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }
    
    .flash-message {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* RTL support */
[dir="rtl"] .flash-message-container {
    right: auto;
    left: 24px;
}

[dir="rtl"] .flash-message {
    transform: translateX(-100px);
}

[dir="rtl"] .flash-message.show {
    transform: translateX(0);
}

@media (max-width: 640px) {
    [dir="rtl"] .flash-message-container {
        left: 16px;
        right: 16px;
    }
}
