#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: #1e293b;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-right: 4px solid transparent;
    pointer-events: auto;
    animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
}

.toast.success {
    border-right-color: #10b981;
}

.toast.error {
    border-right-color: #ef4444;
}

.toast.info {
    border-right-color: #3b82f6;
}

.toast.warning {
    border-right-color: #f59e0b;
}

.toast i {
    font-size: 18px;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

.toast.info i {
    color: #3b82f6;
}

.toast.warning i {
    color: #f59e0b;
}

@keyframes toastSlideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.custom-modal {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Tajawal', sans-serif;
    text-align: center;
}

.custom-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 16px;
}

.custom-modal-icon.danger {
    background: #fee2e2;
    color: #ef4444;
}

.custom-modal-icon.info {
    background: #dbeafe;
    color: #3b82f6;
}

.custom-modal-icon.success {
    background: #dcfce7;
    color: #10b981;
}

.custom-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.custom-modal-message {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.custom-btn.primary {
    background: #3b82f6;
    color: white;
}

.custom-btn.primary:hover {
    background: #2563eb;
}

.custom-btn.danger {
    background: #ef4444;
    color: white;
}

.custom-btn.danger:hover {
    background: #dc2626;
}

.custom-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.custom-btn.secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}