/**
 * ShadowAdv Unified Notification System - Styles
 * Modern toast notification styles with RTL support
 * Version: 1.0.0
 */

/* ============================================
   Container
   ============================================ */
.shadow-notification-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

/* RTL Support - Move to top-right for Arabic */
[dir="rtl"] .shadow-notification-container {
    left: auto;
    right: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shadow-notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    [dir="rtl"] .shadow-notification-container {
        left: 10px;
        right: 10px;
    }
}

/* ============================================
   Notification Card
   ============================================ */
.shadow-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 
                0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    min-width: 300px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Transform */
[dir="rtl"] .shadow-notification {
    transform: translateX(100%);
}

/* Show Animation */
.shadow-notification-show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide Animation */
.shadow-notification-hide {
    opacity: 0;
    transform: translateX(-100%);
}

[dir="rtl"] .shadow-notification-hide {
    transform: translateX(100%);
}

/* Left Border Accent */
.shadow-notification::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

[dir="rtl"] .shadow-notification::before {
    right: auto;
    left: 0;
}

/* ============================================
   Notification Types
   ============================================ */

/* Success - Green */
.shadow-notification-success {
    color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.shadow-notification-success .shadow-notification-icon {
    color: #10b981;
}

/* Error - Red */
.shadow-notification-error {
    color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.shadow-notification-error .shadow-notification-icon {
    color: #ef4444;
}

/* Warning - Amber */
.shadow-notification-warning {
    color: #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.shadow-notification-warning .shadow-notification-icon {
    color: #f59e0b;
}

/* Info - Blue */
.shadow-notification-info {
    color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.shadow-notification-info .shadow-notification-icon {
    color: #3b82f6;
}

/* ============================================
   Icon
   ============================================ */
.shadow-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.shadow-notification-icon i {
    display: block;
}

/* ============================================
   Content
   ============================================ */
.shadow-notification-content {
    flex: 1;
    min-width: 0;
}

.shadow-notification-message {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    word-wrap: break-word;
    margin: 0;
}

/* ============================================
   Close Button
   ============================================ */
.shadow-notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    padding: 0;
    transition: all 0.2s ease;
    margin-left: 4px;
}

[dir="rtl"] .shadow-notification-close {
    margin-left: 0;
    margin-right: 4px;
}

.shadow-notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

.shadow-notification-close:active {
    transform: scale(0.95);
}

.shadow-notification-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ============================================
   Hover Effects
   ============================================ */
.shadow-notification:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 
                0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.shadow-notification-show:hover {
    transform: translateX(0) translateY(-2px);
}

/* ============================================
   Accessibility - High Contrast Mode
   ============================================ */
@media (prefers-contrast: high) {
    .shadow-notification {
        border-width: 2px;
    }
    
    .shadow-notification::before {
        width: 6px;
    }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .shadow-notification {
        transition: opacity 0.1s ease;
        transform: none !important;
    }
    
    .shadow-notification-show {
        opacity: 1;
    }
    
    .shadow-notification-hide {
        opacity: 0;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .shadow-notification-container {
        display: none !important;
    }
}

/* ============================================
   Dark Mode Support (Future Enhancement)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .shadow-notification {
        background: #1e293b;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .shadow-notification-message {
        color: #e2e8f0;
    }
    
    .shadow-notification-close {
        color: #94a3b8;
    }
    
    .shadow-notification-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
    
    .shadow-notification-success {
        background: linear-gradient(135deg, #1e293b 0%, #064e3b 100%);
    }
    
    .shadow-notification-error {
        background: linear-gradient(135deg, #1e293b 0%, #7f1d1d 100%);
    }
    
    .shadow-notification-warning {
        background: linear-gradient(135deg, #1e293b 0%, #78350f 100%);
    }
    
    .shadow-notification-info {
        background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%);
    }
}
/* ============================================
   Confirmation Dialog
   ============================================ */
.shadow-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shadow-confirm-overlay.show {
    opacity: 1;
}

.shadow-confirm-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.shadow-confirm-overlay.show .shadow-confirm-dialog {
    transform: scale(1) translateY(0);
}

.shadow-confirm-icon {
    width: 64px;
    height: 64px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.shadow-confirm-title {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 12px;
}

.shadow-confirm-message {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 32px;
}

.shadow-confirm-actions {
    display: flex;
    gap: 12px;
}

/* RTL Support - Actions */
[dir="rtl"] .shadow-confirm-actions {
    flex-direction: row-reverse;
}

.shadow-confirm-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.shadow-confirm-btn-confirm {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2), 0 2px 4px -1px rgba(239, 68, 68, 0.1);
}

.shadow-confirm-btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.shadow-confirm-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.shadow-confirm-btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.shadow-confirm-btn:active {
    transform: scale(0.98);
}

/* Dark Mode - Confirm */
@media (prefers-color-scheme: dark) {
    .shadow-confirm-dialog {
        background: #1e293b;
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    .shadow-confirm-title {
        color: #f1f5f9;
    }
    
    .shadow-confirm-message {
        color: #94a3b8;
    }
    
    .shadow-confirm-btn-cancel {
        background: rgba(255, 255, 255, 0.05);
        color: #94a3b8;
    }
    
    .shadow-confirm-btn-cancel:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #f1f5f9;
    }
}
